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

NRF52 PWM library or driver?

Hello,

I am trying to build a remote control using NRF52832 SoC, SDK16.0.0 with softdevice S132 version 7, Keil 5.

I have to control a servo motor and i want to achieve this using the PWM HW integrated in the chip.

I am also using the softdevice S132.

Should i start with the examples from the PWM Library? or the ones from PWM driver?

The examples from PWM driver looks very complicated compared to the task that i have.

I also searched about servo examples using nrf52, but i didn't found a simple example which is working.

Is there a way to directly update the Compare register from the Timer with the calculated value in order to control the servo?

Thank you!

Parents Reply
  • Hello,

    I started with the PWM driver library and i run into a problem. I flashed the softdevice  S132 v7 in the chip, then i tried to flash the PWM driver PCA10040 example.

    The flashing didn't work and my chip stopped responding.

    I couldn't reflash, erase, do anything on that chip.

    I am using J-Link to flash, over SWD interface

    Is there a reason why this is braking my chips?

Children
Related