68 Breathing LED

68 : Breathing LED

Select Project123456789ONSW2
  • Author: argunda
  • Description: Use the pwm output to drive an LED and it should look like it's breathing.
  • GitHub repository
  • Clock: 4000 Hz

How it works

A triangle wave is generated and used to determine duty cycle of pwm.

How to test

After reset, pwm should automatically be generated. The duty counter is output for debug purposes.

External hardware

Clock source and external LED circuit.

IO

#InputOutput
0clockbreathing_pwm
1resetduty[0]
2duty[1]
3duty[2]
4duty[3]
5duty[4]
6duty[5]
7duty[6]