I have used PIC16F873A/7A series to receive a byte from PC and compare it with predefined string and produce result such as making an output high if they are same.
My problem is with receiving data. i am not able to find out if the data is received. i have tried by waiting for the pic to produce RCIF flag as HIGH (when uart receives 1 byte of data) and then storing the byte in RCREG to a Unsigned temporary variable. I am using Mikro C pro. please help me with this if you have info.
The config I did for UART Rx. enable are:
* port c as output and port c 6th & 7th pin were made high
* spen was enabled
*cren was enbled
*sync=0 (asynchronous communication)
* high baud rate 9600
* 8 bit reception
My problem is with receiving data. i am not able to find out if the data is received. i have tried by waiting for the pic to produce RCIF flag as HIGH (when uart receives 1 byte of data) and then storing the byte in RCREG to a Unsigned temporary variable. I am using Mikro C pro. please help me with this if you have info.
The config I did for UART Rx. enable are:
* port c as output and port c 6th & 7th pin were made high
* spen was enabled
*cren was enbled
*sync=0 (asynchronous communication)
* high baud rate 9600
* 8 bit reception