c8051t617 Silicon Laboratories, c8051t617 Datasheet - Page 189

no-image

c8051t617

Manufacturer Part Number
c8051t617
Description
Mixed Signal Byte-programmable Eprom Mcu
Manufacturer
Silicon Laboratories
Datasheet
19.2. Capture/Compare Modules
Each module can be configured to operate independently in one of six operation modes: Edge-triggered
Capture, Software Timer, High Speed Output, Frequency Output, 8-Bit Pulse Width Modulator, or 16-Bit
Pulse Width Modulator. Each module has Special Function Registers (SFRs) associated with it in the CIP-
51 system controller. These registers are used to exchange data with a module and configure the module's
mode of operation.
Table 19.2 summarizes the bit settings in the PCA0CPMn registers used to select the PCA capture/com-
pare module’s operating modes. Setting the ECCFn bit in a PCA0CPMn register enables the module's
CCFn interrupt. Note: PCA0 interrupts must be globally enabled before individual CCFn interrupts are rec-
ognized. PCA0 interrupts are globally enabled by setting the EA bit and the EPCA0 bit to logic 1. See
Figure 19.3 for details on the PCA interrupt configuration.
X = Don’t Care
PWM16 ECOM CAPP CAPN
X
X
X
X
X
X
0
1
Table 19.2. PCA0CPM Register Settings for PCA Capture/Compare Modules
Timer Overflow
PCA Counter/
W
M
P
1
6
n
PCA Module 0
PCA Module 1
PCA Module 2
PCA Module 3
PCA Module 4
(for n = 0 to 4)
PCA0CPMn
E
C
O
M
n
X
X
X
1
1
1
1
1
C
A
P
P
n
(CCF0)
(CCF1)
(CCF2)
(CCF3)
(CCF4)
C
N
A
P
n
M
A
T
n
T
O
G
n
W
M
P
n
C
C
E
F
n
1
0
1
0
0
0
0
0
C
F
C
R
PCA0CN
C
C
F
4
Figure 19.3. PCA Interrupt Block Diagram
C
C
F
3
C
C
F
2
C
C
F
1
0
1
1
0
0
0
0
0
C
C
F
0
ECCF0
ECCF1
ECCF2
ECCF3
ECCF4
C
D
L
I
W
D
T
E
PCA0MD
W
D
L
C
K
MAT
C
P
S
1
1
X
X
X
2
0
0
0
C
P
S
1
0
1
0
1
0
1
0
1
0
1
C
P
S
0
E
C
F
0
1
TOG
0
0
0
0
1
1
0
0
Rev. 0.3
PWM ECCF
0
0
0
0
0
1
1
1
C8051T610/1/2/3/4/5/6/7
X
X
X
X
X
X
X
X
Capture triggered by positive edge
on CEXn
Capture triggered by negative edge
on CEXn
Capture triggered by transition on
CEXn
Software Timer
High Speed Output
Frequency Output
8-Bit Pulse Width Modulator
16-Bit Pulse Width Modulator
EPCA0
Operation Mode
0
1
EA
0
1
Interrupt
Priority
Decoder
189

Related parts for c8051t617