System Management Microcontroller
In-Circuit Debug
Applications Information
Embedded debugging capability is available through
the JTAG-compatible test access port (TAP). Embedded
debug hardware and embedded ROM firmware provide
in-circuit debugging capability to the user application,
eliminating the need for an expensive in-circuit emulator.
Figure 6 shows a block diagram of the in-circuit debug-
ger. The in-circuit debug features include the following:
Power-Supply Decoupling
To achieve the best results when using the device,
decouple the V
power supply with a 0.1FF capacitor.
DD
Use a high-quality, ceramic, surface-mount capacitor
if possible. Surface-mount components minimize lead
inductance, which improves performance, and ceram-
ic capacitors tend to have adequate high-frequency
response for decoupling applications.
•ꢀ Hardwareꢀdebugꢀengine
Decouple REG25 and REG18 using 1FF and 10nF
capacitors (one each per output). Note: Do not use
either of these pins for external circuitry.
•ꢀ Setꢀ ofꢀ registersꢀ ableꢀ toꢀ setꢀ breakpointsꢀ onꢀ register,ꢀ
code, or data accesses (ICDA, ICDB, ICDC, ICDD,
ICDF, ICDT0, and ICDT1)
•ꢀ SetꢀofꢀdebugꢀserviceꢀroutinesꢀstoredꢀinꢀtheꢀutilityꢀROM
Additional Documentation
Designers must have four documents to fully use all
the features of this device. This data sheet contains pin
descriptions, feature overviews, and electrical specifica-
tions. Errata sheets contain deviations from published
specifications. The user’s guides offer detailed information
about device features and operation. The following docu-
ments can be downloaded from www.maxim-ic.com.
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
features allow two basic modes of in-circuit debugging:
background and debug.
•ꢀ TheꢀMAX31782ꢀdataꢀsheet,ꢀwhichꢀcontainsꢀelectrical/
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.
timing specifications and pin descriptions.
•ꢀ Theꢀ MAX31782ꢀ revision-specificꢀ errataꢀ sheet
(www.maxim-ic.com/errata).
Debug mode allows the debug engine to take control of
the CPU, providing read/write access to internal regis-
ters and memory, and single-step trace operation.
•ꢀ TheꢀMAX31782 User’s Guide, which contains detailed
information on core features and operation, including
programming.
___________________Development and
Technical Support
Maxim and third-party suppliers provide a variety of
highly versatile, affordably priced development tools for
this microcontroller, including the following:
DEBUG
SERVICE
ROUTINES
MAX31782
(UTILITY ROM)
•ꢀ Compilersꢀ(Cꢀandꢀassembly)
•ꢀ In-circuitꢀdebugger
CPU
•ꢀ Integratedꢀdevelopmentꢀenvironmentsꢀ(IDEs)
DEBUG
ENGINE
•ꢀ Serial-to-JTAGꢀ convertersꢀ forꢀ programmingꢀ andꢀ
debugging
TMS
TCK
TDI
CONTROL
BREAKPOINT
ADDRESS
DATA
TAP
CONTROLLER
•ꢀ USB-to-JTAGꢀ convertersꢀ forꢀ programmingꢀ andꢀ
debugging
TDO
Technical support is available through email at
mixedsignal.apps@maxim-ic.com.
Figure 6. In-Circuit Debugger
18