English
Language : 

C8051F340 Datasheet, PDF (169/282 Pages) List of Unclassifed Manufacturers – Full Speed USB Flash MCU Family
C8051F340/1/2/3/4/5/6/7
USB Register
Name
IN1INT
OUT1INT
CMINT
IN1IE
OUT1IE
CMIE
FADDR
POWER
FRAMEL
FRAMEH
INDEX
CLKREC
FIFOn
E0CSR
EINCSRL
EINCSRH
EOUTCSRL
EOUTCSRH
E0CNT
EOUTCNTL
EOUTCNTH
Table 16.2. USB0 Controller Registers
USB Register
Address
0x02
0x04
0x06
0x07
0x09
0x0B
0x00
0x01
0x0C
0x0D
0x0E
0x0F
0x20–0x23
0x11
0x12
0x14
0x15
0x16
0x17
Description
Page Number
Interrupt Registers
Endpoint0 and Endpoints1-3 IN Interrupt Flags
177
Endpoints1-3 OUT Interrupt Flags
177
Common USB Interrupt Flags
178
Endpoint0 and Endpoints1-3 IN Interrupt Enables
179
Endpoints1-3 OUT Interrupt Enables
179
Common USB Interrupt Enables
180
Common Registers
Function Address
173
Power Management
175
Frame Number Low Byte
176
Frame Number High Byte
176
Endpoint Index Selection
169
Clock Recovery Control
170
Endpoints0-3 FIFOs
172
Indexed Registers
Endpoint0 Control / Status
183
Endpoint IN Control / Status Low Byte
186
Endpoint IN Control / Status High Byte
187
Endpoint OUT Control / Status Low Byte
189
Endpoint OUT Control / Status High Byte
190
Number of Received Bytes in Endpoint0 FIFO
184
Endpoint OUT Packet Count Low Byte
190
Endpoint OUT Packet Count High Byte
190
USB Register Definition 16.4. INDEX: USB0 Endpoint Index
R
R
R
R
R/W
R/W
R/W
R/W
Reset Value
-
-
-
-
EPSEL
00000000
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0 USB Address:
0x0E
Bits7–4: Unused. Read = 0000b; Write = don’t care.
Bits3–0: EPSEL: Endpoint Select
These bits select which endpoint is targeted when indexed USB0 registers are accessed.
INDEX
0x0
0x1
0x2
0x3
0x4–0xF
Target Endpoint
0
1
2
3
Reserved
Rev. 0.5
169