XC886/888CLM
On-Chip Debug Support
User’s Manual
17-7
V1.3, 2010-02
OCDS, V 1.0
Once started, the Monitor runs with own stack- and data- memory (see Monitor RAM in
), which guarantees that all of the core and memory resources will be found
untouched when returning control back to the user program. Therefore the OCDS-
debugging in XC886/888 is fully non-destructive.
The functions of the XC886/888 Monitor include:
•
Communication with an external Debugger via the JTAG interface
•
Read/write access to arbitrary memory locations and Special Function Registers
(SFRs), including the Instruction Pointer and password-protected bits
•
Configuring OCDS and setting/removing breakpoints
•
Executing a single instruction (step-mode)
Note: Detailed descriptions of the Monitor program functionality and the JTAG
communication protocol are not provided in this document.
17.3.2.2
Activate the MBC pin
The MBC pin can be driven actively low in reaction to debug events, if respective settings
have been done in OCDS.
This functionality allows two alternative configurations:
•
As an action additional to the Monitor program start - in such a case MBC pin is
activated for up to 77 system clock (SCLK) cycles;
•
As the only OCDS action while temporarily suspending the core activity - MBC pin is
driven low for 4 SCLK cycles only as a fastest reaction to the program flow
(breakpoint match).
17.4
Debug Suspend Control
Next to the basic debug functionality - setting breakpoints and halting the execution of
user software - XC886/888 OCDS supports also an additional feature: module suspend
during debugging.
As long as the device is in monitor mode (i.e. while the user software is not running but
in break) and if debug suspend functionality is generally enabled by on-chip software
(Monitor or Bootcode) OCDS activates a signal to a number of counter modules, namely:
•
Watchdog Timer (WDT)
•
Timer 2 and Timer 21
•
Timer 12 and Timer 13 in Capture/Compare Unit 6 (CCU6)
The Module Suspend Control Register (MODSUSP) holds control bits for these timers.
When some control bit is set - the respective timer will be stopped while the monitor
mode is active.
This feature could be quite useful, especially regarding the Watchdog Timer: it allows to
prevent XC886/888 from unintentional WDT-resets while the user software is not
executed and respectively - not able to service the Watchdog.
*
Содержание XC886CLM
Страница 1: ...User s Manual V1 3 2010 02 Microcontrollers 8 Bit XC886 888CLM 8 Bit Single Chip Microcontroller...
Страница 3: ...User s Manual V1 3 2010 02 Microcontrollers 8 Bit XC886 888CLM 8 Bit Single Chip Microcontroller...
Страница 324: ...XC886 888CLM Serial Interfaces User s Manual 12 52 V1 3 2010 02 Serial Interfaces V 1 0...
Страница 663: ...w w w i n f i n e o n c o m Published by Infineon Technologies AG...