USBx_OTGICR field descriptions (continued)
Field
Description
3
SESSVLDEN
Session Valid Interrupt Enable
0
Disables the SESSVLDCHG interrupt.
1
Enables the SESSVLDCHG interrupt.
2
BSESSEN
B Session END Interrupt Enable
0
Disables the B_SESS_CHG interrupt.
1
Enables the B_SESS_CHG interrupt.
1
Reserved
This field is reserved.
This read-only field is reserved and always has the value 0.
0
AVBUSEN
A VBUS Valid Interrupt Enable
0
Disables the AVBUSCHG interrupt.
1
Enables the AVBUSCHG interrupt.
42.4.7 OTG Status register (USBx_OTGSTAT)
Displays the actual value from the external comparator outputs of the ID pin and VBUS.
Address: 4007_2000h base + 18h offset = 4007_2018h
Bit
7
6
5
4
Read
Write
Reset
0
0
0
0
Bit
3
2
1
0
Read
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 ms. This bit is used to provide a hardware debounce of the linestate in detection of Connect,
Disconnect and Resume signaling. 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.
Table continues on the next page...
Chapter 42 Universal Serial Bus Full Speed OTG Controller (USBFSOTG)
K22F Sub-Family Reference Manual , Rev. 3, 7/2014
Freescale Semiconductor, Inc.
1005