section 7 - Index of
section 7 - Index of section 7 - Index of
the external command controller when returning to normal mode. Since there is no directwrite access to this register, this task is accomplished in the first write to OPDBR after enteringthe debug mode or after executing the GO command; the data from OPDBR istransferred to OPILR only in these cases.10.7.3 Global Data Bus Register (OGDBR)The OGDBR is a 24-bit latch that can only be read through the OnCE serial interface.OGDBR is not actually required from a pipeline status restore point of view but is requiredas a means of passing information between the chip and the external command controller.OGDBR is mapped on the X internal 1/0 space at address $FFFC. Whenever the externalcommand controller needs the contents of a register or memory location, it will force thechip to execute an instruction that brings that information to OGDBR. Then, the contentsof OGDBR will be delivered serially to the external command controller by the command"READ GDB REGISTER".10.8 PROGRAM ADDRESS BUS HISTORY BUFFERThere are two read-only PAB registers which give pipeline information when the debugmode is entered. The OPABFR register tells which opcode address is in the fetch stageof the pipeline and OPABDR tells which opcode is in the decode stage. To ease debuggingactivity and keep track of program flow, a First-In-First-Out (FIFO) buffer stores theaddresses of the last five instructions that were executed.-10.8.1 PAB Register for Fetch (OPABFR)The OPABFR is a 16-bit register that stores the address of the last instruction that wasfetched before the debug mode was entered. The OPABFR can only be read through theOnCE serial interface. This register is not affected by the operations performed during thedebug mode.10.8.2 PAB Register for Decode (OPABDR)The OPABDR is a 16-bit register that stores the address of the instruction currently in theinstruction latch. This is the instruction that would have been decoded if the chip wouldnot have entered the debug mode. OPABDR can only be read through the serial interface.This register is not affected by the operations performed during the debug mode.10.8.3 PAB FIFOThe PAB FIFO stores the addresses of the last five instructions that were executed. TheFIFO is implemented as a circular buffer containing five 16-bit registers and one 3-bitcounter. All the registers have the same address but any read access to the FIFO addresswill cause the counter to increment, making it pOint to the next FIFO register. The registers
are serially available to the external command controller through their common FIFO address.Figure 10-9 shows the block diagram of the PAB FIFO. The FIFO is not affected bythe operations performed during the debug mode except for the FIFO pointer incrementwhen reading the FIFO. When entering the debug mode, the FIFO counter will be pointingto the FIFO register containing the address of the oldest of the five executed instructions.The first FIFO read will obtain the oldest address and the following FIFO reads will get theother addresses from the oldest to the newest (the order of execution).To ensure FIFO coherence, a complete set of five reads of the FIFO must be performedbecause each read increments the FIFO pOinter, thus making it point to the next location.After five reads the pointer will point to the same location it pointed to before starting theread procedure.10.9 SERIAL PROTOCOL DESCRIPTIONThe following protocol permits an efficient means of communication between the OnCE'sexternal command controller and the DSP56K chip. Before starting any debugging activity,the external command controller must wait for an acknowledge on the DSO line, indicatingthat the chip has entered the debug mode. The external command controller communicateswith the chip by sending a-bit commands that may be accompanied by 24 bitsof data. Both commands and data are sent or received most significant bit first. After sendinga command, the external command controller must wait for the processor to acknowledgeexecution of the command before it may send a new command.When accessing OnCE 16-bit registers, the register contents appear in the 16 most significantbits in the 24-bit data field, and the a least significant bits are zeroed.10.9.1 OnCE CommandsThe OnCE commands may be classified as follows:• read commands (when the chip will deliver the required data).• write commands (when the chip will receive data and write the data in one of the OnCEregisters).• commands that do not have data transfers associated with them.-The commands are a bits long and have the format shown in Figure 10-4.10.10 DSP56K TARGET SITE DEBUG SYSTEM REQUIREMENTSA typical DSP56K debug environment consists of a target system where the DSP56K residesin the user defined hardware. The debug serial port interfaces to the external commandcontroller over a 6-wire link which includes the 4 OnCE wires, a ground, and a resetwire. The reset wire is optional and is only used to reset the DSP56K and its associatedcircuitry.
- 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 and 204: 10.4.4 Memory High Address Comparat
- Page 205 and 206: 10.6.1 External Debug Request Durin
- Page 207: PABCIRCULARBUFFERPOINTERDSCKDSOFigu
- 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
- Page 255 and 256: A.SCONDITION CODE COMPUTATION15 14
- Page 257 and 258: S1 SO Scaling Mode Signed Integer P
are serially available to the external command controller through their common FIFO address.Figure 10-9 shows the block diagram <strong>of</strong> the PAB FIFO. The FIFO is not affected bythe operations performed during the debug mode except for the FIFO pointer incrementwhen reading the FIFO. When entering the debug mode, the FIFO counter will be pointingto the FIFO register containing the address <strong>of</strong> the oldest <strong>of</strong> the five executed instructions.The first FIFO read will obtain the oldest address and the following FIFO reads will get theother addresses from the oldest to the newest (the order <strong>of</strong> execution).To ensure FIFO coherence, a complete set <strong>of</strong> five reads <strong>of</strong> the FIFO must be performedbecause each read increments the FIFO pOinter, thus making it point to the next location.After five reads the pointer will point to the same location it pointed to before starting theread procedure.10.9 SERIAL PROTOCOL DESCRIPTIONThe following protocol permits an efficient means <strong>of</strong> communication between the OnCE'sexternal command controller and the DSP56K chip. Before starting any debugging activity,the external command controller must wait for an acknowledge on the DSO line, indicatingthat the chip has entered the debug mode. The external command controller communicateswith the chip by sending a-bit commands that may be accompanied by 24 bits<strong>of</strong> data. Both commands and data are sent or received most significant bit first. After sendinga command, the external command controller must wait for the processor to acknowledgeexecution <strong>of</strong> the command before it may send a new command.When accessing OnCE 16-bit registers, the register contents appear in the 16 most significantbits in the 24-bit data field, and the a least significant bits are zeroed.10.9.1 OnCE CommandsThe OnCE commands may be classified as follows:• read commands (when the chip will deliver the required data).• write commands (when the chip will receive data and write the data in one <strong>of</strong> the OnCEregisters).• commands that do not have data transfers associated with them.-The commands are a bits long and have the format shown in Figure 10-4.10.10 DSP56K TARGET SITE DEBUG SYSTEM REQUIREMENTSA typical DSP56K debug environment consists <strong>of</strong> a target system where the DSP56K residesin the user defined hardware. The debug serial port interfaces to the external commandcontroller over a 6-wire link which includes the 4 OnCE wires, a ground, and a resetwire. The reset wire is optional and is only used to reset the DSP56K and its associatedcircuitry.