Pavithra89
Member level 2
- Joined
- Mar 18, 2013
- Messages
- 53
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Activity points
- 1,695
Hi all,
I've been asked to generate 1khz frequency using timer 0 of 8051. I've written the code but its not working!!!! :-(8-O Please help me where am I going wrong
This is my code
MOV TMOD,#02h
AGAIN:MOV TL0,#033h
MOV TH0,#0FEH
SETB TR0
BACK: JNB TF0,BACK
CLR TR0
CPL P3.2
SJMP AGAIN
end
Regards
I've been asked to generate 1khz frequency using timer 0 of 8051. I've written the code but its not working!!!! :-(8-O Please help me where am I going wrong
This is my code
MOV TMOD,#02h
AGAIN:MOV TL0,#033h
MOV TH0,#0FEH
SETB TR0
BACK: JNB TF0,BACK
CLR TR0
CPL P3.2
SJMP AGAIN
end
Regards