trungbeca
Newbie level 4
- Joined
- Feb 26, 2013
- Messages
- 6
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,326
8051_help me check this delay ( ASM )
i wanna delay 1 second, but it isn't true.
this is my code:
thanks!
i wanna delay 1 second, but it isn't true.
this is my code:
delay:
mov TMOD,#01H ; mode 16bit, timer 0
mov TH0,#00H ; N0=0
mov TL0,#00H ;
mov r1,#0FH ; repeated 15 times
setb TR0 ; start timer
wait:
jnb TF0,wait
djnz r1,wait
ret
thanks!
Last edited: