nRF51 SDK - S210 SoftDevice
|
The PWM Example demonstrates the use of the pulse-width modulation library by generating waveforms over a GPIO. The GPIO pin could drive a small speaker, for example.
This example generates two variable duty cycle pulses using two PWM channels (with positive and negative polarity). The duty cycle is changed automatically and will vary between 0 and 100.
The application will emit light on LED 1 and LED 2, corresponding to the duty cycle. With a higher value, the LED will emit less intense light.
The name of the example is pwm_pca10028. If you are not using the Keil Pack Installer, you can find the source code and project file of the example in the following folder: <InstallFolder>\examples\peripheral\pwm
LED assignments:
Test the PWM Example application by performing the following steps: