Intel 8XC196K Series User Manual page 567

Table of Contents

Advertisement

8XC196K x, J x , CA USER'S MANUAL
EPAx_CON
EPA x _CON
x = 0–9 (8XC196K x )
x = 0–3, 8, 9 (8XC196CA, J x )
The EPA control (EPA x _CON) registers control the functions of their assigned capture/compare
channels. The registers for EPA0, EPA2, and EPA4–9 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
x = 1, 3
7
TB
7
x = 0, 2, 4–9
TB
Bit
Bit
Number
Mnemonic
15:9
8
RM
7
TB
6
CE
These bits apply to the EPA1_CON and EPA3_CON registers only.
C-40
CE
M1
M0
CE
M1
M0
Reserved; always write as zeros.
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
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 (start of 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).
Compare Enable
Determines whether the EPA channel operates in capture or compare
mode.
0 = capture mode
1 = compare mode
Address:
Reset State:
RE
AD
ROT
RE
AD
ROT
Function
Table C-12
8
RM
0
ON/RT
0
ON/RT

Advertisement

Table of Contents
loading

Table of Contents