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

TIMER+PPI+ADC on nrf52

Hi,

I am looking for some assistance to choose the best way using the nrf52832 processor in a correct way.

The main task is to generate a 1KHz PWM Signal with changeable Duty-Ciclye during the runtime. On every cycle (Signal change high/low - low/high), or better after the signal changed, i need to measure with the integrated saadc. I also need control about the Signal to set the PWM pin to low, or to high.

What is the best way to use the nrf52 chip? Should i use the integrated hardware PWM module and can i trigger the saadc on a signal cycle? Or should i use a Timer to generate the PWM Signal, reload the CC registers with different values for Duty-Cycle and trigger saadc measurements on every timeout?

I am thankful for every help, best regards, Nils :)

Parents
  • Hey Ole,

    thanks for your assistance :)

    with ppm peripheral do you mean the hardware pwm? I am sorry i can not find EVENTS_PERIODEND ? If this is possible i think it could be a could solution for my problem. I could also connect the PWM output to an input and get interrupted on pin change, how does that sound to you?

    i will have a look into ppi, i got the saadc working with normal handling but not triggered by ppi.

    Kindly, Nils

Reply
  • Hey Ole,

    thanks for your assistance :)

    with ppm peripheral do you mean the hardware pwm? I am sorry i can not find EVENTS_PERIODEND ? If this is possible i think it could be a could solution for my problem. I could also connect the PWM output to an input and get interrupted on pin change, how does that sound to you?

    i will have a look into ppi, i got the saadc working with normal handling but not triggered by ppi.

    Kindly, Nils

Children
No Data
Related