Quote:
Originally posted by Rickertsen2
To my knowledge there is no way to have an interrupt when a byte is received. Don't worry there is a way around this. You use a seperate general purpose IO line and set that up as an interrupt. On the transmitting side, whenever you finish sending a frame, you raise the line and trigger the interrupt.
|
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).