Рет қаралды 645
Microcontrollers are more than just firmware. They have hardware internally that works in conjunction with the standard GPIO. This episodes follows the output compare module. The Arudino analogWrite function is an easy method to generate a PWM output, however the output is limited to 8bit granularity and 480/960Hz.
This episode will look deeper into the output compare register to set the PWM so you can have a 1MHz PWM with 16 bit duty cycle capabilities