This is strange, I'm using Microcode studio plus ICD.
And while the code is running I use the "ICD Serial In" to send a character to the PIC, but my RCIF=0 so it never goes into my label?
Here is the part of my code?
<hr>
DEFINE LOADER_USED 1 ' bootloader
DEFINE HSER_RCSTA 90h ' enable serial port,
define HSER_TXSTA 24h ' enable transmit,
DEFINE HSER_BAUD 9600 ' set baudrate to 9600
DEFINE HSER_CLOERR 1 ' automatic clear overrun error
RCIF VAR PIR1.5 ' Receive interrupt flag (1=full , 0=empty)
TXIF VAR PIR1.4 ' Transmit interrupt flag (1=empty, 0=full)
if RCIF then ' incomming data?
gosub MonitorSerialDataReceived
endif
<hr>
Bookmarks