Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
34
Добавлен:
27.04.2015
Размер:
1.98 Mб
Скачать

OnCE™ Module

12.4 Command, Status, and Control Registers

The OnCE command, status, and control registers are described in Section 12.4.1, “OnCE Shift Register (OSHR),” through Section 12.4.6, “OnCE Status Register (OSR).” They include these registers:

OnCE shift register (OSHR)

OnCE command register (OCMDR)

OnCE decoder (ODEC) register

OnCE control register (OCR)

OnCE breakpoint 2 control (OBCTL2) register

OnCE status register (OSR)

12.4.1 OnCE Shift Register (OSHR)

The OnCE shift register (OSHR) is a JTAG shift register that samples the TDI pin on the rising edge of TCK in Shift-DR and provides output to the TDO pin on the falling edge of TCK. During OCMDR and OSR transfers, this register is 8 bits wide. During all other transfers, this register is 16 bits wide. The input from TDI is clocked first into the MSB of the OSHR. The TDO pin receives data from the least significant bit (LSB) of the OSHR.

12.4.2 OnCE Command Register (OCMDR)

The OnCE module has its own instruction register and instruction decoder, the OnCE command register (OCMDR). After a command is latched into the OCMDR, the command decoder implements the instruction through the OnCE state machine and control block. There are two types of commands: read commands that cause the chip to deliver required data, and write commands that transfer data into the chip and write it in one of the on-chip resources. The commands are 8 bits long and have the format shown in Figure 12-6. The lowest 5 bits (RS[4:0]) identify the source for the operation, defined in Table 12-4. Bits 5, 6, and 7 define the exit (EX) command bit (Table 12-5 on page 12-13), the execute (GO) bit (Table 12-6 on page 12-13), and the read/write (R/W) bit (Table 12-7 on page 12-14), respectively.

 

OCMDR

7

6

5

4

3

2

 

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OnCE Command Register

 

 

 

 

 

 

 

 

 

 

 

 

 

Reset: Not modified

R/W

GO

EX

RS4

RS3

RS2

RS1

RS0

 

 

 

Write-Only

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

AA0106

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Figure 12-6. OnCE Command Format

 

 

 

 

 

Table 12-4. Register Select Encoding

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RS[4:0]

Register/Action Selected

 

 

 

 

 

Mode

Read/Write

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

00000

No register selected

 

 

 

 

 

 

 

 

All

Not applicable

 

 

 

 

 

 

 

 

 

 

 

 

 

00001

OnCE breakpoint and trace counter (OCNTR)

 

 

 

 

 

 

All

Read/Write

 

 

 

 

 

 

 

 

 

 

 

 

 

 

00010

OnCE debug control register (OCR)

 

 

 

 

 

 

 

 

All

Read/Write

 

 

 

 

 

 

 

 

 

 

 

 

 

 

12-12

DSP56824 User’s Manual

 

Command, Status, and Control Registers

Table 12-4. Register Select Encoding (Continued)

RS[4:0]

Register/Action Selected

Mode

Read/Write

 

 

 

 

 

 

 

 

00011

(Reserved)

All

N/A

 

 

 

 

00100

OnCE breakpoint address register (OBAR)

All

Write-only

 

 

 

 

00101

(Reserved)

All

N/A

 

 

 

 

00110

(Reserved)

All

N/A

 

 

 

 

00111

(Reserved)

All

N/A

 

 

 

 

01000

OnCE PGDB bus transfer register (OPGDBR)

Debug

Read-only

 

 

 

 

01001

OnCE program data bus register (OPDBR)

Debug

Read/Write

 

 

 

 

01010

OnCE program address register— fetch cycle (OPABFR)

FIFO halted

Read-only

 

 

 

 

01011

(Reserved)

N/A

N/A

 

 

 

 

01100

Clear OCNTR

All

N/A

 

 

 

 

01101

(Reserved)

N/A

N/A

 

 

 

 

01110

(Reserved)

N/A

N/A

 

 

 

 

01111

(Reserved)

N/A

N/A

 

 

 

 

10000

OnCE program address register— execute cycle (OPABER)

FIFO halted

Read-only

 

 

 

 

10001

OnCE program address FIFO (OPFIFO)

FIFO halted

Read-only

 

 

 

 

10010

(Reserved)

N/A

N/A

 

 

 

 

10011

OnCE program address register— decode cycle (OPABDR)

FIFO halted

Read-only

 

 

 

 

101xx

(Reserved)

N/A

N/A

 

 

 

 

11xxx

(Reserved)

N/A

N/A

 

 

 

 

 

Table 12-5. EX Bit Definition

 

 

EX

Action

0Remain in the debug processing state

1Leave the debug processing state

Note: Bit 5 in the OnCE command word is the exit command. To leave debug mode and reenter the normal mode, both the EX and GO bits must be asserted in the OnCE input command register.

 

 

Table 12-6. GO Bit Definition

 

 

 

 

 

 

GO

Action

 

 

 

 

 

 

 

 

 

 

0

Inactive— no action taken

 

 

 

 

 

 

1

Execute DSP instruction

 

 

 

 

 

 

 

 

 

 

OnCE™ Module

12-13

Соседние файлы в папке DSP568xx