USB DEVICE S3C2440A RISC MICROPROCESSOR
13-12
INDEX REGISTER (INDEX_REG)
The INDEX register is used to indicate certain endpoint registers effectively. The MCU can access the endpoint
registers (MAXP_REG, IN_CSR1_REG, IN_CSR2_REG, OUT_CSR1_REG, OUT_CSR2_REG,
OUT_FIFO_CNT1_REG, and OUT_FIFO_CNT2_REG) for an endpoint inside the core using the INDEX r egister.
Register Address R/W Description Reset Value
INDEX_REG 0x52000178(L)
0x5200017B(B) R/W
(byte) Register index register 0x00
INDEX_REG Bit MCU USB Description Initial State
INDEX [7:0] R/W R Indicate a certain endpoint 00
MAX PACKET REGISTER (MAXP_REG)
Register Address R/W Description Reset Value
MAXP_REG 0x52000180(L)
0x52000183(B) R/W
(byte) End Point MAX packet register 0x01
MAXP_REG Bit MCU USB Description Initial State
MAXP [3:0] R/W R 0000: Reserved
0001: MAXP = 8 Byte 0010: MAXP = 16
Byte
0100: MAXP = 32 Byte 1000: MAXP = 64
Byte
For EP0, MAXP=8 is recommended.
For EP1~4, MAXP=64 is recommended.
And, if MAXP=64, the dual packet mode
will be enabled automatically.
0001