![](http://datasheet.mmic.net.cn/Maxim-Integrated-Products/MAXQ612J-0000-_datasheet_98621/MAXQ612J-0000-_28.png)
28
Maxim Integrated
16-Bit Microcontrollers with
Infrared Module and Optional USB
MAXQ612/MAXQ622
master that can either be automatic test equipment or a
component that interfaces to a higher level test bus as
part of a complete system. The communication operates
across a 4-wire serial interface from a dedicated TAP
that is compatible with the JTAG IEEE Standard 1149.
The TAP provides an independent serial channel to com-
municate synchronously with the host system.
To prevent unauthorized access of the protected memo-
ry regions through the JTAG interface, the debug engine
prevents modification of the privilege registers and
disallows all access to system memory, unless memory
protection is disabled. In addition, all services (such as
register display or modification) are denied when code
is executing inside the system area.
Operating Modes
Power-Supply Selection
For maximum flexibility the microcontroller can be pow-
ered by either the USB (VBUS) or VDD. When a USB
connection is made to a valid VBUS power source, an
internal voltage regulator generates a 3.3V supply volt-
age. When the internal voltage is at an adequate level, it
automatically powers itself from the USB supply. This is
especially beneficial in systems where the VDD supply is
from a battery. In either case, the chip is fully functional
when operating from either the battery or the VBUS.
The power monitor is attached to the switched supply,
VDDIO. This supply is equivalent to the higher of VDDB or
VDD. This can be expressed as follows:
If (VDDB > 3.0V or VDDB > VDD)
then (VDDIO = VDDB)
else (VDDIO = VDD)
This means that if there is a power-fail event on VDD and
the device is not powered from VBUS, it causes a power-
fail interrupt (PFI) if enabled. If the device is powered by
VBUS and there is a supply on VDD, then no power-fail
event is triggered. If the device is powered by VBUS
and there is no supply on VDD and VBUS fails, the chip
attempts to switch to VDD, detects a power-fail event,
and a PFI occurs. Some specific examples are given
below:
Case 1: The device is powered from VDD and
the batteries are removed. Power decays until the
power-fail-reset trip point is hit, then the part goes into
low-power mode.
Case 2: The device is set to be powered from VDD
only, it is connected to USB, and the batteries are
removed. Response is identical to Case 1.
Case 3: The device is set to be powered from either
VDD or VBUS, it is connected to USB, and the bat-
teries are removed. Because the part is already
powered from VBUS, nothing changes. If the USB
port is subsequently disconnected, power switches
over to VDD, the supply decays to the power-fail-reset
trip point, and the part goes into low-power mode. As
long as there is sufficient charge on the VDD bypass
capacitor, it supports the part in power-fail. The hold-
up time is similar to the MAXQ610 since the USB
port is powered only by VBUS. Note that if the part is
powered from VBUS and no battery has been present
for a long time (VDD = 0), then upon USB port discon-
nection, the power collapses to ground in less than a
second.
Stop Mode
The lowest power mode of operation is stop mode. In this
mode, CPU state and memories are preserved, but the
CPU is not actively running. Wake-up sources include
external I/O interrupts, the power-fail warning interrupt,
wake-up timer, or a power-fail reset. Any time the micro-
controller is in a state where code does not need to be
executed, the user software can put the microcontroller
into stop mode. The nanopower ring oscillator is an inter-
nal ultra-low-power (400nA) 8kHz ring oscillator that can
be used to drive a wake-up timer that exits stop mode.
The wake-up timer is programmable by software in steps
of 125Fs up to approximately 8s.
The power-fail monitor is always on during normal opera-
tion. However, it can be selectively disabled during stop
Figure 4. In-Circuit Debugger
TAP
CONTROLLER
CPU
DEBUG
ENGINE
DEBUG
SERVICE
ROUTINES
(UTILITY ROM)
CONTROL
BREAKPOINT
ADDRESS
DATA
MAXQ612
MAXQ622
TMS
TCK
TDI
TDO