English
Language : 

UPSD3422_06 Datasheet, PDF (153/293 Pages) STMicroelectronics – Turbo Plus Series Fast Turbo 8032 MCU with USB and Programmable Logic
uPSD34xx
USB interface
Command Value register (USCV). The USB Setup Command Index register (USCI) is used
to select the byte from the command buffer that is read when accessing the USCV register.
25.4
USB registers
The USB module is controlled via registers mapped into the SFR space. The USB SFRs
consist of the following:
● UADDR: USB device address
● UPAIR: USB FIFO pairing control
● UIE0~3: USB interrupt enable
● UIF0~3: USB interrupt flags
● UCTL: USB Control
● USTA: USB Status
● USEL: USB Endpoint and direction select
● UCON: USB Selected FIFO control register
● USIZE: USB Selected FIFO size register
● UBASE: USB Base Address register
● USCI: USB Setup Command index
● USCV: USB Setup Command value
The memory map for the USB SFRs, the individual bit names, and the reset values are
shown in Table 69.
Table 69. uPSD34xx USB SFR register map
SFR
Addr
SFR
(hex) Name 7 6
Bit Name and <Bit Address>
5
4
3
2
1
Reset
Value Comment
0 (hex)
E2 UADDR –
USBADDR[6:0]
00 USB Address
E3 UPAIR –
–
–
–
PR3OU
T
PR1OUT
PR3IN
PR1IN
00
USB Pairing
Control
E4
UIE0 –
–
–
USB Global
–
RSTIE SUSPNDIE EOPIE RESUMIE 00
Interrupt
Enable
E5
UIE1 –
–
–
IN4IE IN3IE
IN2IE
IN1IE
IN0IE
USB IN FIFO
00
Interrupt
Enable
E6
UIE2 –
–
– OUT4IE OUT3IE OUT2IE OUT1IE OUT0IE
USB OUT
00 FIFO Interrupt
Enable
E7
UIE3 –
–
– NAK4IE NAK3IE NAK2IE NAK1IE NAK0IE
USB IN FIFO
00
NAK Int.
Enable
E8
UIF0 GLF INF OUTF NAKF
RSTF SUSPNDF EOPF RESUMF
00
USB Global
Interrupt Flag
E9
UIF1
–
–
–
IN4F
IN3F
IN2F
IN1F
IN0F
00
USB IN FIFO
Interrupt Flag
EA
UIF2
–
–
–
OUT4F OUT3F OUT2F OUT1F OUT0F
USB OUT
00 FIFO Interrupt
Flag
153/293