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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/07/11 13:29
Read: times


 
#182523 - some errors
Responding to: ???'s previous message

$MOD51
org 0000H
ljmp INITIAL

org 0100H
INITIAL:
setb P0.0
mov TH1,#0FDH
mov TMOD,#20H
setb TR1
clr P0.0
mov PCON,#00H
mov SCON,#0D0H
clr TI
clr RI
MULAI:
setb P0.0
mov A,P1
mov P2,A
mov SBUF,A
clr P0.0
clr TI ;                     ERROR ONE
       jnb TI,$    ;better          ;polling TI :-)
       clr TI         

jb RI,SERIAL_RECEIVED
ljmp MULAI

org 0150H
SERIAL_RECEIVED:
clr P0.0
mov A,SBUF
swap A
setb P0.0
mov P2,A
jmp SERIAL_RECEIVED      ;ERROR TWO 
             jmp MULAI ;better             




 



List of 17 messages in thread
TopicAuthorDate
Help on Serial Port            01/01/70 00:00      
   Try polling the TI flag before writing to SBUF..            01/01/70 00:00      
      What is polling ?            01/01/70 00:00      
         Re: what is polling..            01/01/70 00:00      
            Re: what is polling            01/01/70 00:00      
               Polling ...            01/01/70 00:00      
               While I don't normally mind..            01/01/70 00:00      
                  Detailed answers            01/01/70 00:00      
   if you want help ...            01/01/70 00:00      
      How to post legible source code            01/01/70 00:00      
         Posting source code            01/01/70 00:00      
      Re: if you want help ...            01/01/70 00:00      
   some errors            01/01/70 00:00      
      Re: some errors            01/01/70 00:00      
   Is it working if            01/01/70 00:00      
   Worked !!!            01/01/70 00:00      
      dont forget RI            01/01/70 00:00      

Back to Subject List