Subject:
|
RE: Interfacing HB to PIC
|
Newsgroups:
|
lugnet.robotics.handyboard
|
Date:
|
Thu, 9 Jan 1997 23:50:59 GMT
|
Original-From:
|
Mike Ross <mross@outland.AVOIDSPAMjsc.nasa.gov>
|
Viewed:
|
2295 times
|
| |
 | |
On Thu, 9 Jan 1997, MSI: Sean Cunningham wrote:
> > > Has anyone interfaced the HB to a PIC chip or other microcontroller
> > > without using the primary serial lines?
> > >
> > > I am wondering if maybe there was an I2C or SPI implementation done
> > > somewhere using digital outs.
> >
> > Are you referring to using the SPI port on the Handyboard, or simulating
> > the SPI function via other ports? If you run the handyboard as a master,
> > then the handyboard is responsible for providing the clock output used to
> > capture the data by the slave, and you don't have to worry about speed, so
> > you could bit-bang it out another port via IC statements. However the SPI
> > is unused and easy to set up.
Well, in that case, the SPI port is what you want, provided an SPI port is
also available on the PIC. Then just set up the SPI config, load the
register and the computers exchange 16 bits shifted on a clock generated
automatically by the master SPI node. You can broadcast from one master
to multiple slaves. Get the Motorola 'Pink Book' (it's free from
Motorola), they have everything you need there. The SPI port is the
connector just under the lower right edge of the LCD board, if yours is
like mine. You can clock data bits out at up to E/2, or 1 MHz. I did
mine in polled mode, but you can set it to trigger an interrupt and just
have the main routine service in/out buffers on one end while the
interrupt routine dispenses and receives on the other end.
* Michael L. Ross/C33 | Lockheed Engineering & Sciences Co.****
* Robotics Department | 2400 Nasa Rd. 1, Houston, TX 77058*****
*(713)333-7094 voice,(713)333-6071 fax*#include <disclaimer.h>*
* Finger me for my public key. mross@outland.jsc.nasa.gov ****
|
|
Message is in Reply To:
2 Messages in This Thread:   
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|