Intel 80C196NU ユーザーズマニュアル

ページ / 471
10-19
EVENT PROCESSOR ARRAY (EPA)
EPA
x
_CON 
x
 = 0–3
Address:
Reset State:
Table 10-2 on page 10-3
00H
The EPA control (EPA
x
_CON) registers control the functions of their assigned capture/compare 
channels. The registers for EPA0 andEPA2 are identical. The registers for EPA1 and EPA3 have an 
additional bit, the remap bit. This added bit (bit 8) requires an additional byte, so EPA1_CON and 
EPA3_CON must be addressed as words, while the others can be addressed as bytes.
15
8
x
 = 1, 3
RM
7
0
TB
CE
M1
M0
RE
ROT
ON/RT
7
0
x
 = 0, 2
TB
CE
M1
M0
RE
ROT
ON/RT
Bit
Number
Bit 
Mnemonic
Function
15:9
Reserved; always write as zeros.
8
RM
Remap Feature
The remap feature applies to the compare mode of the EPA1 and EPA3 
only.
When the remap feature of EPA1 is enabled, EPA capture/compare 
channel 0 shares output pin EPA1 with EPA capture/compare channel 1. 
When the remap feature of EPA3 is enabled, EPA capture/compare 
channel 2 shares output pin EPA3 with EPA capture/compare channel 3.
0 = remap feature disabled
1 = remap feature enabled
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 (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
 These bits apply to the EPA1_CON and EPA3_CON registers only.
Figure 10-10.  EPA Control (EPA
x_CON) Registers