Intel 8XC251SA User Manual page 411

Embedded microcontroller
Hide thumbs Also See for 8XC251SA:
Table of Contents

Advertisement

CCAPM x ( x = 0–4)
PCA Compare/Capture Module Mode Registers. These five registers select the operating mode of the
corresponding compare/capture module. Each register also contains an enable interrupt bit (ECCFx)
for generating an interrupt request when the module's compare/capture flag (CCF x in the CCON
register) is set. See Table 9-3 on page 9-14 for mode select bit combinations.
7
ECOM x
Bit
Bit
Number
Mnemonic
7
6
ECOM x
5
CAPP x
CAPN x
4
3
MAT x
2
TOG x
PWM x
1
0
ECCF x
CAPP x
CAPN x
Reserved:
The value read from this bit is indeterminate. Write a zero to this bit.
Compare Modes:
ECOM x = 1 enables the module comparator function. The comparator is
used to implement the software timer, high-speed output, pulse width
modulation, and watchdog timer modes.
Capture Mode (Positive):
CAPP x = 1 enables the capture function with capture triggered by a
positive edge on pin CEX x .
Capture Mode (Negative):
CAPN x = 1 enables the capture function with capture triggered by a
negative edge on pin CEX x .
Match:
Set ECOM x and MAT x to implement the software timer mode. When
MAT x = 1, a match of the PCA timer/counter with the compare/capture
register sets the CCF x bit in the CCON register, flagging an interrupt.
Toggle:
Set ECOM x, MAT x , and TOG x to implement the high-speed output
mode. When TOG x = 1, a match of the PCA timer/counter with the
compare/capture register toggles the CEX x pin.
Pulse Width Modulation Mode:
PWM x = 1 configures the module for operation as an 8-bit pulse width
modulator with output waveform on the CEX x pin.
Enable CCF x Interrupt:
Enables compare/capture flag CCF x in the CCON register to generate
an interrupt request.
Address: CCAPM0 S:DAH
Reset State: X000 0000B
MAT x
TOG x
PWM x
Function
REGISTERS
CCAPM1 S:DBH
CCAPM2 S:DCH
CCAPM3 S:DDH
CCAPM4 S:DEH
0
ECCF x
C-9

Advertisement

Table of Contents
loading

This manual is also suitable for:

8xc251sb8xc251sp8xc251sq

Table of Contents