can anyone tell me how to transmit and receive a character using USART inPIC16F877A..
D Thread Starter digital Joined Nov 26, 2007 11 Dec 4, 2007 #1 can anyone tell me how to transmit and receive a character using USART inPIC16F877A..
beenthere Joined Apr 20, 2004 15,819 Dec 4, 2007 #2 We discourage posters jumping in on an existing thread. Please start your own. The spec sheet for the USART will have the conditions that will allow the PIC to transmit data through the device.
We discourage posters jumping in on an existing thread. Please start your own. The spec sheet for the USART will have the conditions that will allow the PIC to transmit data through the device.
E eeboy Joined Sep 27, 2007 90 Dec 4, 2007 #3 To transmit simply load the TXREG register with the byte you want to send out. This assumes you have set up the USART properly and TXEN is set. To receive (when RCIF indicates you have a byte) simply grab the contents of the RCREG register.
To transmit simply load the TXREG register with the byte you want to send out. This assumes you have set up the USART properly and TXEN is set. To receive (when RCIF indicates you have a byte) simply grab the contents of the RCREG register.