section 7 - Index of
section 7 - Index of section 7 - Index of
To initiate the trace mode of operation, the counter is loaded with a value, the programcounter is set to the start location of the instruction(s) to be executed real-time, the TMEbit is set in the OSCR, and the processor exits the debug mode by executing the appropriatecommand issued by the external command controller.Upon exiting the debug mode, the counter is decremented after each execution of an instruction.Interrupts are serviceable, and all instructions executed (including fast interruptservices and the execution of each repeated instruction) will decrement the trace counter.Upon decrementing the trace counter to zero, the processor will re-enter the debug mode,the trace occurrence bit TO in the OSCR will be set, and the DSO pin 'will be toggled toindicate that the processor has entered debug mode and is requesting service (ISTRACEasserted).END OF INSTRUCTIONDSIDSO~-----1DSCKTRACE COUNTERCOUNT=OISTRACE-Figure 10-7 OnCE,Trace Logic Block Diagram10.5.1 Trace Counter (OTC)The OTC is a 24-bit counter that can be read, written, or cleared through the OnCE serialinterface. If N instructions are to be executed before entering the debug mode, the TraceCounter should be loaded with N-1. The Trace Counter is cleared by hardware reset.10.6 METHODS OF ENTERING THE DEBUG MODEThe chip acknowledges having entered the debug mode by pulsing low the DSO line, informingthe external command controller that the chip has entered the debug mode andis waiting for commands.The following paragraphs discuss conditions that bring the processorinto the debug mode.
10.6.1 External Debug Request During RESETHolding the DR line asserted during the assertion of RESET causes the chip to enter thedebug mode. After receiving the acknowledge, the external command controller mustdeassert the DR line before sending the first command. Note that in this case the chipdoes not execute any instruction before entering the debug mode.10.6.2 External Debug Request During Normal ActivityHolding the DR line asserted during normal chip activity causes the chip to finish the executionof the current instruction and then enter the debug mode. After receiving the acknowledge,the external command controller must deassert the DR line before sendingthe first command. Note that in this case the chip completes the execution of the currentinstruction and stops after the newly fetched instruction enters the instruction latch. Thisprocess is the same for any newly fetched instruction including instructions fetched by theinterrupt processing, or those that will be aborted by the interrupt processing.10.6.3 External Debug Request During STOPAsserting DR when the chip is in the stop state (i. e., has executed a STOP instruction)and keeping it asserted until an acknowledge pulse in DSO is produced causes the chipto exit the stop state and enter the debug mode. After receiving the acknowledge, the externalcommand controller must deassert DR before sending the first command. Note thatin this case, the chip completes the execution of the STOP instruction and halts after thenext instruction enters the instruction latch.10.6.4 External Debug Request During WAITAsserting DR when the chip is in the wait state (i. e., has executed a WAIT instruction)and keeping it asserted until an acknowledge pulse in DSO is produced causes the chipto exit the wait state and enter the debug mode. After receiving the acknowledge, the externalcommand controller must deassert DR before sending the first command. Note thatin this case, the chip completes the execution of the WAIT instruction and halts after thenext instruction enters the instruction latch.-10.6.5 Software Request During Normal Activity, Upon executing the DEBUG or DEBUGcc instruction when the specified condition is true,the chip enters the debug mode after the instruction following the DEBUG instruction hasentered the instruction latch.10.6.6 Enabling Trace ModeWhen the trace mode mechanism is enabled and the trace counter is greater than zero,
- Page 154 and 155: MAINPROGRAMMEMORYINTERRUPT SYNCHRON
- Page 156 and 157: MAINPROGRAMFETCHESINTERRUPTSYNCHRON
- Page 158 and 159: MAINPROGRAMFAST INTERRUPTVECTORLONG
- Page 160 and 161: MAINPROGRAMFETCHESNTERRUPTSYN8HRCNZ
- Page 162 and 163: 7.5 WAIT PROCESSING STATEThe WAIT i
- Page 164 and 165: The stop processing state halts all
- Page 166 and 167: the first instruction fetch). If th
- Page 168: RESET -----------------------------
- Page 172 and 173: 16 - BIT INTERNALADDRESS BUSESX ADD
- Page 174 and 175: 8.2.2.1 Address (AO-A15)These three
- Page 177: SECTION 9PLL CLOCK OSCILLATOR-
- Page 180 and 181: X MEMORYRAM/ROMEXPANSION24-Bit56KMo
- Page 182 and 183: 23 22 21 20 19 18 17 16 15 14 13 12
- Page 184 and 185: cleared. To enable rapid recovery w
- Page 186 and 187: -CLVCCVCC for the CKOUT output. The
- Page 188 and 189: 4. For all input frequencies which
- Page 190 and 191: While the PLL is regaining lock, th
- Page 193 and 194: 10.1 ON-CHIP EMULATION INTRODUCTION
- Page 195 and 196: 10.2.2 Debug Serial Clock/Chip Stat
- Page 197 and 198: 76543210I R/W I GO I EX I RS41 RS31
- Page 199 and 200: shifted in (so a new command is ava
- Page 201 and 202: 10.3.4.4 Software Debug Occurrence
- Page 203: 10.4.4 Memory High Address Comparat
- Page 207 and 208: PABCIRCULARBUFFERPOINTERDSCKDSOFigu
- Page 209 and 210: are serially available to the exter
- Page 211 and 212: k. ACKI. ClKm. Send command READ FI
- Page 213 and 214: 19. ACK20. Send command READ GDB RE
- Page 215 and 216: 10.11.6.1 Case 1: Return To The Pre
- Page 217: SECTION 11ADDITIONAL SUPPORTDr. BuB
- Page 220 and 221: The following is a partial list of
- Page 222 and 223: • In-line assembler language code
- Page 224 and 225: I Document 10 I Version Synopsis I
- Page 226 and 227: I Document 10 I Version Synopsis I
- Page 228 and 229: I Document ID I Version Synopsis I
- Page 230 and 231: I Document 10 I Version Synopsis I
- Page 232 and 233: 11.5 MOTOROLA DSP NEWSThe Motorola
- Page 234 and 235: DIGITAL SIGNAL PROCESSINGAlan V. Op
- Page 236 and 237: C Programming Language:Controls:. C
- Page 238 and 239: Image Processing:DIGITAL IMAGE PROC
- Page 240 and 241: LINEAR PREDICTION OF SPEECHJ. D. Ma
- Page 243 and 244: A.1 APPENDIX A INTRODUCTIONThis app
- Page 245 and 246: XnYnTable A-1 Instruction Descripti
- Page 247 and 248: Table A-1 Instruction Description N
- Page 249 and 250: Table A-1 Instruction Description N
- Page 251 and 252: Table A-2 DSP56K Addressing ModesAd
- Page 253 and 254: The address register indirect addre
10.6.1 External Debug Request During RESETHolding the DR line asserted during the assertion <strong>of</strong> RESET causes the chip to enter thedebug mode. After receiving the acknowledge, the external command controller mustdeassert the DR line before sending the first command. Note that in this case the chipdoes not execute any instruction before entering the debug mode.10.6.2 External Debug Request During Normal ActivityHolding the DR line asserted during normal chip activity causes the chip to finish the execution<strong>of</strong> the current instruction and then enter the debug mode. After receiving the acknowledge,the external command controller must deassert the DR line before sendingthe first command. Note that in this case the chip completes the execution <strong>of</strong> the currentinstruction and stops after the newly fetched instruction enters the instruction latch. Thisprocess is the same for any newly fetched instruction including instructions fetched by theinterrupt processing, or those that will be aborted by the interrupt processing.10.6.3 External Debug Request During STOPAsserting DR when the chip is in the stop state (i. e., has executed a STOP instruction)and keeping it asserted until an acknowledge pulse in DSO is produced causes the chipto exit the stop state and enter the debug mode. After receiving the acknowledge, the externalcommand controller must deassert DR before sending the first command. Note thatin this case, the chip completes the execution <strong>of</strong> the STOP instruction and halts after thenext instruction enters the instruction latch.10.6.4 External Debug Request During WAITAsserting DR when the chip is in the wait state (i. e., has executed a WAIT instruction)and keeping it asserted until an acknowledge pulse in DSO is produced causes the chipto exit the wait state and enter the debug mode. After receiving the acknowledge, the externalcommand controller must deassert DR before sending the first command. Note thatin this case, the chip completes the execution <strong>of</strong> the WAIT instruction and halts after thenext instruction enters the instruction latch.-10.6.5 S<strong>of</strong>tware Request During Normal Activity, Upon executing the DEBUG or DEBUGcc instruction when the specified condition is true,the chip enters the debug mode after the instruction following the DEBUG instruction hasentered the instruction latch.10.6.6 Enabling Trace ModeWhen the trace mode mechanism is enabled and the trace counter is greater than zero,