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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/29/04 14:57
Read: times


 
#69499 - RE: Which bit doesnt work?
Responding to: ???'s previous message
Hi Rashu,

You have to set the SMOD bit in the PCON register to set the 9600 baud rate on MC site. I guess you have 4800 baud for now.

And one more thing about TX part. To prevent possible wasting MC time it is much better to set TI bit during an initialisation, then first check TI bit, and after then send byte.

txd: jnb TI,txd
mov SBUF,A ;#0x43 in your case
clr TI
ret

Just realize, it takes 1ms to send 1 byte at 9600 baud but it is 1000us and about 500 executable instructions (for 12 MHz clock) in average, too.

Regards,
George

List of 8 messages in thread
TopicAuthorDate
Why it does not work?            01/01/70 00:00      
   Which bit doesnt work?            01/01/70 00:00      
      RE: Which bit doesnt work?            01/01/70 00:00      
      RE: Which bit doesnt work?            01/01/70 00:00      
         RE: Which bit doesnt work?            01/01/70 00:00      
   RE: Why it does not work?            01/01/70 00:00      
      RE: Why it does not work?            01/01/70 00:00      
   RE: Why it does not work?            01/01/70 00:00      

Back to Subject List