Toggle the parent tree of Using Hardware Fast PWM Mode and Testing with Data Visualizer. Learn Products Toggle the hierarchy tree under Learn Products. … 8-bit AVR® Microcontrollers Toggle the hierarchy tree under 8-bit AVR® Microcontrollers. Getting Started with AVR® Microcontrollers Toggle the hierarchy tree under Getting Started with AVR® Microcontrollers. Using Hardware Fast PWM Mode and Testing with Data Visualizer Toggle the hierarchy tree under Using Hardware Fast PWM Mode and Testing with Data Visualizer.
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.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.