??? 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") |