DS4830
Optical Microcontroller
27
Maxim Integrated
In-Circuit Debug
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 10 shows a block diagram of the in-circuit debug-
ger. The in-circuit debug features include the following:
Ahardwaredebugengine
Asetofregistersabletosetbreakpointsonregister,
code, or data accesses (ICDA, ICDB, ICDC, ICDD,
ICDF, ICDT0, and ICDT1)
AsetofdebugserviceroutinesstoredintheutilityROM
The embedded hardware debug engine is an independ-
ent 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 contin-
ues to execute the application software at full speed.
Debug mode can be invoked from background mode.
Debugmodeallowsthedebugenginetotakecontrol
of the CPU, providing read/write access to internal reg-
isters and memory, and single-step trace operation.
Applications Information
Power-Supply Decoupling
To achieve the best results when using the DS4830,
decouple the VDD power supply with a 0.1FF capaci-
tor. Use a high-quality, ceramic, surface-mount capaci-
tor if possible. Surface-mount components minimize
lead inductance, which improves performance, and
ceramic capacitors tend to have adequate high-fre-
quency response for decoupling applications.Decouple
the REG285 and REG18 pins using 1FF X5R and 10nF
capacitors (one each/per output). note: Do not use
either of these pins for external circuitry.
Additional Documentation
Designers must have three documents to fully use all the
features of this device. This data sheet contains pin descrip-
tions, feature overviews, and electrical specifications. Errata
sheets contain deviations from published specifications.
User guides offer detailed information about device features
and operation. The following documents can be download-
ed from www.maximintegrated.com/DS4830.
ThisDS4830datasheet,whichcontainselectrical/timing
specifications, package information, and pin descrip-
tions.
TheDS4830revision-specificerratasheet,ifapplicable.
TheDS4830 User’s Guide, which contains detailed infor-
mation and programming guidelines for core features
and peripherals.
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:
Compilers(Candassembly)
In-circuitdebugger
IntegratedDevelopmentEnvironments(IDEs)
Serial-to-JTAGconvertersforprogramminganddebugging
USB-to-JTAGconvertersforprogramminganddebugging
A partial list of development tool vendors can be found at
www.maximintegrated.com/MAxQ_tools.
Email mixedsignal.apps@maximintegrated.com for
technical support.
Figure 10. In-Circuit Debugger
TAP
CONTROLLER
CPU
DEBUG
ENGINE
DEBUG
SERVICE
ROUTINES
(UTILITY ROM)
CONTROL
BREAKPOINT
ADDRESS
DATA
DS4830
TMS
TCK
TDI
TDO