The PWM module provides up to 4 8-bit PWM outputs.
The module base register address for the PWM module is 0x08.
PWM outputs are available on pins PA04, PA05, PA06, and PA07.
Function Registers
Register Address |
Register Name |
Register Size |
Notes |
0x01 |
PWM_VAL |
16 bits |
Write Only |
Byte 0 |
Byte 1 |
PWM Number |
PWM Value |
The first byte written should be the PWM number you would like to write to. The second byte should be the pwm value.
PWM Number |
Output Pin |
0 |
PA04 |
1 |
PA05 |
2 |
PA06 |
3 |
PA07 |