Description: This example demonstrates how to configure a single PWM channel to generate variable duty cycle signals; how to use DMA feature for synchronous channels; and how to work with fault/override/dead-time modes. A TC is also used to capture the signal PWM outputs for analyzing. The code can be roughly broken down as follows:
- Configure TC to capture the signal PWM outputs. 'c' to start capture.
- Captured information would be dumped to console when finished.
- PWM outputs can also be watched with the help of an oscillator.
- PWM asynchronous channel operations. 'a' to configure the channel.
- PWM DMA operations for synchronous channels. 'd' to start DMA.
- PWM fault mode test. 'f' to launch the fault from TC, 'F' to clear it.
- PWM output overide/dead-time test. 'o' to configure the parameters.