I have an application (16F876@20MHz) where I have to deal with more than one serial Port.
The HWUSART of the PIC is connected to some device that sends Data @9600Baud.
The PIC receives this data does some math
and logs the results to an external EEPROM.
Some of the logged data is send out on PortB.7 @ 4800Baud to
a Terminal (serial LCD) for monitoring purposes.
So far everything works fine.
Now I have got to connect a PC to a third Port @4800 Baud
to be able to read / modify / clear the log memory.
I have only two wires (besides GND) to the PC (RX & TX)
The issue is timing,
how do I get the PIC into the "communicate with PC" routine?
timewise I can't afford to sit in a SERIN2 loop and wait for a "SYNCH" character
while the MainLoop is supposed to do other tasks.
Any ideas?
Bookmarks