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.
Clock source and external LED circuit.
# | Input | Output |
---|---|---|
0 | clock | breathing_pwm |
1 | reset | duty[0] |
2 | duty[1] | |
3 | duty[2] | |
4 | duty[3] | |
5 | duty[4] | |
6 | duty[5] | |
7 | duty[6] |