Hi,
Sorry - me again :-(
I've been looking through the data sheet for my PIC about 9 bit addressable USART. Since I'm using two pics, this sounds useful - especially as it gives me a sensible place to pause afer the address byte to ensure I'm in the service outine and prevent overflow, if this becomes a problem.
The description of how the system works is on pg. 121 of the PIC16F87XA datasheet. (www.srcf.ucam.org/~dbrb2/pages/pic.pdf)
The description makes sense - however, I had a question about how to implement this in PICBasic. For instance, to read from RCREG register (the serial receive register) presumably I just use the HSERIN command? Or can I just read the register directly - so have : my_variable=RCREG
If the latter is possible, then what is the advantage of the HSERIN command under any circumstances ...?
Cheers,
Ben