sample ADC synced with PWM

Hi All,

I am newbie with nordic, and I need some help.

I am using nRF52832 with softdevice.

I need to generate a 128 kHz clock signal (PWM pulses with 128kHz frequency, duty cycle 50%,) and to sample Analog input at the same frequency (128 kHz) which is synced to the generated pulses (one sample to each cycle of the PWM output)

How can I do that? is there any example?

 

Regards,

Amir

Related