mpc82x54a Megawin Technology, mpc82x54a Datasheet - Page 43

no-image

mpc82x54a

Manufacturer Part Number
mpc82x54a
Description
8-bit Micro-controller
Manufacturer
Megawin Technology
Datasheet
MEGAWIN
Configure PCA Module
PCA Capture Mode
To use one of the PCA modules in the capture mode, one or both of bits CAPPn and CAPNn
in SFR CCAPMn should be set. The external CEXn input for the module is sampled for a
transition. When a valid transition occurs, the PCA hardware loads the value of the PCA
counter register (CH and CL) into the module’s capture registers (CCAPnH and CCAPnL). If
the bit CCFn for the module in the SFR CCON and the bit ECCFn in the SFR CCAPMn are
set then an interrupt will be generated.
16-bit Software Timer Mode
The PCA modules can be used as software timers by setting both the ECOMn and MATn bits
in the CCAPMn register. The PCA timer will be compared to the module’s capture registers,
and when a match occurs an interrupt will be generated if the CCFn and ECCFn bits for the
module are both set.
ECOMn CAPPn CAPNn
CEXn
X
X
X
0
1
1
1
0
1
0
1
0
0
0
0
0
1
1
0
0
0
CF
-
MATn
0
0
0
0
1
1
0
ECOMn
CR
0
CAPPn
-
MPC82x54A Data Sheet
TOGn
0
0
0
0
0
1
0
CAPNn
PCA Capture Mode
-
CCF3
MATn
PWMn
0
0
0
0
0
0
0
1
CCF2 CCF1
TOGn
0
PWMn
ECCFn
0
X
X
X
X
X
0
0
CCF0
ECCFn
CAPTURE
No operation
16-bit capture by a positive-edge trigger on
CEXn
16-bit capture by a negative trigger on CEXn
16-bit capture by a transition on CEXn
16-bit Software Timer
16-bit High Speed Output
8-bit PWM
MDnCON
CCON
Module function
CCAPnH CCAPnL
CH
interrupt
PCA
CL
43

Related parts for mpc82x54a