A triangle wave is generated and used to determine duty cycle of pwm.
After reset, pwm should automatically be generated. The duty counter is output for debug purposes.
# | Input | Output |
---|---|---|
0 | clock | breathing_pwm |
1 | reset | duty[0] |
2 | none | duty[1] |
3 | none | duty[2] |
4 | none | duty[3] |
5 | none | duty[4] |
6 | none | duty[5] |
7 | none | duty[6] |