164 PWM Generator

164 : PWM Generator

Design renderSelect Project123456789ONSW2
  • Author: Hassan Baydoun <[email protected]>, Razan Thebian <[email protected]>: Electrical and Computer Engineering Department, American University of Beirut
  • Description: It is a PWM Generator with selectable duty cycle 0-10-20-..-100% with clock divider built in
  • GitHub repository
  • Clock: 0 Hz

How it works

The design uses an external clock and 4 bits to select the duty cycle. It outputs a PWM signal with 1/10 the frequency of the clock supplied and a duty cycle depending on the 4 selected bits.

How to test

Use clock on input 0, reset on input 1, Turn bits of duty cycle select (input 2:5) to choose duty cycle (0000 -> 0%, 0001 -> 10%, 0010 -> 20%,.., 1010 ->100% ) and choose freq0 and freq1 as clock dividers (1x, 1/2x, 1/4x, 1/8x)

External hardware

You can control the intensity of an external LED using the PWM Output

IO

#InputOutput
0clockPWM_Out
1reset
2duty0
3duty1
4duty2
5duty3
6freq0
7freq1