This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Reading Byte in a Port

Hi everyone!

I am new to keil and wanted to know how do I read a byte in a port. For example, I want to read the port's value. I know in a port have 8-bit and I want to be able to write a code which read all the values in a port. I am doing this with a sensor. What I mean is, when one of a sensor in a bit is detected, my Pcomm will display a value, and if a bit is not detected, my pcomm will display different value in Hex format. Thanks!

0