| Author |
Message |
salmansalman
Joined: 30 Jan 2008 Posts: 28
|
18 Feb 2008 14:09 at89c2051 network |
|
|
|
|
Can we configure one AT89C2051 as master and then control
several AT89C2051 uCs as slaves??
Please provide the simplest possible solution ..
|
|
| Back to top |
|
 |
laktronics
Joined: 06 Jan 2007 Posts: 945 Helped: 156
|
18 Feb 2008 16:38 at89c2051 configuration |
|
|
|
|
Hi,
I think this chip does not support 10 bit addressing mode, you should use the new 89S2051 IC from Atmel instead.
Regards,
Laktronics
|
|
| Back to top |
|
 |
salmansalman
Joined: 30 Jan 2008 Posts: 28
|
18 Feb 2008 19:00 at89c2051 configration |
|
|
|
|
why 10 bit addressing is necessary for master slave configuration????
cant we do it using USART??????
|
|
| Back to top |
|
 |
laktronics
Joined: 06 Jan 2007 Posts: 945 Helped: 156
|
19 Feb 2008 15:25 master slave configuration in 8051 |
|
|
|
|
Hi,
You have asked for the simplest solution and for 8051 family, the 10 bit data mode of the serial port is the simplest solution, which is not supported in 89C2051. You can always implement Master slave configuration in software by sending down the slave address to a group of controllers connected over an RS485 network. In this case, the command respose protocol has to done in software. The slave address could be programmed using DIP switches or stored in an EEPROM on each slave. Refer to MODBUS protocols for a standard followed for such applications.
Regards,
Laktronics
|
|
| Back to top |
|
 |
ctownsend
Joined: 27 Nov 2004 Posts: 301 Helped: 21 Location: Canada
|
20 Feb 2008 14:26 Re: Master Slave Configuration for AT89C2051 |
|
|
|
|
| salmansalman wrote: |
Can we configure one AT89C2051 as master and then control
several AT89C2051 uCs as slaves??
Please provide the simplest possible solution .. |
How far apart are the slaves? are they on the same board as the master?
Read all about it here:
http://www.8052.com/tut8051.phtml
or you can download one of the many 8051 ebooks found on this forum. One in particular is the book by Kenneth Ayala.
http://www.edaboard.com/viewtopic.php?t=285376&highlight=ayala
See chapter 11. Its all there including source code. It doesn't get much easier than that.
Good Luck
|
|
| Back to top |
|
 |
Google AdSense

|
20 Feb 2008 14:26 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
salmansalman
Joined: 30 Jan 2008 Posts: 28
|
20 Feb 2008 14:33 Master Slave Configuration for AT89C2051 |
|
|
|
|
| let me check all that ... then i will reply u back
|
|
| Back to top |
|
 |