|
|||||||||||
Technical Support Support Resources
Product Information |
C51: Reading from an Input PortInformation in this article applies to:
QUESTIONHow do I read from one of the I/O ports on the 8051? ANSWERTo read an I/O port on the 8051, you must ensure that the internal latch state is at a high level. To ensure that the port bit is high, write a 1 to it. Then you may simply read the port or port bit. For example:
SEE ALSOLast Reviewed: Thursday, February 25, 2021 | ||||||||||
|
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.