Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/31/03 08:28
Read: times


 
#61656 - RE: Simple I/O routine
Responding to: ???'s previous message
Imran,

If you want to acheive communication between two MCS-51 controllers (assuming all of them support traditional multiporcessor communication mode on the serial port) its is quite easy, but you have to use the serial port on the controller. Checkout the MCS-51 hardware manual, serial port section for details on this mode. You can program the serial ports to work as a shift register and tramsfer data at high speeds between contollers.

The other method is to use a parallel port, namely P1 and use a few other signals for handshaking. Maybe you could use a P3 port line to interrupt the other controller and ask it to read its P1 port. This is, P1-P1 transfer using INT0/1 lines either way.

Next, you can use two of the spare port lines (one for data SDA and other for clock SCL) and write a I2C driver to read and write bytes. This is a software approach and is very slow. Some MCS-51 variants have inbuilt hardware I2C ports, but I assume you are not using those variants.

Hope this helps.

girish

List of 7 messages in thread
TopicAuthorDate
Simple I/O routine            01/01/70 00:00      
   RE: Simple I/O routine            01/01/70 00:00      
   RE: Simple I/O routine            01/01/70 00:00      
   RE: Simple I/O routine            01/01/70 00:00      
      RE: Simple I/O routine            01/01/70 00:00      
         RE: Simple I/O routine            01/01/70 00:00      
         RE: Simple I/O routine            01/01/70 00:00      

Back to Subject List