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.

UART Question

Status
Not open for further replies.

Spadez

New Member
Hi.

I was just wondering. If I have a RFID module which uses a UART and a MP3 board which uses Uart too, is it possible to use a PIC which only has one uart.

This might work by the RX uart connecting to the RFID module since I think that only sends data to the PIC and doesn't receive anything. The MP3 module on the other hand receives commands from the PIC using the TX, but doesn't send anything back, so doesn't require a RX.

Using a single TX and RX combination is it possible to interfaces two UART devices with one PIC uart? If yes, do they have to have the same baudrate for devices on TX and RX?

Thank you.

James
 
You can if you have the same baud rates and you can differentiate between the protocols.

Given up on the PIC with 2 UARTS idea?
 
Ive been reading up on this. Is it reasonable to say that this will work if the following conditions are met:

1. Both RFID and MP3 modules are only one way communication
2. Both have the same baud rate
3. Both use the same protocol? (Does this mean 8N1, full duplex etc?)

I know i asked about pics with two uarts but this would be a perfect solution if it was possible.
 
1) You can have 2 way communication if the protocols are different.
2) Yep
3) The serial protocol, so this is the "control codes" etc to make the units do certain things, like you may send "00 01" to play an MP3 for example,and send "00 01" to read an RFID card, this would be the same kind of protocol.
 
Status
Not open for further replies.

Latest threads

Back
Top