dinesh401
Advanced Member level 4
can anyone tel me. how a 8051 microcontroller pin will be worked. my doubt is that in the programing we hav to initialize the port as input or output. like
po=0x00;//initialize as output
but where as coming to 8051 programming, in the program we are writing the code on the same port po=0xi;, i is a variable changing its value always. even then also how the port is acting like a output port. when we send the i value as po=0x11; in the program. why it is not acting as a input port. can anyone tel me how a port will works. i didnt understand from the text.
po=0x00;//initialize as output
but where as coming to 8051 programming, in the program we are writing the code on the same port po=0xi;, i is a variable changing its value always. even then also how the port is acting like a output port. when we send the i value as po=0x11; in the program. why it is not acting as a input port. can anyone tel me how a port will works. i didnt understand from the text.