Section number Title Page
43.1 Introduction...................................................................................................................................................................1069
43.1.1 References....................................................................................................................................................1069
43.1.2 USB..............................................................................................................................................................1070
43.1.3 USB On-The-Go.......................................................................................................................................... 1071
43.1.4 USBFS Features...........................................................................................................................................1072
43.2 Functional description...................................................................................................................................................1072
43.2.1 Data Structures.............................................................................................................................................1072
43.2.2 On-chip transceiver required external components......................................................................................1073
43.3 Programmers interface..................................................................................................................................................1075
43.3.1 Buffer Descriptor Table............................................................................................................................... 1075
43.3.2 RX vs. TX as a USB peripheral device or USB host...................................................................................1076
43.3.3 Addressing BDT entries...............................................................................................................................1077
43.3.4 Buffer Descriptors (BDs).............................................................................................................................1078
43.3.5 USB transaction........................................................................................................................................... 1080
43.4 Memory map/Register definitions................................................................................................................................ 1082
43.4.1
Peripheral ID register (USBx_PERID)........................................................................................................ 1084
43.4.2
Peripheral ID Complement register (USBx_IDCOMP)...............................................................................1085
43.4.3
Peripheral Revision register (USBx_REV)..................................................................................................1085
43.4.4
Peripheral Additional Info register (USBx_ADDINFO)............................................................................. 1086
43.4.5
OTG Interrupt Status register (USBx_OTGISTAT)....................................................................................1086
43.4.6
OTG Interrupt Control register (USBx_OTGICR)...................................................................................... 1087
43.4.7
OTG Status register (USBx_OTGSTAT).................................................................................................... 1088
43.4.8
OTG Control register (USBx_OTGCTL).................................................................................................... 1089
43.4.9
Interrupt Status register (USBx_ISTAT)..................................................................................................... 1090
43.4.10
Interrupt Enable register (USBx_INTEN)................................................................................................... 1091
43.4.11
Error Interrupt Status register (USBx_ERRSTAT)..................................................................................... 1093
43.4.12
Error Interrupt Enable register (USBx_ERREN).........................................................................................1094
43.4.13
Status register (USBx_STAT)......................................................................................................................1095
43.4.14
Control register (USBx_CTL)......................................................................................................................1096
K22F Sub-Family Reference Manual, Rev. 4, 08/2016
36 NXP Semiconductors