Im relatively new to micros and have a conundrum. My senior project involves using a touch screen and xbee modules for wireless communication. My question is, since both of them require serial communication, should I find a micro that has 2 serial ports, or is it possible to have both of them connected to the same serial port and select which one to communicate with?
Micro controller serial communication question
microcontrollerserial
Related Topic
- Electronic – Ethernet RJ45 interfacing with microcontroller
- Electronic – arduino – 1-Wire Serial communication to standard RX/TX Serial ports in microcontrollers
- Electronic – arduino – Single wire two-way serial communication – hardware configuration
- Xbee serial communication
- Electrical – How to control thermal printer from micro-controller and choose it
- Electrical – How to make communication between microcontrollers
- Electronic – use the same serial1 port to communicate with two modules
Best Answer
You can't, in general, connect them to a single serial port. You'll need a microcontroller with (at least) two serial ports.
Sometimes, if you're trying to really minimise the cost of the microcontroller, you can implement a seral port using GPIO pins and I/O instructions. This can be very effective for a transmit-only serial port. But I would not recommend it for a project like this.