Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/02/03 07:15
Read: times


 
#40402 - 8051 ports
hi

i read from the data sheet that the 8051 ports can be made input by writing all 1's ( shown in the program below).

mov p1,#0FFh ; port 1 as input

so what do i need to do to output all 1's at the ports. will in that case the ports become input?

also do i need to write all 0's to the port to make it output. So if i have a interface connected to a port 1 and the interface sends all 0's to the port, so will the port become an output?

regards
peter

List of 6 messages in thread
TopicAuthorDate
8051 ports            01/01/70 00:00      
   RE: 8051 ports            01/01/70 00:00      
   RE: 8051 ports            01/01/70 00:00      
      RE: 8051 ports            01/01/70 00:00      
         RE: 8051 ports            01/01/70 00:00      

Back to Subject List