EasyManuals Logo

Texas Instruments TMS320 User Manual

Texas Instruments TMS320
288 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #120 background imageLoading...
Page #120 background image
Hardware Interrupts
4-16
Single Instruction State: This state is entered when you tell the debugger to
execute a single instruction by using RUN 1 or a STEP 1 command. The CPU
executes the single instruction pointed to by PC and then returns to the debug
halt state. If an interrupt occurs in this state and RUN 1 command was used
to enter the state, CPU can service the interrupt. However, if STEP 1 was
used to enter the state, CPU cannot service the interrupt. This is true for both
stop mode and real-time mode.
Note that it is safe to assume that INTM will be respected while single-
stepping. Also, if you single-step the code from the previous example, all of
the uninterruptible, unhaltable code will be executed as "one instruction" as
follows:
PC initially here -> SETC INTM, DBGM
; Uninterruptible, unhaltable region of code
MOV ACC, @Semaphore
SUB ACC, #1 ;Let’s do "*Semaphore--;" really inefficiently!
MOV @Semaphore, ACC
CLRC INTM, DBGM
; Do some more stuff
PC will stop here -> B MAIN_LOOP

Table of Contents

Other manuals for Texas Instruments TMS320

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TMS320 and is the answer not in the manual?

Texas Instruments TMS320 Specifications

General IconGeneral
BrandTexas Instruments
ModelTMS320
CategoryComputer Hardware
LanguageEnglish

Related product manuals