Intel 8XC196K Series User Manual page 560

Table of Contents

Advertisement

COMP x _CON
x = 0–1
The EPA compare control (COMP x _CON) registers determine the function of the EPA compare
channels.
7
TB
CE
Bit
Bit
Number
Mnemonic
7
TB
6
CE
5:4
M1:0
3
RE
2
AD
M1
M0
Time Base Select
Specifies the reference timer.
1 = timer 2 is the reference timer and timer 1 is the opposite timer
0 = timer 1 is the reference timer and timer 2 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.
Compare Enable
This bit enables the compare function.
1 = compare function enabled
0 = compare function disabled
EPA Mode Select
Specifies the type of compare event.
M1
M0
0
0
no output
0
1
clear output pin
1
0
set output pin
1
1
toggle output pin
Re-enable
Allows a compare event to continue to execute each time the event-time
register (COMP x _TIME) matches the reference timer rather than only
upon the first time match.
1 = compare function always enabled
0 = compare function will drive the output only once.
A/D Conversion
Allows the EPA to start an A/D conversion that has been previously set
up in the A/D control registers. To use this feature, you must select the
EPA as the conversion source in the AD_CONTROL register.
1 = EPA compare event triggers an A/D conversion
0 = causes no A/D action
Address:
Reset State:
RE
AD
ROT
Function
REGISTERS
COMPx_CON
Table C-10
0
RT
C-33

Advertisement

Table of Contents
loading

Table of Contents