Output compare
Output compare is the ability to trigger an output based on a timestamp in memory, without interrupting the execution of code by a processor or microcontroller. This is a functionality provided by many embedded systems. The corresponding ability to record a timestamp in memory when an input occurs is called input capture.
Operation
[edit]In an output compare system, a timer or counter is compared with one or more programmed compare values. When the timer value matches a compare value, a compare-match event occurs. Depending on the operating mode, the event can change the state of an output pin, generate a pulse, trigger an interrupt, or be used for waveform generation such as pulse-width modulation (PWM).[1]
References
[edit]- ↑ "PIC32 Output Compare Overview". Microchip Developer Help. Microchip Technology. 2023-11-10. Retrieved 2026-09-30.
- Microchip Documentation on Output Compare: DS39706A-page 16-1 - Section 16. Output Compare http://ww1.microchip.com/downloads/en/DeviceDoc/39706a.pdf