PIC programming

beenthere

Joined Apr 20, 2004
15,819
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.
 

eeboy

Joined Sep 27, 2007
90
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.
 
Top