Intel 8XC196MC User Manual

Page of 579
11-19
EVENT PROCESSOR ARRAY (EPA)
EPA
x
_CON 
x
 = 0–1 (8XC196MH)
x
 = 0–3 (8XC196MC)
x
 = 0–5 (8XC196MD)
Address:
Reset State:
See Table 11-3 on page 11-3
00H
The EPA control (EPA
x
_CON) registers control the functions of their assigned capture/compare 
channels. 
7
0
x
 = 0, 2, 4
TB
CE
M1
M0
RE
WGR
ROT
ON/RT
7
0
x
 = 1, 3, 5
TB
CE
M1
M0
RE
AD
ROT
ON/RT
Bit
Number
Bit 
Mnemonic
Function
7
TB
Time Base Select
Specifies the reference timer.
0 = timer 1 is the reference timer and timer 2 is the opposite timer
1 = timer 2 is the reference timer and timer 1 is the opposite timer
A compare event (reloading the waveform generator; starting an A/D 
conversion; clearing, setting, or toggling an output pin; and/or resetting 
either timer) occurs when the reference timer matches the time 
programmed in the event-time register.
When a capture event (falling edge, rising edge, or an edge change on 
the EPA
x
 pin) occurs, the reference timer value is saved in the EPA event-
time register (EPA
x
_TIME).
6
CE
Compare Enable
Determines whether the EPA channel operates in capture or compare 
mode.
0 = capture mode
1 = compare mode
5:4
M1:0
EPA Mode Select
In capture mode, specifies the type of event that triggers an input capture. 
In compare mode, specifies the action that the EPA executes when the 
reference timer matches the event time.
M1
M0
Capture Mode Event
0
0
no  capture
0
1
capture on falling edge
1
0
capture on rising edge
1
1
capture on either edge
M1
M0
Compare Mode Action
0
0
no output
0
1
clear output pin
1
0
set output pin
1
1
toggle output pin
Figure 11-10.  EPA Control (EPA
x_CON) Registers