Hello folks,
I added a current sense resistor of 0.1 ohm between P2.4 on my CC430F5137 and VCC. Unfortunately, this resistor seems to be drawing a ton of current (~2mA). Looking at some similar threads, I saw that the input impedance of a GPIO pin is 2kOhm; is this correct? Where is this information on the datasheet?
Also, from some other threads, I saw that a pin configured as ADC has an input impedance of about 300kOhm. Is this true? Where is it in the datasheet? If so, does the following code set P2.4 as an ADC?
ADC12CTL0 = ADC12ON; ADC12MCTL0 |= ADC12INCH_4; P2SEL |= BIT4; P2DIR &= ~BIT4; P2OUT &= ~BIT4;