Download 8XC196NT Microcontroller User`s Manual

Transcript
EVENT PROCESSOR ARRAY (EPA)
CLKOUT
PH2
TxCLK
TxDIR
COUNT x
x+1
x +2
x +3
x +4
x +5
x +6
x +5
x +4
x +3
x +2
x +1
A0269-02
Figure 10-4. Quadrature Mode Timing and Count
10.4 EPA CHANNEL FUNCTIONAL OVERVIEW
The EPA has ten programmable capture/compare channels that can perform the following tasks.
• capture the current timer value when a specified transition occurs on the EPA pin
• start an A/D conversion when an event is captured or the timer value matches the
programmed value in the event-time register
• clear, set, or toggle the EPA pin when the timer value matches the programmed value in the
event-time register
•
•
•
•
generate an interrupt when a capture or compare event occurs
generate an interrupt when a capture overrun occurs
reset its own base timer in compare mode
reset the opposite timer in both compare and capture mode
In addition to the capture/compare channels, the EPA also has two compare-only channels. They
support all the compare functions of the capture/compare channels.
10-9