Datasheet
305
32133D–11/2011
UC3D
19.7.1.2 General Status Register
Register Name: USBSTA
Access Type: Read-Only
Offset: 0x0804
Reset Value: 0x00000000
• CLKUSABLE: Generic Clock Usable
This bit is cleared when the USB generic clock is not usable.
This bit is set when the USB generic clock (that should be 48 Mhz) is usable.
• SPEED: Speed Status
This field is set according to the controller speed mode.
• VBUS: VBUS Level
This bit is cleared when the VBUS line level is low, even if USBE is zero.
This bit is set when the VBUS line level is high, even if USBE is zero.
This bit can be used in device mode to monitor the USB bus connection state of the application.
• VBUSTI: VBUS Transition Interrupt
This bit is cleared when the USBSTACLR.VBUSTIC bit is written to one.
This bit is set when a transition (high to low, low to high) has been detected on the USB_VBUS pad. This triggers a USB
interrupt if VBUSTE is one.
This interrupt is generated even if the clock is frozen by the FRZCLK bit.
31 30 29 28 27 26 25 24
--------
23 22 21 20 19 18 17 16
--------
15 14 13 12 11 10 9 8
- CLKUSABLE SPEED VBUS - - -
76543210
------VBUSTI-
SPEED Speed Status
00 full-speed mode
01 Reserved
10 low-speed mode
11 Reserved