Section number Title Page
34.3.6 Register lock................................................................................................................................................609
34.3.7 Interrupt........................................................................................................................................................609
Chapter 35
Universal Serial Bus OTG Controller (USBOTG)
35.1 Introduction...................................................................................................................................................................611
35.1.1 USB..............................................................................................................................................................611
35.1.2 USB On-The-Go..........................................................................................................................................612
35.1.3 USB-FS Features..........................................................................................................................................613
35.2 Functional description...................................................................................................................................................613
35.2.1 Data Structures.............................................................................................................................................613
35.3 Programmers interface..................................................................................................................................................614
35.3.1 Buffer Descriptor Table...............................................................................................................................614
35.3.2 RX vs. TX as a USB target device or USB host..........................................................................................615
35.3.3 Addressing BDT entries...............................................................................................................................616
35.3.4 Buffer Descriptors (BDs).............................................................................................................................616
35.3.5 USB transaction...........................................................................................................................................619
35.4 Memory map/Register definitions................................................................................................................................621
35.4.1 Peripheral ID register (USBx_PERID)........................................................................................................623
35.4.2 Peripheral ID Complement register (USBx_IDCOMP)...............................................................................624
35.4.3 Peripheral Revision register (USBx_REV)..................................................................................................624
35.4.4 Peripheral Additional Info register (USBx_ADDINFO).............................................................................625
35.4.5 OTG Interrupt Status register (USBx_OTGISTAT)....................................................................................625
35.4.6 OTG Interrupt Control Register (USBx_OTGICR).....................................................................................626
35.4.7 OTG Status register (USBx_OTGSTAT)....................................................................................................627
35.4.8 OTG Control register (USBx_OTGCTL)....................................................................................................628
35.4.9 Interrupt Status register (USBx_ISTAT).....................................................................................................629
35.4.10 Interrupt Enable register (USBx_INTEN)...................................................................................................630
35.4.11 Error Interrupt Status register (USBx_ERRSTAT).....................................................................................631
35.4.12 Error Interrupt Enable register (USBx_ERREN).........................................................................................632
KL25 Sub-Family Reference Manual, Rev. 3, September 2012
Freescale Semiconductor, Inc. 25