Pulse width modulation (PWM)

Pulse width modulation allows you to create a block wave with a certain duty cycle. It is useful for use cases like dimming LEDs.

OffsetRegister
0x00Enable
0x10Config 0
0x14Config 1
0x18Config 2
0x1CConfig 3
0x20Config 4
0x24Config 5
0x28Config 6
0x2CConfig 7

Enable

This has a bit per PWM on whether to enable it or not.

Bit offsetDescription
7Enable for PWM 7
......
1Enable for PWM 1
0Enable for PWM 0

Config

For each output, there is a register defining the pulse width and how long the complete wave is (indicated by the counter value).

Bit offsetDescription
31-16Counter
15-0Pulse width