Table 17-24. Index Register; Table 17-25. Index Fields; Indexed Registers - Sharp LH79524 User Manual

Table of Contents

Advertisement

LH79524/LH79525 User's Guide

17.2.3 Indexed Registers

The next group of registers in the USB Device are Indexed. Each IN endpoint and each
OUT Endpoint have their own set of control/status registers. Only one set of IN control and
status registers and one set of OUT control and status registers appear in the memory map
at any one time. Before accessing an endpoint's control/status registers, the endpoint
number must be written to the INDEX register so that the correct control/status registers
appear in the memory map.
For example, to access INCSR1 (offset 0x44) for Endpoint 1, first write 0x1 to the INDEX
register, then read or write INCSR1. To access INCSR1 for Endpoint 3, first write 0x3 to
the INDEX register, then read or write INCSR1.
17.2.3.1 Index Register (INDEX)
The INDEX register determines which endpoint control/status registers are accessed at
address offsets 0x040 to 0x05C.
BIT
FIELD
RESET
RW
BIT
FIELD
RESET
TYPE
ADDR
BITS
31:4
3:0

Table 17-24. INDEX Register

31
30
29
28
27
0
0
0
0
0
RO
RO
RO
RO
RO
15
14
13
12
11
0
0
0
0
0
RO
RO
RO
RO
RO

Table 17-25. INDEX Fields

NAME
///
Reserved Reading returns 0. Write the reset value.
End Point Index This field specifies, by INDEX offset, which endpoint for the
particular register will be accessed by the next software read or write. The Index
values are:
INDEX
0b0011 = EP3
0b0010 = EP2
0b0001 = EP1
0b0000 = EP0
26
25
24
23
///
0
0
0
0
RO
RO
RO
RO
10
9
8
7
///
0
0
0
0
RO
RO
RO
RO
0xFFFF5000 + 0x038
FUNCTION
Version 1.0
Universal Serial Bus Device
22
21
20
19
18
0
0
0
0
0
RO
RO
RO
RO
RO
6
5
4
3
2
INDEX
0
0
0
0
0
RO
RO
R
RW
RW
17
16
0
0
RO
RO
1
0
0
0
RW
RW
17-19

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lh79525

Table of Contents