46 STC12C5Axx
Technical Summary
CH
CL
Fosc/12
Fosc/2
Timer0 overflow
External input
ECI (P3.4)
CPS1 CPS0
ECF
-
-
-
-
CIDL
CMOD
-
CCF1 CCF0
CR
-
-
-
CF
CCON
IDLE
PCA
interrupt
To PCA module
16-bit counter
PCA Timer/Counter
SFR:
CMOD (PCA Mode Control Register)
Read/Write
Address:
0xD9FH
Default:
0XXX-X000
Bit
7
6
5
4
3
2
1
0
Name
CIDL
CPS1
CPS0
ECF
CIDL
:= Behavior control of the PCA.
0
:= (default)
Disable counting of the PCA counter while the MCU is put under idle state.
1
:=
Enable counting of the PCA counter while the MCU is put under idle state.
{ CPS1
,
CPS0 }
:= Used to select the clocking source for PCA counter
{ 0, 0 }
:= set the frequency of the PCA counter clock source as oscillator’s frequency over 12
{ 0, 1 }
:= set the frequency of the PCA counter clock source as oscillator’s frequency over 2
{ 1, 0 }
:= set the PCA counter clock source as Timer-0 overflow
{ 1, 1 }
:= set the PCA counter clock source as pin ECI(pin P3.4)
ECF
:= Control bit of deciding if to pass interrupt from PCA timer overflow to the MCU
0
:= (default)
Inhibit the interrupt from PCA timer to the MCU
1
:=
Permit the interrupt from PCA timer to the MCU
http://www.DataSheet4U.net/
datasheet pdf - http://www.DataSheet4U.net/