We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I have to initialise the port P1 of the 89C51 as output port with all port lines initialised to a high state i.e. 1. Now for initialising the port P1 as output, I have to give the instruction P1 = 0x00 To make all the lines of this port as High, can I give the instruction: P1 = 0xff; Will it not make the port P1 as input port? Or will I have to define each pin of port P1 independently as: P1.0 = 1 P1.1 = 1 and so on. Mohit