Purpose
This file contains all the specific code for the basic-pwm-project
Contents
The code
can be roughly broken down as follows:
- Interrupt handler for the PWM controller
- The main function, which implements the program behavior
- Configure PWM clock
- Configure PWM channel 1 and channel 2 to generate a 100kHz PWM signal
- Enalbe PWM interrupt on channel 1
- Enable channel 1 and channel 2
Please refer to the list of functions in the Overview
tab of this unit for more detailed information.