C8051F360/1/2/3/4/5/6/7/8/9
22.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 22.2 summarizes the bit settings in the PCA0CPMn registers used to select the PCA0 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 (IE.7) and the EPCA0 bit (EIE1.3) to
logic ‘1’. See Figure 22.3 for details on the PCA interrupt configuration.
(for n = 0 to 5)
PCA0CPMn
PCA0CN
PCA0MD
C C C E
P
W
M
1
6
n
E C C M T
C A A A O
O P P T G
M P N n n
n n n
P
W
M
n
E
C
C
F
n
C C C C C C C C
F R C C C C C C
F F F F F F
C
I
D
L
P P P C
S S S F
2 1 0
5 4 3 2 1 0
0
1
PCA Counter/
Timer Overflow
ECCF0
ECCF1
ECCF2
ECCF3
ECCF4
EPCA0
(EIE.3)
EA
(IE.7)
0
1
PCA Module 0
(CCF0)
Interrupt
Priority
Decoder
0
1
0
1
0
1
PCA Module 1
(CCF1)
0
1
PCA Module 2
(CCF2)
0
1
PCA Module 3
(CCF3)
0
1
PCA Module 4
(CCF4)
ECCF5
0
1
PCA Module 5
(CCF5)
Figure 22.3. PCA Interrupt Block Diagram
266
Rev. 1.0