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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/05/06 18:16
Modified:
  12/05/06 18:31

Read: times


 
#129021 - SADEN and SADDR is a bitch to explain
Responding to: ???'s previous message
The problem occurs when I enable multiprocessor communication (SM2 = 1. When the Master's SADEN and SADDR = Slave's SADEN and SADDR registers my data is still not getting through.

SCON = 0xf0; in both of them

SADEN and SADDR is a bitch to explain, try reading about them in a another (e.g. NXP, SILabs) datasheet as well, the language will (hopefully) be different.

try first without address recognition just do this in the read:
if RB8
the if me (address in SBUF match) enable reception, else ignore (leave SM2 set)

Does it also pose a problem if the slave has to speak to the master? Since my slave DOES speak to the master.
The master does not need to be addressed, it 'knows' that all data coming in is for it (when it is transmitting the transciever should be read disabled). However it get to be a true mess if you try to speak to slaves in 9 bit and the master in 8 bit, just stay in 9 bit.

DO be aware that the TI interrupt happen before the byte is finished (~1/2 bit time for recieve, 1 bit time when transmit) many have failed by turning the bus too early.

Erik

List of 27 messages in thread
TopicAuthorDate
Multiprocessor Communication SADDR & SADEN            01/01/70 00:00      
   I think you need to use 9bit mode            01/01/70 00:00      
   Not Mode 1!            01/01/70 00:00      
      ohhhhh            01/01/70 00:00      
         For reference            01/01/70 00:00      
         the better datasheets ...            01/01/70 00:00      
            Not in the so-called bible            01/01/70 00:00      
               that is correct, however            01/01/70 00:00      
      SM2 Bit            01/01/70 00:00      
         I remember it this way: "when SM2 is set I only ge            01/01/70 00:00      
      sortof an unrelated question            01/01/70 00:00      
         sort of short answer :)            01/01/70 00:00      
   still having trouble...            01/01/70 00:00      
      SADEN and SADDR is a bitch to explain            01/01/70 00:00      
         i thought SM2 sets address recognition...            01/01/70 00:00      
            it does - and it does not            01/01/70 00:00      
   automatic            01/01/70 00:00      
      comments            01/01/70 00:00      
   use SFR            01/01/70 00:00      
      I thought that but            01/01/70 00:00      
         my compiler....ummm...uuhhhh            01/01/70 00:00      
            Use an existing wickenhaeuser sfr definitio            01/01/70 00:00      
               hmmm            01/01/70 00:00      
                  NOOOOOOOOOOOOOOOOOOOO            01/01/70 00:00      
                     ok bare with me...            01/01/70 00:00      
                        almost            01/01/70 00:00      
                           Thanks!            01/01/70 00:00      

Back to Subject List