High-Precision ADC
Mixed-Signal Microcontroller
In-Circuit Debug
Embedded debugging capability is available through
the JTAG-compatible TAP. Embedded debug hardware
and embedded ROM firmware provide in-circuit
debugging capability to the user application, eliminat-
ing the need for an expensive in-circuit emulator.
Figure 4 shows a block diagram of the in-circuit debug-
ger. The in-circuit debug features include:
• Hardware debug engine
• Set of registers able to set breakpoints on register,
code, or data accesses
• Set of debug service routines stored in the utility
ROM
The embedded hardware debug engine is an indepen-
dent hardware block in the microcontroller. The debug
engine can monitor internal activities and interact with
selected internal registers while the CPU is executing
user code. Collectively, the hardware and software fea-
tures allow two basic modes of in-circuit debugging:
• Background mode allows the host to configure and set
up the in-circuit debugger while the CPU continues to
execute the application software at full speed. Debug
mode can be invoked from background mode.
• Debug mode allows the debug engine to take control
of the CPU, providing read/write access to internal reg-
isters and memory, and single-step trace operation.
Serial Peripherals
The MAXQ3120 incorporates two 8051-style universal
synchronous/asynchronous receiver/transmitters. The
USARTs allow the device to conveniently communicate
with other RS-232 interface-enabled devices, as well as
PCs and serial modems when paired with an external
RS-232 line driver/receiver. The dual independent
USARTs can communicate simultaneously at different
baud rates with two separate peripherals. The USART
can detect framing errors and indicate the condition
through a user-accessible software bit.
MAXQ3120
DEBUG
SERVICE
ROUTINES
(UTILITY ROM)
CPU
DEBUG
ENGINE
TAP
TMS
CONTROLLER
CONTROL
TCK
BREAKPOINT
TDI
ADDRESS
TDO
DATA
Figure 4. In-Circuit Debugger
The time base of the serial ports is derived from either a
division of the system clock or the dedicated baud
clock generator. The following table summarizes the
operating characteristics as well as the maximum baud
rate of each mode.
Serial port 0 contains additional functionality to support
low-speed infrared transmission in combination with the
PWM function of timer 2. When enabled in this mode,
the serial port automatically outputs a waveform gener-
ated by combining the normal serial port output wave-
form with the PWM carrier waveform output by timer 2,
using a logical OR or logical NOR function. The output
of serial port 0 in this mode can be used to drive an
infrared LED to communicate using a fixed-frequency
carrier modulated signal. Depending on the drive
strength required, the output may require a buffer when
used for this purpose.
MODE
Mode 0
Mode 1
Mode 2
Mode 3
TYPE
Synchronous
Asynchronous
Asynchronous
Asynchronous
START BITS
—
1
1
1
DATA BITS
8
8
8+1
8+1
STOP BIT
—
1
1
1
MAX BAUD RATE AT 8MHz
2Mbps
250kbps
250kbps
250kbps
____________________________________________________________________ 25