微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 微波和射频技术 > 电磁仿真讨论 > Best communication protocol between two micro controller

Best communication protocol between two micro controller

时间:03-30 整理:3721RD 点击:
Hello,

For my upcoming project i need to communicate between two microcontrollers( 8bit LPC controlller from NXP) sitting in two different boards.The distance between the two board is minum of 2meters.

Initially "controller1" will communicate with "controller2" and give command to start some tasks.Immediatelty after getting command controller 2 can start its task execution.The task timing will vary from 1min to 90 minutes. While perfoming thsi task if any error occurs or after sucessful completion "controller2" has to send some information to "controller1".

Please let me know wether i can use I2c or UART communication for this purpose?
Is there any other best suitable protocol?

please send me your valuable suggestions..!

Thanks in advance

Try out SPI also

you can use serial comunication to comunicate with 2 controller or you can also comunicate with parallel comunication protocol.....or you can built your own comunication protocol.

If you want to make it simple then go for UART.

there was a similar conversation in the past https://www.edaboard.com/thread106495.html

Also check
http://www.bipom.com/applications/micro_interfacing.pdf
View topic - Max SPI distance :: AVR Freaks
View topic - UART to UART distance :: AVR Freaks
https://www.edaboard.com/thread80459.html

As a sidenote the LPX chips I know of are 32-bit ARM based mcu, are you sure you have an 8-bit MCU? (it doesn't make a difference for the content of your question but I'm just wondering)

Alex

Thank you all,for your quick reply.

P89LPC93x series 8 bit controller from NXP is selected for my project.

So it is P89 and not LPC as mentioned in the first post

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top