Microchip Technology TDGL019 データシート
© 2011-2014 Microchip Technology Inc.
DS60001168F-page 125
PIC32MX1XX/2XX
REGISTER 10-3:
U1OTGSTAT: USB OTG STATUS REGISTER
Bit
Range
Bit
31/23/15/7
Bit
30/22/14/6
Bit
29/21/13/5
Bit
28/20/12/4
Bit
27/19/11/3
Bit
26/18/10/2
Bit
25/17/9/1
Bit
24/16/8/0
31:24
U-0
U-0
U-0
U-0
U-0
U-0
U-0
U-0
—
—
—
—
—
—
—
—
23:16
U-0
U-0
U-0
U-0
U-0
U-0
U-0
U-0
—
—
—
—
—
—
—
—
15:8
U-0
U-0
U-0
U-0
U-0
U-0
U-0
U-0
—
—
—
—
—
—
—
—
7:0
R-0
U-0
R-0
U-0
R-0
R-0
U-0
R-0
ID
—
LSTATE
—
SESVD
SESEND
—
VBUSVD
Legend:
R = Readable bit
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
-n = Value at POR
‘1’ = Bit is set
‘0’ = Bit is cleared
x = Bit is unknown
bit 31-8 Unimplemented: Read as ‘0’
bit 7
bit 7
ID:
ID Pin State Indicator bit
1
= No cable is attached or a “type B” cable has been inserted into the USB receptacle
0
= A “type A” OTG cable has been inserted into the USB receptacle
bit 6
Unimplemented:
Read as ‘0’
bit 5
LSTATE:
Line State Stable Indicator bit
1
= USB line state (SE0 (U1CON<6>) bit and JSTATE (U1CON<7>)) bit has been stable for previous 1 ms
0
= USB line state (SE0 and JSTATE) has not been stable for previous 1 ms
bit 4
Unimplemented:
Read as ‘0’
bit 3
SESVD:
Session Valid Indicator bit
1
= V
BUS
voltage is above Session Valid on the A or B device
0
= V
BUS
voltage is below Session Valid on the A or B device
bit 2
SESEND:
B-Device Session End Indicator bit
1
= V
BUS
voltage is below Session Valid on the B device
0
= V
BUS
voltage is above Session Valid on the B device
bit 1
Unimplemented:
Read as ‘0’
bit 0
VBUSVD:
A-Device V
BUS
Valid Indicator bit
1
= V
BUS
voltage is above Session Valid on the A device
0
= V
BUS
voltage is below Session Valid on the A device