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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/12/08 08:10
Read: times


 
#155728 - Initiation code and lst info
Responding to: ???'s previous message
I know that ORL is the way it should be done but I had tried every possible way of setting it but unfortunately I couldn't set it:(

Below is the initiation code that I am using:-

;Configure Serial Port Register
clr SM0 ; Clear SM0 &
setb SM1 ; Set SM1 to enable UART Mode 1

; Configure Timer 1 to be in 8 bit auto reload i.e. Timer Mode 2
mov TMOD, #00100000b ; Timer 1 in 8-bit auto-reload mode
mov TH1, #253 ; 19200 baud
orl PCON, #10000000b ; Double Baud Rate

And below is the lst information:-

132 7 08000 ;Configure Serial Port Register
133 8 08000 C29F clr SM0 ; Clear SM0 &
134 9 08002 D29E setb SM1 ; Set SM1 to enable UART Mode1
135 10 08004
136 11 08004 ; Configure Timer 1 to be in 8 bit auto reload i.e. Timer Mode 2
137 12 08004 758920 mov TMOD, #00100000b ; Enable Timer 1 in 8-bit auto-reload mode
138 13 08007 758DFD mov TH1, #253 ; Set High Threshold to 253 i.e. 19200 baud
139 14 0800A 438780 orl PCON, #10000000b ; Double Baud Rate

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