Status Register ST1
2-37
Central Processing Unit
DBGM
Bit 1
Debug enable mask bit.
When DBGM is set, the emulator cannot accesss memory or
registers in real time. The debugger cannot update its windows.
In the real-time emulation mode, if DBGM = 1, the CPU ignores halt requests or hard-
ware breakpoints until DBGM is cleared. DBGM does not prevent the CPU from halting
at a software breakpoint. One effect of this may be seen in real-time emulation mode.
If you single-step an instruction in real time emulation mode and that instruction sets
DBGM, the CPU continues to execute instructions until DBGM is cleared.
When you give the TI debugger the REALTIME command (to enter real-time mode),
DBGM is forced to 0. Having DBGM = 0 ensures that debug and test direct memory
accesses (DT-DMAs) are allowed; memory and register values can be passed to the
host processor for updating debugger windows.
Before the CPU executes an interrupt service routine (ISR), it sets DBGM. When
DBGM = 1, halt requests from the host processor and hardware breakpoints are ig-
nored. If you want to single-step through or set breakpoints in a non-time-critical ISR,
you must add a CLRC DBGM instruction at the beginning of the ISR.
DBGM is primarily used in emulation to block debug events in time-critical portions of
program code. DBGM enables or disables debug events as follows:
0
Debug events are enabled.
1
Debug events are disabled.
When the CPU services an interrupt, the current value of DBGM is saved on the stack
(when ST1 is saved on the stack), and then DBGM is set. Upon return from the inter-
rupt, DBGM is restored from the stack.
This bit can be individually set and cleared by the SETC DBGM instruction and
CLRC DBGM instruction, respectively. DBGM is also set automatically during interrupt
operations. At reset, DBGM is set. Executing the ABORTI (abort interrupt) instruction
also sets DBGM.
INTM
Bit 0
Interrupt global mask bit.
This bit globally enables or disables all maskable CPU inter-
rupts (those that can be blocked by software):
0
Maskable interrupts are globally enabled. To be acknowledged by the CPU, a
maskable interrupt must also be locally enabled by the interrupt enable register
(IER).
1
Maskable interrupts are globally disabled. Even if a maskable interrupt is local-
ly enabled by the IER, it is not acknowledged by the CPU.
INTM has no effect on the nonmaskable interrupts, including a hardware reset or the
hardware interrupt NMI. In addition, when the CPU is halted in real-time emulation
mode, an interrupt enabled by the IER and the DBGIER will be serviced even if INTM is
set to disable maskable interrupts.
Содержание TMS320C28x
Страница 30: ...1 12...
Страница 80: ...This page intentionally left blank 2 50 This page intentionally left blank...
Страница 269: ...IN loc16 PA 6 112 MOV AL 0 AL 0 UOUT IORegC AL IOspace IORegC AL 10...
Страница 308: ...MAXCUL P loc32 6 151 Saturate MOVL Var64 2 ACC Store result into Var64 MOVL Var64 P...
Страница 509: ...SUBL ACC P PM 6 352 SUBL ACC P PM ACC S B 11 M X 4 MOVH Y ACC 5 Store Q15 result into Y...
Страница 585: ...This page intentionally left blank 7 32 This page intentionally left blank...