nrfx pwm peripheral's clock source

I want to make sure I understand something fundamental. The nRF52840's PWM peripheral is hardware based unlike the app_pwm library which is software based, (originally developed for the nRF51 family which has no PWM silicon). So my question: Am I correct that no nRF52840 Timer peripheral is used, (such as nrfx_timer0, nrfx_timer1, nrfx_timer2, nrfx_timer3, or nrfx_timer4), for the generation of PWM by the nrfx_pwm peripheral? 

  • Hello,

    I want to make sure I understand something fundamental.

    Absolutely - we welcome any questions you might have! :)

    Am I correct that no nRF52840 Timer peripheral is used, (such as nrfx_timer0, nrfx_timer1, nrfx_timer2, nrfx_timer3, or nrfx_timer4), for the generation of PWM by the nrfx_pwm peripheral? 

    This is correct - the pwm peripheral does not use any TIMER or RTC instances to generate its pulses, it uses its own wave counter.
    You can also verify this by looking through the nrfx_pwm source code, to see that it does not depend on any other peripherals to function.

    Best regards,
    Karl

Related