Readme
Example Summary
The following example configures TimerA in PWM edge align mode and outputs 4 PWM signal. The pair of signals on C0 and C1 are complementary signals with deadband insertion. The pair of signals on C2 and C3 are also complementary signals with dead band insertion.
Peripherals & Pin Assignments
- TIMERA0
- TIMA0_C0 / PA0
- TIMA0_C1 / PA22
- TIMA0_C2 / PB20
- TIMA0_C3 / PB13
BoosterPacks, Board Resources & Jumper Settings
- Boosterpack connections:
- J19.9 - PA0 (GPIO_PWM_C0_PIN)
- J3.24 - PA22 (GPIO_PWM_C1_PIN)
- J4.36 - PB20 (GPIO_PWM_C2_PIN)
- J4.35 - PB13 (GPIO_PWM_C3_PIN)
- Jumper settings:
- J1 OFF
- J9 [1:2]
Example Usage
Compile, load and run the example. Monitor the PWM signals on PA0, PA22, PB20, and PB13. The pair of signals on PA0 and PA22 are complementary signals with deadband insertion. The second pair of signals on PB20 and PA13 are also complementary signals with deadband insertion.