CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Help needed for networking microcontrollers!

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
rocky3015



Joined: 10 Oct 2006
Posts: 2
Location: Delhi, India

View user's profile Send private message

Help needed for networking microcontrollers!
PostPosted: Tue Oct 10, 2006 7:45 am     Reply with quote

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

View user's profile Send private message Visit poster's website AIM Address MSN Messenger

PostPosted: Tue Oct 10, 2006 7:51 am     Reply with quote

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

View user's profile Send private message

PostPosted: Tue Oct 10, 2006 7:57 am     Reply with quote

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

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Tue Oct 10, 2006 9:04 am     Reply with quote

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!!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group