Download Microcontroller User`s Manual

Transcript
REGISTERS
Address:
Reset State:
CCON
S:D8H
00X0 0000B
PCA Timer/Counter Control Register. Contains the run control bit and overflow flag for the PCA
timer/counter, and the compare/capture flags for the five PCA compare/capture modules.
7
0
CF
Bit
Number
7
CR
—
Bit
Mnemonic
CF
CCF4
CCF3
CCF2
CCF1
CCF0
Function
PCA Timer/Counter Overflow Flag:
Set by hardware when the PCA timer/counter rolls over. This generates
an interrupt request if the ECF interrupt enable bit in CMOD is set. CF
can be set by hardware or software but can be cleared only by software.
6
CR
PCA Timer/Counter Run Control Bit:
5
—
Reserved:
Set and cleared by software to turn the PCA timer/counter on and off.
The value read from this bit is indeterminate. Do not write a “1” to this bit.
4:0
CCF4:0
PCA Module Compare/Capture Flags:
Set by hardware when a match or capture occurs. This generates a PCA
interrupt request if the ECCFx interrupt enable bit in the corresponding
CCAPMx register is set. Must be cleared by software.
C-8