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 13:45
Read: times


 
#108497 - Yes, that's it!
Responding to: ???'s previous message
Oleg said:
And so what? Using terms "input and output modes" we should answer: "yes, writing '1's to the port P1 makes it as input port".
Then he asks: "whatta hell, I need to have it as output with '1's!!!". And only after this we start to explain that "in fact, 8051 has no separate input or output port modes, etc...".

Yes, you hit the nail, Oleg! The "Bible" is misleading in this point, when it says the port can be configured as input. Then, the newbie immediately asks "And how do I configure the beast as output??"
I wanted to focuse on this issue, and that a newbie isn't just babbling when asking about. Many of us, like Mahmood mentioned, had the same trouble when first being confrontated with this.

I would not talk about "input mode" and "output mode" either, because there are micros which indeed have such modes, instead of standard 80C51. Funny enough, even datasheet of P89LPC952 does not talk about "modes", although this micro provide them. They mainly call them "configurations". What we would call "input mode" is called "input-only configuration". So, for a newbie this is hot stuff, not easy to understand. And, so, no reason to call him a "babbler"...

My terminology is the following: "If I want the port pin to be used as input I have to write 1s into the according port latch. And if this port pin is driven by an external source I have to be careful not to change the state of this port latch afterwards." I do not use other phrases, neither "input mode", nor "output mode", nor "quasi-bidirectional", or whatsoever.

Kai

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