| Author |
Message |
el.naderi
Joined: 02 Nov 2009 Posts: 3 Location: iran
|
02 Nov 2009 8:19 connection two micro without serial port |
|
|
|
|
hi my firends
i want to connect tw0 8051 series
but the serial ports are used
plz help
thanks
|
|
| Back to top |
|
 |
nandhu015
Joined: 11 Feb 2006 Posts: 641 Helped: 46 Location: Tamilnadu, India
|
03 Nov 2009 2:37 connection twe micro without serial port |
|
|
|
|
Other options are
I2C
SPI
etc...
|
|
| Back to top |
|
 |
Google AdSense

|
03 Nov 2009 2:37 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
el.naderi
Joined: 02 Nov 2009 Posts: 3 Location: iran
|
07 Nov 2009 7:20 Re: connection twe micro without serial port |
|
|
|
|
thanks for your answer
i want use i2c bus can you help me and get me more information about it?
do you know pcf 8584?
|
|
| Back to top |
|
 |
ama_trig
Joined: 09 Oct 2009 Posts: 12
|
|
| Back to top |
|
 |
ark5230
Joined: 29 Jun 2009 Posts: 188 Helped: 15 Location: India
|
08 Nov 2009 20:22 connection twe micro without serial port |
|
|
|
|
el.naderi Connecting two 8051 is extremely easy, it needs tow max 232 IC's at both the ends. If you have specific problem, may be I will be able to suggest a viable solution.
Raoof
|
|
| Back to top |
|
 |
el.naderi
Joined: 02 Nov 2009 Posts: 3 Location: iran
|
10 Nov 2009 6:52 Re: connection twe micro without serial port |
|
|
|
|
hi my firend
it is not as easy you say
i have three board one of them is cpu and another is analog to digital board
and.....
when data in analog board is ready cpu most understand and maybe cpu is not ready to read data so data is lost
all the port on cpu is used except two pin
thanks for your attention
|
|
| Back to top |
|
 |
mandar_mahajan
Joined: 08 Jul 2009 Posts: 97 Helped: 1 Location: mumbai
|
10 Nov 2009 7:26 Re: connection twe micro without serial port |
|
|
|
|
As u r saying , their is a high possibility of data being lost.
Also u want to communicate 3 boards on i2c, their is also a possibility of data collision & system might get hanged.
You can do the following:
1) First of all use timeout method so that ur system will not be hanged in any case.
2) Divide the time into 3 (no of slaves to be communicated ) slots & send the data into respective slots only.
1) First store the data in ur slaves in a temp buffer along with the packet no.( here packet no is uesd as identifier) & send it to processor & do the same thing at receiving end...
Hope this will help u.
|
|
| Back to top |
|
 |