View previous topic :: View next topic |
Author |
Message |
rocky3015
Joined: 10 Oct 2006 Posts: 2 Location: Delhi, India
|
Help needed for networking microcontrollers! |
Posted: Tue Oct 10, 2006 7:45 am |
|
|
Hi guys,
I am doing a project in which i need to put around 10 microcontrollers (INTEL 8051) in a network and connect them to a central PC. Note: there is no communication from PC to microcontrollers, PC is only for monitoring purpose. Also there is no communication between microcontrollers. The communication is only from individual microcontrollers to PC. Kindly tell me how should i go about it, which scheme to follow, the hardware needed and various connections. PC side i am using COM port (RS232).
Thanks for all your help. |
|
|
bsodmike
Joined: 05 Aug 2006 Posts: 52
|
|
Posted: Tue Oct 10, 2006 7:51 am |
|
|
Simplest would be to have an i2c Master connected to the PC via serial. The other 10 MCUs are i2c slaves and the master requests data from them or works on interrupt basis and passes the data received to PC.
//just noticed that you are using intel chips. Not sure if these support i2c, but you can either sort it out in software or interface with a PIC (just pass data) and have it handle hardware i2c. |
|
|
SherpaDoug
Joined: 07 Sep 2003 Posts: 1640 Location: Cape Cod Mass USA
|
|
Posted: Tue Oct 10, 2006 7:57 am |
|
|
You could use an RS485 bus. Each uP could send a short report to the PC any time it wants. There would be some messages lost due to collisions though. To avoid that you could use a token ring scheme where each uP would wait til it gets the token before reporting.
A couple of real brute force ways would be to put Ethernet on each uP or put ten seiral ports on the PC.
Or you could add an eleventh uP that would collect the reports by SPI bus and assemble a packet to send to the PC. _________________ The search for better is endless. Instead simply find very good and get the job done. |
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1634 Location: Perth, Australia
|
|
Posted: Tue Oct 10, 2006 9:04 am |
|
|
This is the forum for using CCS compilers which run on PIC microcontrollers - so I'll answer in that context...
The network diameter was not specified. The distance and througput are key considerations to be taken into account.
Quote: | A couple of real brute force ways would be to put Ethernet on each uP.... |
Not so brute force. Microchips PIC18F9xJxx family of Microcontrollers with embedded Ethernet controllers has been released. Just add Rj45 with embedded magnetics, and a few passive components and you have a low cost networking solution. Even adding an external ENC28J60 to an existing uP with a SPI bus is not an expensive proposition. _________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!! |
|
|
|