English
Language : 

MAXQ610_10 Datasheet, PDF (21/29 Pages) Maxim Integrated Products – 16-Bit Microcontroller with Infrared Module
16-Bit Microcontroller with Infrared Module
To erase, the following function would be used:
/* Erase the given Flash page
* addr: Flash offset (anywhere within page)
*/
int flash_erasepage(uint16_t addr);
The in-application flash programming must call ROM
utility functions to erase and program any of the flash
memory. Memory protection is enforced by the ROM
utilty functions.
In-application programming is not available in ROM-
only versions of the MAXQ610 family.
In-Circuit Debug and JTAG
Interface
Embedded debug hardware and software are devel-
oped and integrated into the MAXQ610 to provide full
in-circuit debugging capability in a user application
environment. These hardware and software features
include:
• A debug engine.
• A set of registers providing the ability to set break-
points on register, code, or data using debug service
routines stored in ROM.
Collectively, these hardware and software features sup-
port two modes of in-circuit debug functionality:
1) Background Mode
• CPU is executing the normal user program.
• Allows the host to configure and set up the in-cir-
cuit debugger.
2) Debug Mode
• The debugger takes over the control of the CPU.
• Read/write accesses to internal registers and
memory.
• Single-step of the CPU for trace operation.
The interface to the debug engine is the TAP controller.
The interface allows for communication with a bus mas-
ter 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 oper-
ates across a 4-wire serial interface from a dedicated
TAP that is compatible to the JTAG IEEE Std 1149. The
TAP provides an independent serial channel to commu-
nicate synchronously with the host system.
To prevent unauthorized access of the protected mem-
ory 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.
The debugger is not available for ROM-only versions of
the MAXQ610 family.
MAXQ610
DEBUG
SERVICE
ROUTINES
(UTILITY ROM)
CPU
DEBUG
ENGINE
TMS
TAP
CONTROL
TCK
CONTROLLER
BREAKPOINT
TDI
ADDRESS
TDO
DATA
Figure 10. In-Circuit Debugger
______________________________________________________________________________________ 21