Intel 8XC196MC User Manual page 495

Table of Contents

Advertisement

8XC196MC, MD, MH USER'S MANUAL
EPAx_CON
EPA x _CON
x = 0–1 (8XC196MH)
x = 0–3 (8XC196MC)
x = 0–5 (8XC196MD)
The EPA control (EPA x _CON) registers control the functions of their assigned capture/compare
channels.
7
x = 0, 2, 4
TB
7
x = 1, 3, 5
TB
Bit
Bit
Number
Mnemonic
7
TB
6
CE
5:4
M1:0
C-18
CE
M1
M0
CE
M1
M0
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).
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
Get other manuals https://www.bkmanuals.com
Address:
Reset State:
RE
WGR
ROT
RE
AD
ROT
Function
Table C-4
0
ON/RT
0
ON/RT

Advertisement

Table of Contents
loading

This manual is also suitable for:

8xc196md8xc196mh

Table of Contents