This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC1110-CC1111: СС1110: can not get the status of the input pins of port P0

Part Number: CC1110-CC1111

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