Input Capture
   HOME

TheInfoList



OR:

Input capture is a method of dealing with input signals in an
embedded system An embedded system is a computer system—a combination of a computer processor, computer memory, and input/output peripheral devices—that has a dedicated function within a larger mechanical or electronic system. It is ''embedded'' as ...
. Embedded systems using input capture will record a
timestamp A timestamp is a sequence of characters or encoded information identifying when a certain event occurred, usually giving date and time of day, sometimes accurate to a small fraction of a second. Timestamps do not have to be based on some absolut ...
in memory when an input signal is received. It will also set a flag indicating that an input has been captured. This allows the system to continue executing without interruption while an input is being received while still having the capability to trigger events based on the exact time when the input was received. The corresponding capability to trigger an output at a specified time, based on a timestamp in memory, is called output compare. There are many programmable interrupt controllers that provide dedicated input capture pins and a programmable counter along with it. These pins generate interrupts to the controller, which then executes an
interrupt service routine In computer systems programming, an interrupt handler, also known as an interrupt service routine or ISR, is a special block of code associated with a specific interrupt condition. Interrupt handlers are initiated by hardware interrupts, softwar ...
. The interrupts can be programmed to occur at the rising or falling edge of the input signal, depending on requirements.


External links


- Atmel AVR135: Using timer capture to measure PWM duty cycle
for AVR-family microcontrollers
- Microchip's Input Capture application note for PIC-family microcontrollers
Microcontrollers {{compu-eng-stub