This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Reading High impedance via GPIO pin

Dear sir,

We have interfaced a charger ic with NRF52832. It is having a charging status pin to show completion of charge. It is having 3 states 

1. High impedance (Battery not present or module shut down)

2. Low (Charging)

3. High (Charge complete).

I am configuring the corresponding GPIO (GPIO 29) using the function " nrf_gpio_cfg_input" and trying to read using the function "nrf_gpio_pin_read". 

But my question is whether it is possible to read High impedance state.

thanks & regards,

Kotteeswaran.E

Parents
  • No: In input mode, GPIO is a digital input,  so it can only read 'high' or 'low' = '1' or '0'.

    To read a 3rd state, you'd need to do something analogue.

    The same would apply to any microcontroller - it's not specific to Nordic or nRF52.

    Presumably, this pin is intended to drive the midpoint of a pair of series-connected LEDs  so that either one or the other will be on - or neither in the Hi-Z state?

    You should contact the chip manufacturer to see if they have any recommendations for connecting this to a microcontroller ...

Reply
  • No: In input mode, GPIO is a digital input,  so it can only read 'high' or 'low' = '1' or '0'.

    To read a 3rd state, you'd need to do something analogue.

    The same would apply to any microcontroller - it's not specific to Nordic or nRF52.

    Presumably, this pin is intended to drive the midpoint of a pair of series-connected LEDs  so that either one or the other will be on - or neither in the Hi-Z state?

    You should contact the chip manufacturer to see if they have any recommendations for connecting this to a microcontroller ...

Children
No Data
Related