Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
34
Добавлен:
27.04.2015
Размер:
1.98 Mб
Скачать

Command, Status, and Control Registers

12.4.4.3 Breakpoint Configuration (BK[4:0])—Bits 13–9

The breakpoint configuration (BK[4:0]) bits are used to configure the operation of the OnCE module when it enters the debug processing state. In addition, these bits can also be used to set up a breakpoint on one address and an interrupt on another address. Table 12-8 lists the different breakpoint combinations available.

 

Table 12-8. Breakpoint Configuration Bits Encoding—Two Breakpoints

 

 

BK[4:0]

Final Trigger Combination and Actions

 

 

 

 

00000

Breakpoint 1 occurs the number of times specified in the OCNTR. Then the trigger is generated.

 

 

00001

Breakpoint 1 or breakpoint 2 occur the number of times specified in the OCNTR. Then the trigger is

 

generated.

 

 

00010

Breakpoint 1 and breakpoint 2 must occur simultaneously the number of times specified in the OCNTR.

 

Then the trigger is generated.

 

 

00100

Breakpoint 1 generates a trigger; breakpoint 2 generates a OnCE Interrupt.

 

 

01011

Breakpoint 2 occurs once, followed by breakpoint 1 occurring the number of times specified in the

 

OCNTR. Then the trigger is generated.

 

 

01111

Breakpoint 2 occurs the number of times specified in the OCNTR, followed by breakpoint 1 occurring

 

once. Then the trigger is generated.

 

 

10000

Breakpoint 1 occurs once, followed by trace mode using the instruction count specified in the OCNTR.

 

Then the trigger is generated.

 

 

10001

Breakpoint 1 or breakpoint 2 occurs once, followed by trace mode using the instruction count specified

 

in the OCNTR. Then the trigger is generated.

 

 

10010

Breakpoint 1 and breakpoint 2 occur simultaneously, followed by trace mode using the instruction count

 

specified in the OCNTR. Then the trigger is generated.

 

 

10100

Breakpoint 1 occurs once, followed by trace mode using the instruction count specified in the OCNTR.

 

Then the trigger is generated; breakpoint 2 generates a OnCE interrupt.

 

 

10111

Trace mode using the instruction count specified in the OCNTR.

 

 

11011

Breakpoint 2 occurs once, followed by breakpoint 1 occurring once, followed by trace mode using the

 

instruction count specified in the OCNTR. Then the trigger is generated.

 

 

Note: All other encodings of BK[4:0] are illegal and may cause unpredictable results.

Breakpoint 2 is a simple address compare. It is unaffected by BS/BE bits, except that BE = 00 disables it. BE = 00 disables all of the preceding BK settings except pure trace mode (BK[4:0] = 10111). See Section 12.4.5, “OnCE Breakpoint 2 Control Register (OBCTL2),” for more information.

12.4.4.4 Debug Request Mask (DRM)—Bit 8

The debug request mask (DRM) bit is used to mask DE, the external debug request signal. When this bit is cleared, a pulse on the DE input pin causes the DSP to enter the debug mode of operation. When this bit is set, the DSP does not enter debug mode when a pulse is placed on the DE input.

This bit is also used to enable or disable TRST/DE pin drive when the DE bit is set. When DRM = 0 and DE = 1, event occurrences assert TRST/DE low. When DRM = 1, TRST/DE is not asserted even if

DE = 1. Figure 12-8 shows how these 2 bits affect the TRST/DE pin.

 

OnCE™ Module

12-15

Соседние файлы в папке DSP568xx