mpc82x52a Megawin Technology, mpc82x52a Datasheet - Page 40
mpc82x52a
Manufacturer Part Number
mpc82x52a
Description
8-bit Micro-controller
Manufacturer
Megawin Technology
Datasheet
1.MPC82X52A.pdf
(72 pages)
- Current page: 40 of 72
- Download datasheet (2Mb)
40
Each module in the PCA has a special function register associated with it: CCAPM0 for
module0 and CCAPM1 for module-1. The register contains the bits that control the mode in
which each module will operate. The ECCFn bit controls if to pass the interrupt from CCFn
flag in the CCON SFR to the MCU when a match or compare occurs in the associated module.
PWMn enables the pulse width modulation mode. The TOGn bit when set causes the pin
CEXn output associated with the module to toggle when there is a match between the PCA
counter and the module’s Capture/Compare register. The match bit(MATn) when set will
cause the CCFn bit in the CCON register to be set when there is a match between the PCA
counter and the module’s Capture/Compare register.
The next two bits CAPNn and CAPPn determine the edge type that a capture input will be
active on. The CAPNn bit enables the negative edge, and the CAPPn bit enables the positive
edge. If both bits are set, both edges will be enabled and a capture will occur for either
transition. The bit ECOMn when set enables the comparator function.
CF:=PCA Counter overflow Flag
CR:=PCA Run control bit
CCF1:=Module-1 interrupt Flag
CCF0:=Module-0 interrupt Flag
This bit must be set by hardware itself. It can be cleared by software program.
0 := (default)
1 :=
This bit must be set by hardware itself when a match or capture from module-1 occurs.
This bit must be set by hardware itself when a match or capture from module-0 occurs.
It can be cleared by software program.
A match means the value of the PCA counter equals the value of the Capture/Compare
Register in the module-1.
A capture means a specific edge from CEX1 happens, so the Capture/Compare register
latches the value of the PCA counter, and the CCF1 is set.
It can be cleared by software program.
Start counting of the PCA counter
Disable counting of the PCA counter
MPC82x52A Data Sheet
MEGAWIN
Related parts for mpc82x52a
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
8 Bit Micro-Controller with Voice Synthesizer and Melody
Manufacturer:
Megawin Technology Co., Ltd.
Part Number:
Description:
8-bit micro-controller
Manufacturer:
Megawin Technology
Datasheet:
Part Number:
Description:
8-bit micro-controller
Manufacturer:
Megawin Technology
Datasheet:
Part Number:
Description:
8-bit micro-controller
Manufacturer:
Megawin Technology
Datasheet:
Part Number:
Description:
8-bit micro-controller
Manufacturer:
Megawin Technology
Datasheet:
Part Number:
Description:
1-channel 350v, 50ma/80ma Constant Current Dc Led Driver
Manufacturer:
Megawin Technology
Datasheet:
Part Number:
Description:
Universal Pwm Type Led Driver
Manufacturer:
Megawin Technology
Datasheet:
Part Number:
Description:
8 Bits Microcontroller
Manufacturer:
Megawin Technology
Datasheet:
Part Number:
Description:
8-bit Micro-controller
Manufacturer:
Megawin Technology
Datasheet:
Part Number:
Description:
A Single-chip Microcontroller Based On A High Performance 1-t Architecture 80c51
Manufacturer:
Megawin Technology
Datasheet:
Part Number:
Description:
8-bit Microcontroller
Manufacturer:
Megawin Technology
Datasheet:
Part Number:
Description:
Full-speed Usb Micro-controller
Manufacturer:
Megawin Technology
Datasheet:
Part Number:
Description:
Full-speed Usb Micro-controller
Manufacturer:
Megawin Technology
Datasheet:
Part Number:
Description:
8-bit Micro-controller
Manufacturer:
Megawin Technology
Datasheet: