Continue to Site

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.

how to interface 2 Devices to microcontroller via serial por

Status
Not open for further replies.

lats

Full Member level 4
Joined
Oct 27, 2005
Messages
216
Helped
13
Reputation
26
Reaction score
6
Trophy points
1,298
Activity points
2,945
pic18f4555

Hi Can someone guide me the way to how to interface 2 Devices to a microcontroller via Serial port. I mean like I have to interface my controller 89c51 with GSM Modem as well as with PC. The data will be transfered to & from both the devices.

Thanks for giving the time to read my problem.
 

dual rs232 microcontroller

As you only have one hardware serial port on that chip, the simplest way would be to have a second serial port by using the software Bit Banging method.
 

Dual RS232 Port

Thanks for replying wp100. Friends is there no other way?
 

Re: Dual RS232 Port

Some pics has 2 serial ports. Maybe you can try something like a switch that enables once one divice next other device. Or 2 microcontrolers comunicating between them, and each one with his device.
 

Re: Dual RS232 Port

you can use a buffer IC to separate both of the UART systems
and another pin connected with the enable of the buffer IC
so whenever you want to communicate with the device select the correspondiong IC and transfer the data
it is similar to the Address and Data Lines multiplexed with each other and ALE signal is there for the buffer IC in 8051
 

Re: Dual RS232 Port

Hi

The dsPIC30f3011 has two serial ports (UARTS), and has many other usful peripherials. I've made a projecto were a microcontroller (PIC18F4555) comunicates to 4 rs-232 systems (3 microcontrolers, 1 PC). I used PIC-C, wich automatically generates by softwares rs-232 "ports".

Alex
 

Re: Dual RS232 Port

Hi

Use multiplex IC like the HC257 to switch The input (RX) and output (TX) and a I/O bit to control which channel is working

All the best

Bobi
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top