This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

使能全局实时中断 DBGM什么意思?

ERTM;    

  • 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 hardware 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 ignored. 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 interrupt, 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.