44.4.1.3 USB OTG Status Register
| Name: | UOTGSTAT |
| Offset: | 0x4060 |
| Reset: | 0x0 |
| Property: | - |
| Bit | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | |
| Access | |||||||||
| Reset |
| Bit | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | |
| Access | |||||||||
| Reset |
| Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | |
| Access | |||||||||
| Reset |
| Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| ID | LSTATE | SESVD | SESEND | VBUSVD | |||||
| Access | R | R | R | R | R | ||||
| Reset | 0 | 0 | 0 | 0 | 0 |
Bit 7 – ID ID Pin State Indicator bit
| Value | Description |
|---|---|
| 1 | No cable is attached or a type B cable has been plugged into the USB receptacle |
| 0 | A “type A” OTG cable has been plugged into the USB receptacle |
Bit 5 – LSTATE Line State Stable Indicator bit
| Value | Description |
|---|---|
| 1 |
USB line state (U1CON<SE0> and U1CON<JSTATE>) has been stable for the last 1 ms |
| 0 | USB line state (U1CON<SE0> and U1CON<JSTATE>) has not been stable for the last 1 ms |
Bit 3 – SESVD Session Valid Change Indicator bit
| Value | Description |
|---|---|
| 1 |
VBUS voltage is above Session Valid on the A or B device |
| 0 |
VBUS voltage is below Session Valid on the A or B device |
Bit 2 – SESEND B-Session End Indicator bit
| Value | Description |
|---|---|
| 1 | VBUS voltage is below Session Valid on the B device |
| 0 | VBUS voltage is above Session Valid on the B device |
Bit 0 – VBUSVD A-VBUS Valid Indicator bit
| Value | Description |
|---|---|
| 1 | VBUS voltage is below Session Valid on the A device |
| 0 | VBUS voltage is above Session Valid on the A device |
