Interesting idea. Even if i'm not the best one here in the serial data communication, i feel that you'll need more than 1 PIC for that depending the size of the data you need to send/receive to be really sure you don't miss anything. The internal USART have a buffer of 2 BYTES for incomming data. Maybe enough to stop your serial OUT.
There's many way to see the solution here. The first that spring to mind now is Sending your data bytes by byte, then check the USART interrupt flag for incomming data each time a byte is sent. Your data to be send may be store in a EEPROM, ARRAY, or, or, or, or...
Depending what else your project do... 2 PIC can be a solution or not.
Example of serial interrupt:
http://www.picbasic.co.uk/forum/show...1&postcount=11
http://www.picbasic.co.uk/forum/show...42&postcount=2
Should be enough to start.
EDIT: Sorry darrel didn't saw your post... the above example should help anyway
Last edited by mister_e; - 9th January 2006 at 22:56.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks