mpc82x52a Megawin Technology, mpc82x52a Datasheet - Page 39

no-image

mpc82x52a

Manufacturer Part Number
mpc82x52a
Description
8-bit Micro-controller
Manufacturer
Megawin Technology
Datasheet
MEGAWIN
named CCF0 and CCF1 in SFR CCON. The CCF0 and CCF1 serve as flags for module-0 and
module-1 respectively. They are set by hardware when either a match or a capture occurs.
These flags also can only be cleared by software.
SFR: CCON (PCA Counter Control Rregister)
SFR: CMOD (PCA Mode Control Register)
CIDL:=Behavior control of the PCA.
{ CPS1, CPS0 } := Used to select the clocking source for PCA counter
ECF:=Control bit of deciding if to pass interrupt from PCA timer overflow to the MCU
IDLE
CIDL
Bit-7
Bit-7
CF
0:= (default)
1:=
0:= (default)
1:=
{ 0, 0 } := set the frequency of the PCA counter clock source as oscillator’s frequency over
{ 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)
Enable counting of the PCA counter while the MCU is put under idle state.
Permit the interrupt from PCA timer to the MCU
Disable counting of the PCA counter while the MCU is put under idle state.
Inhibit the interrupt from PCA timer to the MCU
Bit-6
Bit-6
Timer0 overflow
CR
External input
-
ECI (P3.4)
12
Fosc/12
Fosc/2
Bit-5
Bit-5
-
-
MPC82x52A Data Sheet
Bit-4
Bit-4
-
-
CIDL
CF
PCA Timer/Counter
CR
-
-
-
Bit-3
Bit-3
-
-
-
-
-
-
CPS1 CPS0
-
CPS1
Bit-2
Bit-2
CCF1 CCF0
-
CH
ECF
16-bit counter
CMOD
CCON
CL
CCF1
CPS0
Bit-1
Bit-1
To PCA module
CCF0
Bit-0
ECF
Bit-0
interrupt
PCA
39

Related parts for mpc82x52a