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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/21/05 15:19
Modified:
  07/21/05 15:20

Read: times


 
#97742 - hiding the point
Responding to: ???'s previous message
Why do you make port 1 an output and then try to make it input data? ...... Unlike some other architectures, In the standard 8051, there is no way to "make a port an output" nor to "make a port an input" - they are all bidirectional all the time
Andy, you are indeed correct. Charles post hides the fact that setting a pin to 0 makes it read zero whatever you apply to it (it might even burn) by adding all the "input Output" laguage.

While you are totally correct in "there is no way to make a port an output", Charles did, indeed, catch the thing I wondered why nobody saw which is the read of a pin set to 0.

Erik


Mr Kaz


You need to read up in ports in "the bible" (links in "links")


List of 31 messages in thread
TopicAuthorDate
Help with Assembly Code            01/01/70 00:00      
   Just one question            01/01/70 00:00      
   REPLY            01/01/70 00:00      
      74HC244            01/01/70 00:00      
   Some Possibilities:            01/01/70 00:00      
   Don't be surprised ...            01/01/70 00:00      
      Do not use TABs!            01/01/70 00:00      
         Right, but I meant            01/01/70 00:00      
            in case of Keil            01/01/70 00:00      
               Sharp eye !            01/01/70 00:00      
   re:mehdi & don't be surprised            01/01/70 00:00      
      RC Reset!!!            01/01/70 00:00      
   could you explain            01/01/70 00:00      
   Port 1 output/input conflict.            01/01/70 00:00      
      port 0 assigned as output            01/01/70 00:00      
         hiding the point            01/01/70 00:00      
   RE: Input/Output port            01/01/70 00:00      
      infinite loop            01/01/70 00:00      
      port            01/01/70 00:00      
         terminology            01/01/70 00:00      
         re: Erik Malund            01/01/70 00:00      
            killing your '51            01/01/70 00:00      
               re: killing your '51            01/01/70 00:00      
                  Negative logic            01/01/70 00:00      
                  0 and 1            01/01/70 00:00      
            I know it is not "in" to read before act            01/01/70 00:00      
   Pullups?            01/01/70 00:00      
      Well ... maybe not with TTL ...            01/01/70 00:00      
         strictly speaking,for 74LS...            01/01/70 00:00      
         oh yes?            01/01/70 00:00      
   re: re: got it            01/01/70 00:00      

Back to Subject List