- This topic has 1 reply, 2 voices, and was last updated 9 years, 9 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › Interfacing two serial devices with AT89S52
I have two serial devices SM630 and MAX232. I have to interface these two with MCU if directly interfaced data from both devices may mixup and when MCU is communicating with SM630 at this time it is better to switch off communication with MAX232 and vice versa how to do this please give a solution.
Hi,
You have two options.
1. RELAY
Connect controller data bus on common point of relay output and pins of ur modules on NO and NC point. By switching relay, you can select device to communicate with from controller driven relay.
2. MUX/DEMUX
When you have to use more than 2 devices on UART, you can use MUX and by selecting pins of MUX, you can use those on single UART.
I hope this solves your query.
Fell free to write back if required.