Academic Program

Hardware Design

8-Bit Pulse Width Modulation

Pulse Width Modulation (PWM) can be useful in many ways, one being to control the brightness of a Light Emitting Diode (LED). Varying the time between pulses at a very high rate can make the LED look dimmer or brighter without the human eye detecting the flashing. The same technique can be used for speed control of motors. PWM can be a useful technique on many designs and a PWM peripheral is built into most 8-bit MCU devices.

proj1.png
 
The schematic shows how LED D2 is connected to the RA4 pin of the PIC18F47Q10 MCU on the Curiosity High Pin Count (HPC) Development Board. The LED will be controlled by the pulse width modulation peripheral.