9-15
PROGRAMMABLE COUNTER ARRAY
Figure 9-9. CCAPM
x: PCA Compare/Capture Module Mode Registers
CCAPM
x
(
x
= 0–4)
Address: CCAPM0 S:DAH
CCAPM1 S:DBH
CCAPM2 S:DCH
CCAPM3 S:DDH
CCAPM4 S:DEH
Reset State: X000 0000B
7
0
—
ECOM
x
CAPP
x
CAPN
x
MAT
x
TOG
x
PWM
x
ECCF
x
Bit
Number
Bit
Mnemonic
Function
7
—
Reserved:
The value read from this bit is indeterminate. Write a zero to this bit.
6
ECOM
x
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.
5
CAPP
x
Capture Mode (Positive):
CAPP
x
= 1 enables the capture function with capture triggered by a
positive edge on pin CEX
x
.
4
CAPN
x
Capture Mode (Negative):
CAPN
x
= 1 enables the capture function with capture triggered by a
negative edge on pin CEX
x
.
3
MAT
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.
2
TOG
x
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.
1
PWM
x
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.
0
ECCF
x
Enable CCF
x
Interrupt:
Enables compare/capture flag CCF
x
in the CCON register to generate
an interrupt request.
Summary of Contents for 8XC251SA
Page 2: ......
Page 3: ...May 1996 8XC251SA 8XC251SB 8XC251SP 8XC251SQ Embedded Microcontroller User s Manual...
Page 18: ......
Page 19: ...1 Guide to This Manual...
Page 20: ......
Page 30: ......
Page 31: ...2 Architectural Overview...
Page 32: ......
Page 41: ...3 Address Spaces...
Page 42: ......
Page 63: ...4 Device Configuration...
Page 64: ......
Page 81: ...5 Programming...
Page 82: ......
Page 102: ......
Page 103: ...6 Interrupt System...
Page 104: ......
Page 120: ......
Page 121: ...7 Input Output Ports...
Page 122: ......
Page 132: ......
Page 133: ...8 Timer Counters and Watchdog Timer...
Page 134: ......
Page 153: ...9 Programmable Counter Array...
Page 154: ......
Page 170: ......
Page 171: ...10 Serial I O Port...
Page 172: ......
Page 187: ...11 Minimum Hardware Setup...
Page 188: ......
Page 197: ...12 Special Operating Modes...
Page 198: ......
Page 206: ......
Page 207: ...13 External Memory Interface...
Page 208: ......
Page 239: ...14 Programming and Verifying Nonvolatile Memory...
Page 240: ......
Page 250: ......
Page 251: ...A Instruction Set Reference...
Page 252: ......
Page 390: ......
Page 391: ...B Signal Descriptions...
Page 392: ......
Page 400: ......
Page 401: ...C Registers...
Page 402: ......
Page 436: ......
Page 437: ...Glossary...
Page 438: ......
Page 446: ......
Page 447: ...Index...
Page 448: ......
Page 458: ......