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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/11/08 15:07
Modified:
  06/11/08 15:10

Read: times


 
#155715 - PCON Register on AT89C52
I am trying to set the baud rate on the AT89C52, making use of the Timer 1 auto-reload mode.

I was trying to set the SMOD bit (bit 7) in the TCON register to double the rate but whenever I go to set it as below:-

mov PCON, #10000000b

it just hangs forever.

Is there anyting else I should be setting/clearing before using the SMOD bit?

List of 16 messages in thread
TopicAuthorDate
PCON Register on AT89C52            01/01/70 00:00      
   try ORing the bit            01/01/70 00:00      
      ORL DOES mess with other bits, too...            01/01/70 00:00      
         The Intel assembler            01/01/70 00:00      
            OK, OK,            01/01/70 00:00      
            I think the "which assembler" was directed to the            01/01/70 00:00      
   Complete initiation            01/01/70 00:00      
      Initiation code and lst info            01/01/70 00:00      
         this looks good...            01/01/70 00:00      
            I was just stepping through            01/01/70 00:00      
               Stepping through?            01/01/70 00:00      
               what happens if ...            01/01/70 00:00      
               I can set certain bits in the PCON reg            01/01/70 00:00      
                  that may be the problem            01/01/70 00:00      
                  this is a bug in the monitor            01/01/70 00:00      
                  I was beginning to think the same            01/01/70 00:00      

Back to Subject List