This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Is there an example code for using PWM on the nRF51822 with a SoftDevice?

I'm looking to add PWM functionality to my design to drive an LED. Examples exist for other devices, and those don't use the SoftDevice. Is there an example or some reference design for making the PWM module work with the nRF51822 and SD?

Parents
  • Hi again

    I made some change to the PWM library, and have uploaded a new version below:

    Changes include:

    1. Fixed a bug that would lead to an inverted output in certain circumstances
    2. Changed the API to be more in line with the rest of the SDK, using a config struct to initialize the driver
    3. Added a define in the header allowing the PWM library to be used in a "SoftDevice mode", where it detects whether or not the SoftDevice is enabled so that the PWM library can be initialized at any time

    I don't know if you ever solved your issue Nils?

    Best regards Torbjørn

    Simple PWM v1.2.zip

Reply
  • Hi again

    I made some change to the PWM library, and have uploaded a new version below:

    Changes include:

    1. Fixed a bug that would lead to an inverted output in certain circumstances
    2. Changed the API to be more in line with the rest of the SDK, using a config struct to initialize the driver
    3. Added a define in the header allowing the PWM library to be used in a "SoftDevice mode", where it detects whether or not the SoftDevice is enabled so that the PWM library can be initialized at any time

    I don't know if you ever solved your issue Nils?

    Best regards Torbjørn

    Simple PWM v1.2.zip

Children
Related