Output Compare Peripheral Library for Harmony v2

This library allows you to:

  • Generate a single pulse or a series of pulses in response to selected time base events.
  • Simplify low-level access to the module without the necessity of interacting directly with the module's registers, thereby hiding differences from one microcontroller variant to another.

Example Library Functions

Description Associated Functions
Disables the alternate clock source for Input Capture or Output Compare modules. The primary clock source will be used instead. PLIB_DEVCON_AlternateClockDisable (DEVCON_MODULE_ID index, DEVCON_ALT_CLOCK_TARGET targetAltClock)
Selects the alternate clock source for Input Capture or Output Compare modules. PLIB_DEVCON_AlternateClockEnable (DEVCON_MODULE_ID index, DEVCON_ALT_CLOCK_TARGET targetAltClock)

 Learn More

 
Harmony Output Compare Tutorial
Learn more >
 
Entire OC PLIB Interface
Learn more >
 
OC Hardware Description
Learn more >

Important notes on using this library:

  • Refer to "MPLAB® Harmony Peripheral Library (PLIB) Overview".
  • Peripheral libraries are only supported for internal (onboard) microcontroller peripherals. External peripherals are always connected to the microcontroller through one or more internal peripheral interfaces and therefore, do not require peripheral library support.
© 2024 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
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.