Monu johar
Newbie level 5
- Joined
- Aug 19, 2012
- Messages
- 8
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,330
I am using 8051...and burn a programm in it as :-
now my query is that if i reset microcontroller from 9th pin..after burning the program...then all ports become input ports...if value in sbuf is 00110101. That should be present on port2 ,as by the code.. Here the port 2 is acting like output port..but on reset it is input port..now i want to know that will the data bits of sbuf come on port pins or not?
Code ASM - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 org 000h mov tmod,#20h mov scon,#50h mov th1,#-3 setb tr1 clr ri here: jnb ri,here clr ri mov a,sbuf mov p2,a sjmp here end
now my query is that if i reset microcontroller from 9th pin..after burning the program...then all ports become input ports...if value in sbuf is 00110101. That should be present on port2 ,as by the code.. Here the port 2 is acting like output port..but on reset it is input port..now i want to know that will the data bits of sbuf come on port pins or not?
Last edited by a moderator: