Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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.
 
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.

Latest threads

New Articles From Microcontroller Tips

Back
Top