Any luck getting this to work Licter?
Thanks a lot.
We tested it and it works well.
Thanks for the feedback. We are thinking about adding a PWM section to the existing Hardware Interfaces Guide.
i think, it'll be nice if you are adding a PWM section into Hardware Interfaces Guide.
Because i'm a little bit confused about it.
The best way to get familiar with the PWM function is to play with the PWM_Tones sample application within SDK 2.0.1
* PWM Tones Sample
* This application provides the sample code that uses the
* on-chip PWM and the buzzer on the TAG board to cycle
* through different tones when the button connected to P0
* is pressed. It also uses two other channels to generate
* random width pulses. Tones are generated with a 50% duty
* cycle and the other two channels have some randomness.
* Features demonstrated
* - Use of the PWM driver interface
* - Use of the on-chip HW random number generator.
* To demonstrate the app, work through the following steps.
* 1. Plug the WICED eval board into your computer
* 2. Build and download the application (to the WICED board)
* 3. Once the application is running, push SW1 and every
* time the button is pressed, the tone generated by the buzzer
* will cycle through a set of frequencies.
* 4. Attach an oscilloscope to P26 and P27 to see random width
do you have tips for me, if i'll change the PWM duty cycle?
Example: PWM0 should run in 13% Duty Cycle; PWM1 => 90% Duty Cycle; PWM2 => 28% duty cycle. All PWMs should run with 1kHz.
thanks. i'll try it.