mpc82g516a Megawin Technology, mpc82g516a Datasheet - Page 111

no-image

mpc82g516a

Manufacturer Part Number
mpc82g516a
Description
8-bit Microcontroller
Manufacturer
Megawin Technology
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mpc82g516aE
Manufacturer:
MEGAWIN
Quantity:
1 200
Part Number:
mpc82g516aF
Manufacturer:
MEGAWIN
Quantity:
20 000
21 Power Saving Modes
The MPC82G516A has two power-saving modes and an 8-bit system clock prescaler to reduce the power
consumption. In the Idle mode the CPU is frozen while the peripherals and the interrupt system are still operating.
In the Power-down mode the RAM and SFRs’ value are saved and all other functions are inoperative; most
importantly, in the Power-down mode the device can be waked up by the external interrupts. And, the user can
further reduce the power consumption by using the 8-bit system clock prescaler to slow down the operating
speed.
Registers PCON and PCON2 are related to power saving, as listed below.
PCON (Address=87H, Power Control Register, Reset Value=00xx,0000B (or 00x1,0000B after Power-On Reset))
GF1: General-purpose flag bit 1.
GF0: General-purpose flag bit 0.
PD: Power-Down mode bit. Setting this bit activates Power-Down mode.
IDL: Idle mode bit. Setting this bit activate Idle mode.
PCON2 (Address=C7H, Power Control Register 2, Reset Value=00x0,0000B)
SCKD2~SCKD0: System clock divider control bits.
SCKD2 SCKD1 SCKD0
(Refer to
21.1 Idle Mode
An instruction that sets IDL bit (PCON.0) causes that to be the last instruction executed before going into the Idle
mode, the internal clock signal is gated off to the CPU but not to the peripherals that need to keep working in the
mode, such as Interrupt, Timer, Serial Port functions and so forth. The CPU contents, the on-chip RAM, and all of
the Special Function Registers remain intact during Idle. The port pins hold the logical states they had at the time
Idle was activated.
There are two ways to terminate the Idle. Activation of the enabled interrupts such as External Interrupt, Timer,
Serial Port and Keypad Interrupt will cause PCON.0 to be cleared by hardware, terminating the Idle mode. The
interrupt will be serviced, and following RETI, the next instruction to be executed will be the one following the
instruction that put the device into Idle. The other way of terminating the Idle mode is with a hardware reset from
the RST pin. Since the clock oscillator is still running, the hardware reset needs to be held active for 24 clock
cycles to complete the reset.
The flag bits GF0 and GF1 can be used to give an indication if an interrupt occurred during normal operation or
during an Idle. For example, an instruction that activates Idle can also set one or both flag bits. When Idle is
terminated by an interrupt, the interrupt service routine can examine the flag bits to differentiate normal operation
and Idle.
111
SMOD
0
0
0
0
1
1
1
1
7
7
-
Section 22: System
SMOD0
0
0
1
1
0
0
1
1
6
6
-
0
1
0
1
0
1
0
1
5
5
-
-
Clock.)
Fosc (System Clock)
POF
4
4
-
OSC_Freq
OSC_Freq /2
OSC_Freq /4
OSC_Freq /8
OSC_Freq /16
OSC_Freq /32
OSC_Freq /64
OSC_Freq /128
MPC82G516A Data Sheet
GF1
3
3
-
SCKD2
GF0
2
2
SCKD1
PD
1
1
SCKD0
IDL
0
0
MEGAWIN

Related parts for mpc82g516a