Receive C code

Status
Not open for further replies.

picnewbie

New Member
If a PIC with 8 bits input for each ports RA, RB and RC, and I only uses one of the RC (lets say RC7, denoted as RX) for serial receive, is it possible? Can anyone provide a simple serial communication for receive in C code as a starter for me to learn? Thanks.
 
If you use the hardware USART then it is not possible to just enable receive as turning the module on configures both TX and RX pins. If you use a software UART then you can have as many receive pins as you require. Google will find lots of example code.

Mike.
 

Thanks for your reply. And what is the differences between the two anyway?
Hardware and software based?
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…