Hello, Can we enable the internal pulldown resistor with GPIO pin enabled as an ADC input for nrf51822?
Thanks.
Hello, Can we enable the internal pulldown resistor with GPIO pin enabled as an ADC input for nrf51822?
Thanks.
Hi
A gpio pin is either configured as general GPIO or as AIN pin to use for ADC/LPCOMP. You can not mix those two. It is however possible to reconfigure a pin at runtime to work as GPIO or AIN pin, but you cant have both at the same time.
Thanks Stefan. Actually I was able to configure the internal pull down resistor while pin is in ADC mode. The pulldown resistor is actually drawing current while ADC is sampling. Thanks again.
Thanks Stefan. Actually I was able to configure the internal pull down resistor while pin is in ADC mode. The pulldown resistor is actually drawing current while ADC is sampling. Thanks again.