Download M3 32-bit MCU User Manual

Transcript
GD32F10x User Manual
24.
Universal serial bus on-the-go Full-Speed interface
(USB OTG_FS)
24.1.
Introduction
USB On-The-Go Full-Speed (OTG_FS) controller is fully compliant with the On-The-Go
Supplement to the USB 2.0 Specification which can augment the capability of
communicating with existing mobile devices and USB peripherals by adding host
functionality. It can operate as device-only function controller which only supports Full-Speed
(FS, 12Mbits/s) transfers or host-only function controller which supports Full-Speed (FS,
12Mbits/s) and Low-Speed (LS, 1.5Mbits/s) transfers. The controller is actually a dual-role
device (DRD) controller which can operate as host or device during point-to-point
communications with USB Host, Device, or OTG equipment. It fully supports the OTG
standard’s session request protocol (SRP) and host negotiation protocol (HNP).
24.2.
Main features
The main features include three categories: general, host-mode and device-mode features.
24.2.1.
General features

Fully compliant with the On-The-Go Supplement to the USB 2.0 Specification

In PHY, it includes fully support for the optional protocol detailed in the On-The-Go
Supplement Rev 1.3 specification


–
Supports the insertion A-B type device identification (USB ID line)
–
Supports Host Negotiation Protocol (HNP) and Session Request Protocol (SRP)
–
Allows host to turn VBUS off to conserve battery power in OTG applications
–
Supports VBUS level detection with internal comparators
–
Supports dynamic switching between host and device roles
It can be configured by software to operate as:
–
USB OTG_FS dual role device (host or device)
–
USB FS/LS host (A-device)
–
USB FS Peripheral (B-device)
It supports SOF (at FS) and keep-alive (at LS) by
752