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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/15/06 22:43
Read: times


 
#124383 - In the data sheet, you find ...
Responding to: ???'s previous message
... a few registers.

If you are NOT using the crossbar, then you can ignore the P2SKIP (Port2 Skip) register.

Then you need to do two things. First, clear (ensure it's 0) bit 6 in the P2MDOUT (Port2 Output Mode) register, which puts P2.6 into open drain mode.

Then ensure that bit 6 in P2MDIN (Port2 Input Mode) is SET (ensure it's a 1). This ensures that P2.6 is NOT configured as an analog input. Because, if one RTFDS, one sees (on p136) that if P2MDIN.6 is cleared (zero), then when you read P2.6, you'll always read back a 1.

Got it?

-a

List of 11 messages in thread
TopicAuthorDate
Input config for p2.6 in c8051f310            01/01/70 00:00      
   Input config for p2.6 in c8051f310            01/01/70 00:00      
   just use open drain            01/01/70 00:00      
      I did use open drain            01/01/70 00:00      
         what do you mean, how do you know            01/01/70 00:00      
   Red herring?            01/01/70 00:00      
      naah, it's 5:30 and I'm signing off            01/01/70 00:00      
      not so good enough            01/01/70 00:00      
   Quasi-bidirectional            01/01/70 00:00      
   In the data sheet, you find ...            01/01/70 00:00      
   Yes, got it            01/01/70 00:00      

Back to Subject List