View Single Post
  #13   Spotlight this post!  
Unread 15-10-2003, 22:17
Lloyd Burns Lloyd Burns is offline
Registered User
FRC #1246 (Agincourt Robotics)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Toronto
Posts: 292
Lloyd Burns is an unknown quantity at this point
Re: Re: Re: Re: Linking two controllers together - the how? part

Quote:
Originally posted by Dave Flowerday
Please see the PIC 18F8520 datasheet, page 94 (of the PDF, page 92 of the document itself), bits 3-5.

As I said, any microcontroller worth its salt provides interrupts when bytes are transmitted/received. Regardless, even if it didn't you'd simply need to poll the receive buffer status to see when it's full, and then go and read in the data that was received. No need to use an external signalling line (good thing too, since you wouldn't be able to do that with anything off-the-shelf that speaks RS232).
IF the 18Fxx20 is llike some of its great uncles, it may even have a serial interface in hardware. Interrupt-on-change by pin is a recurring theme in the 16F/Cxx line, so there is the likihood of an automatic serial service routine.

I2C is another possibility.