maxq3212-emx+ Maxim Integrated Products, Inc., maxq3212-emx+ Datasheet - Page 17

no-image

maxq3212-emx+

Manufacturer Part Number
maxq3212-emx+
Description
Maxq3212 Microcontroller With Analog Comparator And Led Driver
Manufacturer
Maxim Integrated Products, Inc.
Datasheet
Advanced power-management features minimize
power consumption by dynamically matching the pro-
cessing speed of the device to the required perfor-
mance level. This means device operation can be
slowed and power consumption minimized during peri-
ods of reduced activity. When more processing power
is required, the microcontroller can increase its operat-
ing frequency. Software-selectable clock-divide opera-
tions allow flexibility, selecting whether a system clock
cycle (SYSCLK) is 1, 2, 4, or 8 oscillator cycles. By per-
forming this function in software, a lower power state
can be entered without the cost of additional hardware.
For extremely power-sensitive applications, additional
low-power modes are available.
• Divide-by-256 power-management mode (PMM)
• Stop mode (STOP = 1)
In PMM, one system clock is 256 oscillator cycles, sig-
nificantly reducing power consumption while the micro-
controller functions at reduced speed. The optional
switchback feature allows enabled interrupt sources
including external interrupts to quickly exit the power-
management modes and return to a faster internal
clock rate.
Power consumption reaches its minimum in stop mode.
In this mode the external oscillator, system clock, and
all processing activity is halted. Stop mode is exited
when an enabled external interrupt pin is triggered, the
enabled wake-up timer expires, or an external reset
signal is applied to the RESET pin. Upon exiting stop
mode, the microcontroller starts execution immediately
from its internal 8kHz (approximately) ring oscillator
while the warmup period completes.
Multiple reset sources are available for quick response to
internal and external events. The MAXQ architecture uses
a single interrupt vector (IV), single interrupt-service rou-
tine (ISR) design. For maximum flexibility, interrupts can
be enabled globally, individually, or by module. When an
interrupt condition occurs, its individual flag is set, even if
the interrupt source is disabled at the local, module, or
global level. Interrupt flags must be cleared within the
user-interrupt routine to avoid repeated interrupts from
the same source. Application software must ensure a
delay between the write to the flag and the RETI instruc-
tion to allow time for the interrupt hardware to remove the
internal interrupt condition. Asynchronous interrupt flags
require a one-instruction delay and synchronous interrupt
flags require a two-instruction delay.
(PMME = 1, CD1:0 = 00b)
Microcontroller with Analog Comparator
Power Management
____________________________________________________________________
Interrupts
When an enabled interrupt is detected, software jumps
to a user-programmable interrupt vector location. The
IV register defaults to 0000h on reset or power-up, so if
it is not changed to a different address, the user pro-
gram must determine whether a jump to 0000h came
from a reset or interrupt source.
Once software control has been transferred to the ISR,
the interrupt identification register (IIR) can be used to
determine if a system register or peripheral register
was the source of the interrupt. The specified module
can then be interrogated for the specific interrupt
source and software can take appropriate action.
Because the interrupts are evaluated by user software,
the user can define a unique interrupt priority scheme
for each application. The following interrupt sources are
available.
• Watchdog Interrupt
• External Interrupt 0
• Timer 2 Low Compare, Low Overflow, Capture/
• Analog Comparator Interrupt
• Wake-Up Interrupt
Several reset sources are provided for microcontroller
control. Although code execution is halted in the reset
state, the high-frequency oscillator and the ring oscilla-
tor continue to oscillate.
An internal power-on reset circuit enhances system reli-
ability. This circuit forces the device to perform a
power-on reset whenever a rising voltage on V
climbs above approximately V
device performs a brownout reset whenever V
below V
stop mode. The following events occur during a power-
on reset.
• All registers and circuits enter their power-on reset
• I/O pins revert to their reset state, with logic-1 states
• The power-on reset flag is set to indicate the source
• The ring oscillator becomes the clock source
• The external high-speed oscillator begins its
• Code execution begins at location 8000h
Compare, and Overflow Interrupts
state
tracking V
of the reset
warmup
RST
, a feature that can be optionally disabled in
DD
Power-On Reset/Brownout Reset
and LED Driver
Reset Sources
RST
. Additionally, the
DD
drops
DD
17

Related parts for maxq3212-emx+