Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Transmission from two PICs to one PIC with 2 USART

Status
Not open for further replies.

nareshec

Newbie level 4
Joined
Sep 16, 2009
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,320
Hello friends... I am trying to establish 2 independent serial transmission links using 2 separate PICs and receive those two transmitted bytes by a single PIC having 2 USART. I am using an interrupt based approach, so when a byte is received, it handles the received byte and display it. Is there a better idea or experience dealing with 2 USART?

Also, I wish to transmit these two received bytes on the PIC to the PC. Can I transmit 2 parallel lines to the PC or I have to use only one transmission line and send the data one bye one in loop?

Everything is just one way transmission. Simply, receive 2 different data, display it, and then transmit the same data to the PC.

Thank you for your support
 

horace1

Advanced Member level 5
Joined
Nov 18, 2008
Messages
2,118
Helped
596
Reputation
1,188
Reaction score
571
Trophy points
1,393
Location
Norwich, UK
Activity points
13,063
so long as your PIC has sufficent USARTs it can communicate with two other PICs and a PC otherwise if you only have two USARTs
1. but have peripheral pin select you can switch the USARTs between pins.
2. if you only wish to transmit to the PC you can use the Rx of a USART to receive data from a PIC and the Tx to transmit data to the PC (assuming same baudrate).
 

bigdogguru

Administrator
Joined
Mar 12, 2010
Messages
9,821
Helped
2,350
Reputation
4,694
Reaction score
2,272
Trophy points
1,413
Location
Southwest, USA
Activity points
62,360
Another possible option:

If your choice of PICs support it you could also implement an I2C bus, designate one PIC as a master and all other PICs as slaves sharing the same I2C bus for communication among the PICs. Then use an USART on the master to establish a RS-232 with the PC.

I've used this method several times in the past. It is particularly useful if you have other I2C devices in the chain.

I2C communication between PICs

**broken link removed**
 

horace1

Advanced Member level 5
Joined
Nov 18, 2008
Messages
2,118
Helped
596
Reputation
1,188
Reaction score
571
Trophy points
1,393
Location
Norwich, UK
Activity points
13,063
if the PICs have Canbus another option is to make a small canbus network to interconnect the PICs
 

bigdogguru

Administrator
Joined
Mar 12, 2010
Messages
9,821
Helped
2,350
Reputation
4,694
Reaction score
2,272
Trophy points
1,413
Location
Southwest, USA
Activity points
62,360
Good point Horace1, that idea crossed my mind as well.

The drawback is the coding for CANbus is a little more involved.

The other option is SPI. However, I see no real advantage of it or I2C.
 
Last edited:

nareshec

Newbie level 4
Joined
Sep 16, 2009
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,320
I don't want to use SPI, CAN, I2C, but only USART.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top