The DSP has general-purpose and dedicated registers in each of its functional blocks, страница 33

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

AD

AD

AD

AD

AD

AD

AD

AD

AD

AD

AD

AD

AD

AD

AD

AD

MSW

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

X

X

X

X

X

X

X

X

X

X

X

X

X

X

AD

AD

Figure B-13. USB Endpoint 2 Code Download Current Write Pointer Offset Register

Contains an 18 bit address which corresponds to the current write pointer offset from the base address register for DSP code download on Endpoint 2. The sum of this register and the EP2 code download base address register represents the last DSP PM location written.

This register is read by the MCU only and is cleared to 3FFFF (-1) when the Endpoint 2 Code Download Base Address Register is updated.

USB Endpoint 3 C ode Downloa d C urrent Write Pointe r O ffse t Re g ister

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

AD

AD

AD

AD

AD

AD

AD

AD

AD

AD

AD

AD

AD

AD

AD

AD

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

X

X

X

X

X

X

X

X

X

X

X

X

X

X

AD

AD

Figure B-14. USB Endpoint 3 Code Download Current Write Pointer Offset Register

Contains an 18 bit address which corresponds to the current write pointer offset from the base address register for DSP code download on Endpoint 3. The sum of this register and the EP3 code download base address register represents the last DSP PM location written.

This register is read by the MCU only and is cleared to 3FFFF (-1) when the Endpoint 3 Code Download Base Address Register is updated.

USB SETUP Token C om ma nd Reg ister

This register is defined as eight bytes long and contains the data sent on the USB from the most recent SETUP transaction. This register is read by the MCU only.

Table B-42. USB SETUP Token Command Register

Byte        7                                             0

bmRequest

b Request

w Value (L)

w Value (H)

w Index (L)

w Index (H)

w Length (L)

w Length(H)

0

1

2

3

4

5

6

7

USB SETUP Token Data Register

If the most recent SETUP transaction involves a data OUT stage, the USB SETUP Token Data Register is defined as eight bytes long and contains the data sent on the USB during the data stage. This is also where the MCU will write data to be sent in response to a SETUP transaction involving a data IN stage. This register is read/write by the MCU only.