DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

ST7PSCR1E4M1/XXX View Datasheet(PDF) - STMicroelectronics

Part Name
Description
Manufacturer
ST7PSCR1E4M1/XXX Datasheet PDF : 102 Pages
First Prev 41 42 43 44 45 46 47 48 49 50 Next Last
ST7SCR
USB INTERFACE (Cont’d)
DEVICE ADDRESS REGISTER (DADDR)
Read/Write
Reset Value: 0000 0000 (00h)
7
0
0 ADD6 ADD5 ADD4 ADD3 ADD2 ADD1 ADD0
Bit 7 = Reserved, forced by hardware to 0.
Bits 6:0 = ADD[6:0] Device address, 7 bits.
Software must write into this register the address
sent by the host during enumeration.
Note: This register is also reset when a USB reset
is received or forced through bit FRES in the US-
BCTLR register.
USB STATUS REGISTER (USBSR)
Read only
Reset Value: 0000 0000 (00h)
7
0
PID1
PID0
IN/
OUT
0
0 EP2 EP1 EP0
Bits 7:6 = PID[1:0] Token PID bits 1 & 0 for End-
point 0 Control.
USB token PIDs are encoded in four bits. PID[1:0]
correspond to the most significant bits of the PID
field of the last token PID received by Endpoint 0.
Note: The least significant PID bits have a fixed
value of 01.
When a CTR interrupt occurs on Endpoint 0 (see
register USBISTR) the software should read the
PID[1:0] bits to retrieve the PID name of the token
received.
The USB specification defines PID bits as:
PID1
0
1
1
PID0
0
0
1
PID Name
OUT
IN
SETUP
Bit 5 = IN/OUT Last transaction direction for End-
point 1, 2 , 3, 4 or 5.
This bit is set by hardware when a CTR interrupt
occurs on Endpoint 1, 2, 3, 4 or 5.
0: OUT transaction
1: IN transaction
Bits 4:3 = Reserved, forced by hardware to 0.
Bits 2:0 = EP[2:0] Endpoint number.
These bits identify the endpoint which required at-
tention.
000 = Endpoint 0
001 = Endpoint 1
010 = Endpoint 2
011 = Endpoint 3
100 = Endpoint 4
101 = Endpoint 5
ERROR STATUS REGISTER (ERRSR)
Read only
Reset Value: 0000 0000 (00h)
7
0
0
0
0
0
0 ERR2 ERR1 ERR0
Bits 7:3 = Reserved, forced by hardware to 0.
Bits 2:0 = ERR[2:0] Error type.
These bits identify the type of error which oc-
curred.
ERR2 ERR1 ERR0
Meaning
0
0
0 No error
0
0
1 Bitstuffing error
0
1
0 CRC error
EOP error (unexpected end of
0
1
1 packet or SE0 not followed by
J-state)
1
0
0
PID error (PID encoding error,
unexpected or unknown PID)
Memory over / underrun (mem-
1
0
1
ory controller has not an-
swered in time to a memory
data request)
1
1
1
Other error (wrong packet,
timeout error)
Note: these bits are set by hardware when an er-
ror interrupt occurs and are reset automatically
when the error bit (USBISTR bit 4) is cleared by
software.
48/102
1

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]