36.7.25 USB Device Control Register
Symbol | Description | Symbol | Description | Symbol | Description |
---|---|---|---|---|---|
R | Readable bit | HC | Cleared by Hardware | (Grey cell) | Unimplemented |
W | Writable bit | HS | Set by Hardware | X | Bit is unknown at Reset |
K | Write to clear | S | Software settable bit | — | — |
Name: | DEVCTL |
Offset: | 0x1060 |
Reset: | 0x0000 |
Property: | PAC Write-Protection |
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
BDEVICE | FSDEV | LSDEV | VBUS[1:0] | HOSTMODE | HOSTREQ | SESSION | |||
Access | R | R | R/W | R/W | R/W | R | R/W/HC | R/W | |
Reset | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
Bit 7 – BDEVICE USB Device Type bit
Value | Description |
---|---|
0 | USB is operating as an 'A' device |
1 | USB is operating as a 'B' device |
Bit 6 – FSDEV Full-Speed/Hi-Speed Device Detection bit (Host mode)
Value | Description |
---|---|
0 | No Full-Speed or Hi-Speed device detected |
1 | A Full-Speed or Hi-Speed device has been detected being connected to the port |
Bit 5 – LSDEV Low-Speed Device Detection bit (Host mode)
Value | Description |
---|---|
0 | No Low-Speed device detected |
1 | A Low-Speed device has been detected being connected to the port |
Bits 4:3 – VBUS[1:0] VBUS Level Detection bits
Value | Description |
---|---|
11 | Above VBUS Valid |
10 | Above AValid, below VBUS Valid |
01 | Above Session End, below AValid |
00 | Below Session End |
Bit 2 – HOSTMODE Host Mode bit
Value | Description |
---|---|
0 | USB module is not acting as aHost |
1 | USB module is acting as a Host |
Bit 1 – HOSTREQ Host Request Control bit
'B' device only:
Value | Description |
---|---|
0 | Host Negotiation is not taking place |
1 | USB module initiates the Host Negotiation when Suspend mode is entered. This bit is cleared when Host Negotiation is completed. |
Bit 0 – SESSION Active Session Control/Status
'A'device:
1
= Start a session
0
= End a session
'B' device:
1
= (Read) Session has started or is in progress, (Write)
Initiate the Session Request Protocol
0
= When USB module is in Suspend mode, clearing this bit will
cause a software disconnect
Note: Clearing this bit when the USB module is not suspended will result in
undefined behavior.