Information
USBx_OTGICR field descriptions (continued)
Field Description
2
BSESSEN
B Session END Interrupt Enable
0 Disables the B_SESS_CHG interrupt.
1 Enables the B_SESS_CHG interrupt.
1
Reserved
This read-only field is reserved and always has the value zero.
0
AVBUSEN
A VBUS Valid Interrupt Enable
0 Disables the AVBUSCHG interrupt.
1 Enables the AVBUSCHG interrupt.
40.4.7 OTG Status register (USBx_OTGSTAT)
Displays the actual value from the external comparator outputs of the ID pin and VBUS.
Addresses: USB0_OTGSTAT is 4007_2000h base + 18h offset = 4007_2018h
Bit 7 6 5 4
Read
ID ONEMSECEN LINESTATESTABLE
0
Write
Reset
0 0 0 0
Bit
3 2 1 0
Read
SESS_VLD BSESSEND
0
AVBUSVLD
Write
Reset
0 0 0 0
USBx_OTGSTAT field descriptions
Field Description
7
ID
Indicates the current state of the ID pin on the USB connector
0 Indicates a Type A cable is plugged into the USB connector.
1 Indicates no cable is attached or a Type B cable is plugged into the USB connector.
6
ONEMSECEN
This bit is reserved for the 1ms count, but it is not useful to software.
5
LINESTATESTABLE
Indicates that the internal signals that control the LINE_STATE_CHG field of OTGISTAT are stable for
at least 1 millisecond. First read LINE_STATE_CHG field and then read this field. If this field reads as
1, then the value of LINE_STATE_CHG can be considered stable.
0 The LINE_STAT_CHG bit is not yet stable.
1 The LINE_STAT_CHG bit has been debounced and is stable.
4
Reserved
This read-only field is reserved and always has the value zero.
Table continues on the next page...
Chapter 40 Universal Serial Bus OTG Controller (USBOTG)
K20 Sub-Family Reference Manual, Rev. 2, Feb 2012
Freescale Semiconductor, Inc. 899
