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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/27/06 08:35
Read: times


 
#108482 - Exception
Responding to: ???'s previous message
Dear Abhishek,

Abhishek Singh said:
if you have a '0' on the latch and you want a input from external world (thats a ports job, not reading back what is inside the micro i.e. latch values) you have to put a one in to it and this action is called "configuring a pin as INPUT".

In case you indicated (port pins are '0's), writing '1's into the latch causes exactly OUTPUT behaviour of a port: all pins activate strong pull-up for 2 OSC cycles and emit '1's with possible very high current for this time.
By other words, if external peripheral provides low level to these pins at this time then short-circuit happens. Indeed, this is only for two OSC cycles but remember that 8051 may work at low frequences so this period may be long enough to destroy hardware.

By the way, looking at this picture:


could you say that "writting '1' to the P1.0 sets it to input mode"? For me, with both '0' and '1' the pin is still output.

Regards,
Oleg



List of 51 messages in thread
TopicAuthorDate
initializing a port as output            01/01/70 00:00      
   STOP THE BABBLE            01/01/70 00:00      
      Keil says....            01/01/70 00:00      
         Keil is wrong!            01/01/70 00:00      
            what about the bible itself            01/01/70 00:00      
               the issue is not if someone can find ref            01/01/70 00:00      
                  Dont see any confusion            01/01/70 00:00      
                     what works            01/01/70 00:00      
                     The confusion arises...            01/01/70 00:00      
                        yes that may be the thing            01/01/70 00:00      
                  We talk about the "Bible"!            01/01/70 00:00      
                     it really is a wired or configuration            01/01/70 00:00      
                        No disagree            01/01/70 00:00      
                        I agree, but all are not equal            01/01/70 00:00      
         Confguring......            01/01/70 00:00      
   Quasi bidirectional            01/01/70 00:00      
      NO, NO, NO STOP THE BABBLE            01/01/70 00:00      
         there is only output mode            01/01/70 00:00      
            no, there is NO mode!!!!!!!!!!!!!            01/01/70 00:00      
         Who is babbling?            01/01/70 00:00      
            Maybe Rude but right            01/01/70 00:00      
               Mode clarified            01/01/70 00:00      
                  No, that's wrong            01/01/70 00:00      
                     i see            01/01/70 00:00      
                     Why is this wrong??            01/01/70 00:00      
                        playing with words            01/01/70 00:00      
                           Yes            01/01/70 00:00      
                           "Mode" is the word            01/01/70 00:00      
                              what i meant            01/01/70 00:00      
                  No            01/01/70 00:00      
                     which mode            01/01/70 00:00      
                     lets play with words            01/01/70 00:00      
                  Exception            01/01/70 00:00      
                     see this            01/01/70 00:00      
                     a valid, sometimes overlooked point            01/01/70 00:00      
                        Indeed            01/01/70 00:00      
               Yes, but weak or strong            01/01/70 00:00      
            yes and no            01/01/70 00:00      
               Yes, that's it!            01/01/70 00:00      
                  one more word            01/01/70 00:00      
         What a Rudeness            01/01/70 00:00      
   No input output            01/01/70 00:00      
      Just read the port!!!!!!!!!!!!!!!1            01/01/70 00:00      
         yes            01/01/70 00:00      
            not offending            01/01/70 00:00      
               not really            01/01/70 00:00      
                  see what keil says            01/01/70 00:00      
                     about "rudeness"            01/01/70 00:00      
                        No excuse            01/01/70 00:00      
                           what agression, what rudeness            01/01/70 00:00      
                              Haha!            01/01/70 00:00      

Back to Subject List