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

Nrf51822 can use P0.06 pin with PWM purpose while reading ADC?

figure 1: project's pin out

I’m doing a project using  NRF51822. We use P0.06 pin for PWM out while reading ADC from P0.01 P0.02 P0.03 & P0.04 .

As my experiment, when I’ve used P0.01 P0.02 P0.03 & P0.04 for ADC reading with voltage referred from “The internal VBG reference voltage”, P0.00 pin can not be used as a GPIO interrupt.

 From NRF51822 datasheet ,P0.00 is AREF0 and P0.06 is AREF1. Beside I found out in reference manual the figure below. My question is when enable ADC module, whether AREF0 and AREF1 pin are switched to ANAIN then can not be used as GPIO function, although using “The internal VBG reference voltage”?

And If P0.06 is still used as GPIO function( for PWM purpose) in this situation, whether the PWM affects to analog module?

figure 2: GPIO module

Related