Tool/software:
When reading a Dio pin in Dio input pull-up mode, Low and High are read mixed.
the below code sets P1.0~P1.7 to input mode(pullup).
uint8 regvalue=0xff; P1SEL &= ~regvalue //set P1 to dio P1DIR&=~regvalue;//set P1 to input mode P1INP&=~regvalue;//pullup or down P2INP&=~0x40;//set P1 to pullup
and then measuring the terminal P1.0~P1.7 with mulitester.
P1.0,P1.1 and P1.4 : 0.3V
others : 3.3V
Question1) Why are some terminals Low level even though there is internal pull-up?
Question2) I added external resistors as pull-up resistors to P1.0 ~ P1.7. So I got the desired result.
How can I get HIGH level DIO values from all terminals without external resistors?