[ Log In ]
3 Foot USB Cable Type A to USB Cable Type A

USB Cable Type A Male to USB Type A Male - 3 FT

USB 2.0 Cable 10 Foot Type A Male to Type B Male

USB 2.0 Cable Type A Male to Type B Male - 10 FT

Tumbnail: 62 oz-in NEMA 17 Stepping motors (also called stepper motor)

NEMA 17 Stepping Motor (62 oz-in 5mm single shaft)

$19.95 Out of Stock
Image of the Atmega324p



10K timmer potentiometer

10K Trimmer Potentiometer (Through Hole)

16x2 LCD (Liquid Crystal Display)

16x2 LCD (Liquid Crystal Display)

White prototyping breadboard with 30 tie strips and two power rails on each side.

White Prototyping Breadboard (2x30 columns of tie strips and 2x2 rows of power strips)

Clear Semi Transparent Breadboard

Clear Prototyping Breadboard (2x30 columns of tie strips and 2x2 rows of power strips)

Red Through Hole LED (Light emitting diode)

Single Red Through Hole LED (Light Emitting Diode)


PWM (Pulse Width Modulation) General Discussion on Phase Correct PWM

Phase Correct PWM is just the pulse positioned at the middle of the period. The timer/counter is able to do this because instead of the timer overflowing and resetting the count to 0, it counts backward back to 0.

With the 8-bit timer, the OCR (Output Compare Register) can be used to create this pulse. When the timer arrives to the OCR value as it counts up, the pulse starts. The timer will start to count downward and will hit the OCR value again, the pulse will end. This creates a symmetrical characteristic with the counting and pulse, so the pulse is at the middle of the period.

This can also be done with the 16-bit timer/counter and would be more versatile with the ICR (Input Capture Register) being the top of the count (where the count starts to count downward) and the OCR value as the start and end of the pulse.

Comments and Additional Information

Have some code to share? Or additional information? Respond here:

You need to be logged in to save a response on this page. The response must be constructive, helpful, supplimentary or to correct the existing video, code or narrative content.


Code (optional):