Information
Section Number Title Page
Chapter 40
Universal Serial Bus OTG Controller (USBOTG)
40.1 Introduction...................................................................................................................................................................883
40.1.1 USB..............................................................................................................................................................883
40.1.2 USB On-The-Go..........................................................................................................................................884
40.1.3 USB-FS Features..........................................................................................................................................885
40.2 Functional description...................................................................................................................................................885
40.2.1 Data Structures.............................................................................................................................................885
40.3 Programmers interface..................................................................................................................................................886
40.3.1 Buffer Descriptor Table...............................................................................................................................886
40.3.2 RX vs. TX as a USB target device or USB host..........................................................................................887
40.3.3 Addressing BDT entries...............................................................................................................................888
40.3.4 Buffer Descriptors (BDs).............................................................................................................................888
40.3.5 USB transaction...........................................................................................................................................891
40.4 Memory map/Register definitions................................................................................................................................893
40.4.1 Peripheral ID register (USBx_PERID)........................................................................................................895
40.4.2 Peripheral ID Complement register (USBx_IDCOMP)...............................................................................896
40.4.3 Peripheral Revision register (USBx_REV)..................................................................................................896
40.4.4 Peripheral Additional Info register (USBx_ADDINFO).............................................................................897
40.4.5 OTG Interrupt Status register (USBx_OTGISTAT)....................................................................................897
40.4.6 OTG Interrupt Control Register (USBx_OTGICR).....................................................................................898
40.4.7 OTG Status register (USBx_OTGSTAT)....................................................................................................899
40.4.8 OTG Control Register (USBx_OTGCTL)...................................................................................................900
40.4.9 Interrupt Status Register (USBx_ISTAT)....................................................................................................901
40.4.10 Interrupt Enable Register (USBx_INTEN)..................................................................................................902
40.4.11 Error Interrupt Status Register (USBx_ERRSTAT)....................................................................................903
40.4.12 Error Interrupt Enable Register (USBx_ERREN).......................................................................................904
40.4.13 Status Register (USBx_STAT)....................................................................................................................906
40.4.14 Control Register (USBx_CTL)....................................................................................................................907
K20 Sub-Family Reference Manual, Rev. 2, Feb 2012
Freescale Semiconductor, Inc. 33
