- This topic has 2 replies, 3 voices, and was last updated 9 years, 4 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
|
Microcontroller › PIC › Two serial device connection with PIC16F877a
I want to connect two different devices having Serial port with PIC16F877a, PIC will read from one device and another device will send the same data to server.
Hi,
For this you need to create an software UART in PIC16f877A, which is making two pins of Pic to act as a rx and tx using coding.This can be done by many ways, one of the easiest way is to use Mikroc compiler for PIC which has inbuilt software UART library. You can also do this in Mplab and Hi Tech c compiler, do search for mplab codings you can get idea about that.
Dear Parimal
If you just want to receive data from one device and send it to other device(after processing or without processing), It is not atall complex. Just Connect the Rx PIN of the PIC to the Tx pin of the First Unit, and Tx pin of the PIC to Rx pin of the Second Unit. But you have only one issue. Both the Device must communicate with the same baud rate.