Intel 8XC196NT User Manual page 255

Table of Contents

Advertisement

8XC196NT USER'S MANUAL
EPA x _CON (Continued)
x = 0–9
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
6
CE
5:4
M1:0
3
RE
These bits apply to the EPA1_CON and EPA3_CON registers only.
Figure 10-10. EPA Control (EPA x _CON) Registers (Continued)
10-22
CE
M1
M0
CE
M1
M0
Compare Enable
Determines whether the EPA channel operates in capture or compare
mode.
0 = capture mode
1 = compare mode
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
Re-enable
Re-enable applies to the compare mode only. It allows a compare event
to continue to execute each time the event-time register (EPA x _TIME)
matches the reference timer rather than only upon the first time match.
0 = compare function is disabled after a single event
1 = compare function always enabled
Address:
See Table 10-2 on
Reset State:
F700H ( x = 1 & 3)
00H( x = 0, 2, 4–9)
RE
AD
ROT
RE
AD
ROT
Function
page 10-3
8
RM
0
ON/RT
0
ON/RT

Advertisement

Table of Contents
loading

Table of Contents