Minor changes are by default collapsed in the page history.
No changes
The page does not exist yet.
Failed to load changes
Version by on
Leave Collaboration
Are you sure you want to leave the realtime collaboration and continue editing alone? The changes you save while editing alone will lead to merge conflicts with the changes auto-saved by the realtime editing session.
Using Hardware Fast PWM Mode and Testing with Data Visualizer
Last modified by Microchip on 2023/11/09 09:02
AVR®: Using Hardware Fast PWM Mode and Testing with Data Visualizer
In this video:
Understand the Fast PWM timing diagram.
Modify the PWM initialization function to configure 11-bit PWM and clear Output Compare 1B (OC1B) on compare match.
Find that OC1B is an alternate pin function of PB2 and setting this as an output.
Use the Data Visualizer's GPIO view in pin mode to analyze the output waveforms.
Utilize cursors to measure the frequency of the waveforms of both the LED pin (PB5) and OC1B (PB2).
Check the measured frequency (7813 Hz) against the formula in the datasheet (7812 Hz), showing the frequency is measured as expected.
If you need to work with Microchip Support staff directly, you can submit a technical support case. Keep in mind that many questions can be answered through our self-help resources, so this may not be your speediest option.