Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can different microcontrollers communicate with each other? Are there any small chip that can communicate with 89C5131A-UM? And how do I know what frequency does the 89C5131A-UM communicate? I have read the datasheet but could not find it.

share|improve this question

closed as unclear what you're asking by Anindo Ghosh, Joe Hass, Dave Tweed, Chetan Bhargava, Nick Alexeev Jan 13 '14 at 18:03

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

It communicates at whatever speed you've set the communications peripheral to. – Ignacio Vazquez-Abrams Jan 13 '14 at 8:44
This is kind of like asking if different humans can communicate with each other. And naturally, the answer will be just as broad as the question. – Lundin Jan 14 '14 at 9:43

Any microcontroller can communicate with another microcontroller in many different ways.

There are various standard communications protocols for which most micros have at least one or more dedicated peripherals built in such as UART, SPI, I2C, USB, CAN, etc.

For micro to micro the most common is usually SPI, I2C or UART, of which your micro has all three. You need to read up on each to become familiar with the pros and cons (speeds, number of pins taken, complexity, etc) but the datasheet will have all the necessary info, and there are hundreds of tutorials out there (and related questions on here) to help you.
Frequency wise, as mentioned, you can choose to set the speed to whatever is within spec for the peripheral.

Even if you don't have the hardware peripherals built in you can "bit bang" simple communications such as UART or SPI. So the short answer is yes, there is always a way.

share|improve this answer
Thank you very much! So if I want to make them communicate by wireless and I have a set of antenna, what would be the good baud rate or frequency to set it? – WeiXionG Jan 13 '14 at 13:47
If you want them to communicate by wireless, you will need some RF module to connect to each micro. Something such as a BlueTooth HC-05 module which uses SPP is commonly used, you can simply connect your UART peripheral to the module and all the BT stuff is "invisible". Also there are xBee's, Wi-Fi, and many other RF options to choose from. Have a look on Farnell, Digikey, eBay etc. – Oli Glaser Jan 13 '14 at 16:38
What do you mean by BT stuff? – WeiXionG Jan 14 '14 at 9:44
@WeiXionG - Sorry, "BT" means Bluetooth. – Oli Glaser Jan 14 '14 at 13:08

Your mcu features include

  • TWI (Two Wire Interface) 400Kbit/s
  • SPI Interface (Master/Slave Mode)
  • Full-duplex Enhanced UART (EUART)

So basically it has SPI, I2C and serial communication ability. Almost any mcu you can find will support these three and can be used to communicate between (two or more) devices

The actual used speed depends on the clock source of the mcu and can can be set using the registers related to each peripheral, I'm sure the datasheet explains each one in the relevant section.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.