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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/05/03 11:41
Read: times


 
#54156 - RE: IO port - SETB or MOV?
Responding to: ???'s previous message
Hi,
I am sorry to tell this,I was not able to make out what you were trying to tell...If I understood it right,try the following code(my eraly days of experimenting with the MCS-51 uC)


ORG 0000
LJMP ON_RST


ORG 0100H
ON_RST: MOV IE,#00
MOV TMOD,#01 ;TIMER 0 MODE 1

HERE: MOV A,#200
MOV P1,#55H
LOOP: ACALL DELAY
DJNZ A,LOOP
MOV P1,#0AAH
MOV A,#200
LOOP1: ACALL DELAY
DJNZ A,LOOP1
AJMP HERE

DELAY: MOV TL0,#0B0H
MOV TH0,#3CH
SETB TR0
AGAIN: JNB TF0,AGAIN
CLR TR0
CLR TF0
RET

END

I guess this helps,if not try explaing it more clealy and we can help you.

Rgds
Raj Shetgar

List of 14 messages in thread
TopicAuthorDate
IO port - SETB or MOV?            01/01/70 00:00      
   RE: IO port - SETB or MOV?            01/01/70 00:00      
      RE: IO port - SETB or MOV?            01/01/70 00:00      
   RE: IO port - SETB or MOV?            01/01/70 00:00      
      RE: IO port - SETB or MOV?            01/01/70 00:00      
         RE: IO port - SETB or MOV?            01/01/70 00:00      
            RE: IO port - SETB or MOV?            01/01/70 00:00      
      RE: IO port - SETB or MOV?            01/01/70 00:00      
         RE: IO port - SETB or MOV?            01/01/70 00:00      
            RE: IO port - SETB or MOV?            01/01/70 00:00      
   RE: IO port - SETB or MOV?            01/01/70 00:00      
      RE: IO port - SETB or MOV?            01/01/70 00:00      
         RE: IO port - SETB or MOV?            01/01/70 00:00      
            RE: IO port - SETB or MOV?            01/01/70 00:00      

Back to Subject List