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
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.