Host (pci/usb) port. Over view. Host Port Selection. Configuration Spaces. PCI Configuration Space, страница 18

 

IN Transfers:

The MCU loads the counter with the number of bytes to transfer (must be 8 or less since the USB Setup Token Data Register file is 8 bytes maximum). The USB interface then decrements the count value after each byte is transferred to the host.

 

OUT Transfers:

Starting from a cleared value of 0, the counter is decremented with each byte received from the host, including the two CRC bytes. For example, if 8 bytes are received, the count value progresses from 15, 14, 13, etc. to a value of 6 (inclusive is the 2 CRC bytes). The MCU reads the value and subtracts it from 14 to determine the actual number of data bytes in the USB Setup Token Register file (14 - 6 = 8 bytes).

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

 

A15

A14

A13

A12

A11

A10

A9

A8

A7

A6

A5

A4

A3

A2

A1

A0

 

Figure 8-13. USB Register I/O Address Register

The USB Register I/O Address Register contains the address of the ADSP-2192 register to be read/written. This register is read/write by the MCU only.

Table 8-17. USB Register I/O Address Register

A[15]

MCU sets to 1 to notify the PDC Register Interface block to start ADSP-2192 read/write cycle. PDC Register Interface block clears to 0 to notify MCU the read/write cycle has completed.

 

A[14]

1 = WRITE, 0 = READ

 

A[13:0]

ADSP-2192 address to read/write

 

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

D15

D14

D13

D12

D11

D10

D9

D8

D7

D6

D5

D4

D3

D2

D1

D0

Figure 8-14. USB Register I/O Data Register

The USB Register I/O Address Register contains the data of the

ADSP-2192 register that has been read or is to be written. This register is read/write by the MCU only.

Table 8-18. USB Register I/O Data Register

D[15:0]

During READ this register contains the data read from the ADSP-2192, during WRITE this register is the data to be written to the ADSP-2192


15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

INT

ISE

IIN

IOU

BY

X

X

ER

X

X

X

X

RW

MO

BB

DI

Figure 8-15. USB Control Register

The USB Control Register controls various USB functions. This register is read/write by the MCU only.

Table 8-19. USB Control Register