Microchip Technology MA330025-1 Data Sheet

Page of 622
dsPIC33EPXXX(GP/MC/MU)806/810/814 and PIC24EPXXX(GP/GU)810/814
DS70616G-page 388
 2009-2012 Microchip Technology Inc.
22.4
USB Control Registers
REGISTER 22-1:
UxOTGSTAT: USB OTG STATUS REGISTER
U-0
U-0
U-0
U-0
U-0
U-0
U-0
U-0
bit 15
bit 8
R-0, HSC
U-0
R-0, HSC
U-0
R-0, HSC
R-0, HSC
U-0
R-0, HSC
ID
LSTATE
SESVD
SESEND
VBUSVD
bit 7
bit 0
Legend:
U = Unimplemented bit, read as ‘0’
R = Readable bit
W = Writable bit
HSC = Hardware Settable/Clearable bit
-n = Value at POR
‘1’ = Bit is set
‘0’ = Bit is cleared
x = Bit is unknown
bit 15-8
Unimplemented: Read as ‘0’
bit 7
ID: ID Pin State Indicator bit
1 = No cable is attached or a Type B plug has been plugged into the USB receptacle
0 = A Type A plug has been plugged into the USB receptacle
bit 6
Unimplemented: Read as ‘0’
bit 5
LSTATE: Line State Stable Indicator bit
1 = The USB line state (as defined by SE0 and JSTATE) has been stable for the previous 1 ms
0 = The USB line state has NOT been stable for the previous 1 ms
bit 4
Unimplemented: Read as ‘0’
bit 3
SESVD: Session Valid Indicator bit
1 = The V
BUS
 voltage is above V
A
_
SESS
_
VLD
 (as defined in the USB OTG Specification) on the A or B
device
0 = The V
BUS
 voltage is below V
A
_
SESS
_
VLD
 on the A or B device
bit 2
SESEND: B-Session End Indicator bit
1 = The V
BUS
 voltage is below V
B
_
SESS
_
END
 (as defined in the USB OTG Specification) on the B device
0 = The V
BUS
 voltage is above V
B
_
SESS
_
END
 on the B device
bit 1
Unimplemented: Read as ‘0’
bit 0
VBUSVD: A-V
BUS
 Valid Indicator bit
1 = The V
BUS
 voltage is above V
A
_
VBUS
_
VLD
 (as defined in the USB OTG Specification) on the A device
0 = The V
BUS
 voltage is below V
A
_
VBUS
_
VLD
 on the A device