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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/21/08 03:31
Read: times


 
#153753 - Have you read at all what I wrote??
Responding to: ???'s previous message
Have you read what I wrote here

http://www.8052.com/faqs.phtml?FAQ=121619 ?


Winston said:
1)port 0 is suitable for as input due to its open drain or high impedance thing.

Kai said:
To work as input, means to make it possible for the micro to read the data being driven into the port pin by an external device, just make the nFET being turned-off. Then, only the pull-up resistor "R" is present, which (if not too small) easily allows the external device to drive the port pin high or low.



Winston said:
2)to configure as an input in port 0, write 0 the port.

Kai said:
So, to work as an input "output data" terminal must be high! But keep in mind, that the output still works as an output, as it emits high level. It's not, that you can switch between input and output mode or anything like that. You only allow the micro to read the input buffer, by turning-off the nFET.



Winston said:
3)when connecting a pull up resistor to port 0,it is in high impedance state or so called "nothing" state , no matter what value you write into the port.

Kai said:
You see an ouput stage provided by an nFET and a pull-up resistor "R". When the gate is high, the nFET is turned-on, the output is low and the port pin emits low level. But if the gate is low, on the other hand, the nFET is turned-off, the output is pulled high by the pull-up resistor "R" and the port pin emits high level.
The gate is driven by an inverter to provide true "output data", means if data at "output data" terminal is high for instance, then port pin emits high level too.


How could you so misread what I wrote?

Kai

List of 33 messages in thread
TopicAuthorDate
about port 0 0f 8051mc            01/01/70 00:00      
   already answered            01/01/70 00:00      
      P0 pullups            01/01/70 00:00      
         Tristate (pedant mode)            01/01/70 00:00      
         This thread turns to helter-skelter            01/01/70 00:00      
         I never heard of that            01/01/70 00:00      
            I never heard of that ?            01/01/70 00:00      
            I never heard of that ?            01/01/70 00:00      
               Tristate (pedant mode, again)            01/01/70 00:00      
                  three states            01/01/70 00:00      
                     not at all confusing            01/01/70 00:00      
               confusing open drain/collector with tristate ...            01/01/70 00:00      
                  Not quite true            01/01/70 00:00      
                     much 'can' be done            01/01/70 00:00      
   read the datasheet ... it is "open-drain"            01/01/70 00:00      
      advantage            01/01/70 00:00      
         that it is not clogged            01/01/70 00:00      
            or a wire-or-ed output            01/01/70 00:00      
               ????            01/01/70 00:00      
         How would you realize an input /output topology?            01/01/70 00:00      
            why            01/01/70 00:00      
               this is the diagram of the "inside" of chip            01/01/70 00:00      
            please comment            01/01/70 00:00      
               1) Maybe, 2) False, 3) False            01/01/70 00:00      
               FAQ            01/01/70 00:00      
               Have you read at all what I wrote??            01/01/70 00:00      
   Port 0            01/01/70 00:00      
      Hhm, still no answer??            01/01/70 00:00      
         This doc explained everything            01/01/70 00:00      
            it should be the first reference!            01/01/70 00:00      
      P0.1            01/01/70 00:00      
         start a new thread            01/01/70 00:00      
         yes to both - it\'s \"bible time\"            01/01/70 00:00      

Back to Subject List