| ??? 01/26/06 14:36 Read: times  | 
#108366 - initializing a port as output | 
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  | 



