Datasheet

dsPIC33EPXXX(GP/MC/MU)806/810/814 and PIC24EPXXX(GP/GU)810/814
DS70616F-page 386 Preliminary © 2009-2012 Microchip Technology Inc.
22.3 USB 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 Vbus voltage is above Va_sess_vld (as defined in the USB OTG Specification) on the A or B
device
0 = The Vbus voltage is below Va_sess_vld on the A or B device
bit 2
SESEND: B-Session End Indicator bit
1 = The Vbus voltage is below Vb_sess_end (as defined in the USB OTG Specification) on the B device
0 = The Vbus voltage is above Vb_sess_end on the B device
bit 1
Unimplemented:
Read as ‘0
bit 0
VBUSVD: A-Vbus Valid Indicator bit
1 = The Vbus voltage is above Va_vbus_vld (as defined in the USB OTG Specification) on the A device
0 = The Vbus voltage is below Va_vbus_vld on the A device