Hi, all!
In my design pins P0_1....P0_4 CC1110 are used as inputs.
After RESET, by default, all general-purpose I/O pins are configured as inputs.(I read from datasheet)
My IDE: IAR EW 8051 10.10
On the controller pins the following potentials: P0_1 = HIGH, P0_2...P04 = LOW, rest pins are free
I want to get 0bxxx0001x, but operation uint8_t inputsReg = P0 gives as result 0b11111111.
Why it happens? How do I get the correct input status?
Thanks in advance. Any help appreciated
Yakov