uses a 8-bit counter to drive PWM on 7 output channels. Each channel is controlled by a dedicated 8-bit register that specifies its PWM level: 0 means always off, 1 is for 1/255 on, 5 is for 5/255 on and 255 is 255/255 (always on)
after reset, all output pins will be low. Use SPI writes with register addresses (0..6) to set 8-bit PWM levels. The corresponding pin will start oscillating between 0 and 1 according to the clock and the set level.
# | Input | Output |
---|---|---|
0 | clock | out0 |
1 | reset | out1 |
2 | cs | out2 |
3 | sclk | out3 |
4 | mosi | out4 |
5 | reserved | out5 |
6 | reserved | out6 |
7 | reserved | miso |