XC886/888CLM
On-Chip Debug Support
User’s Manual
17-5
V1.3, 2010-02
OCDS, V 1.0
The OCDS differentiates between a breakpoint on read and a breakpoint on write
operation to the IRAM.
Configurations of Hardware Breakpoints
The OCDS allows setting of up to 4 hardware breakpoints. In XC886/888, the Program
Memory address is 16-bit wide, while the Internal Data Memory address (both for Read
and Write) is 8-bit wide. For setting of breakpoint on instruction address, HWBPx defines
the 16-bit address. For setting of breakpoint on IRAM address, HWBP2/3L and
HWBP2/3H define the 8-bit IRAM address range.
The configurations supported are:
•
Breakpoint 0
•
Breakpoint 1
– Two equal breakpoints on
Instruction Address = HWBP0 and
Instruction Address = HWBP1 or
– One range breakpoint on
HWBP0 <= Instruction Address <= HWBP1
•
Breakpoint 2
– One equal breakpoint on Instruction Address = HWBP2, or
– One range breakpoint on HWBP2L <= IRAM Read Address <= HWBP2H
•
Breakpoint 3
– One equal breakpoint on Instruction Address = HWBP3, or
– One range breakpoint on HWBP3L <= IRAM Write Address <= HWBP3H
Setting both values for a range breakpoint to the same address leads to generation of
an equal breakpoint.
17.3.1.2
Software Breakpoints
These breakpoints use the XC800-specific (not 8051-standard) TRAP instruction,
decoded by the core while at the same time the TRAP_EN bit within the Extended
Operation (EO) register is set to 1.
Upon fetching a TRAP instruction, a Break Before Make breakpoint is generated and the
relevant Break Action is taken.
The software breakpoints are in fact similar in behavior to the equal breakpoints on
Instruction address, except that they are raised by a program code instead of specialized
(compare) logic.
An unlimited number of software breakpoints can be set by replacing the original
instruction opcodes in the user program. However, this is possible only at addresses
where a writable memory (RAM/Flash) is implemented.
*
Содержание 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...