PSoC CY8CTMG20x and CY8CTST200 TRM, Document No. 001-53603 Rev. *C
171
Full-Speed USB
20.3
Register Definitions
The following registers are related to Full-Speed USB in the PSoC device. For a complete table of the Full-Speed USB regis-
ters, refer to the Registers table
Summary Table of the System Resource Registers on page 106
. Register bits that are grayed
out in this document are reserved bits and are not detailed in the register descriptions that follow. Always write reserved bits
with a value of ‘0’.
20.3.1
USB_SOF0 Register
The USB Start of Frame Registers (USB_SOF0 and
USB_SOF1) provide access to the 11-bit SOF frame num-
ber. Start of frame packets are sent from the host (for exam-
ple, the PC) every 1 ms. For more information, see the
Universal Serial Bus Specification, revision 2.0
.
Bits 7 to 0: Frame Number.
The USB_SOF0 register has
the lower 8 bits [7:0] and the USB_SOF1 register has the
upper 3 bits [10:8] of the SOF frame number.
For additional information, refer to the
and the
20.3.2
USB_CR0 Register
The USB Control Register 0 (USB_CR0) is used to set the
PSoC’sUSB address and enable the USB system resource.
All bits in this register are reset to zero when a USB bus
reset interrupt occurs.
Note
Set the IMO frequency to 24 MHz and enable the 48
MHz clock in the OSC_CR2 register before USB is enabled.
See IMO_TR and CPU_SCR1 registers for selecting IMO
frequency as 24 MHz.
Bit 7: USB Enable.
This bit enables the PSoC device to
respond to USB traffic. ‘0’ is USB disabled. The device does
not respond to USB traffic. ‘1’ is USB enabled.
Bits 6 to 0: Device Address[6:0].
These bits specify the
USB device address to which the SIE responds. This
address must be set by firmware and is specified by the
USB host with a SET ADDRESS command during USB enu-
meration. This value must be programmed by firmware
when assigned during enumeration. It is not set automati-
cally by the hardware.
For additional information, refer to the
Address
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Access
0,31h
Frame Number[7:0]
R : 00
0,32h
Frame Number[10:8]
R : 0
Address
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Access
0,33h
USB Enable
Device Address[6:0]
RW : 00
Содержание PSoC CY8CTMG20 Series
Страница 4: ...4 Contents Overview Feedback...
Страница 26: ...26 PSoC CY8CTMG20x and CY8CTST200 TRM Document No 001 53603 Rev C Section B PSoC Core Feedback...
Страница 54: ...54 PSoC CY8CTMG20x and CY8CTST200 TRM Document No 001 53603 Rev C Interrupt Controller Feedback...
Страница 62: ...62 PSoC CY8CTMG20x and CY8CTST200 TRM Document No 001 53603 Rev C General Purpose I O GPIO Feedback...
Страница 82: ...82 PSoC CY8CTMG20x and CY8CTST200 TRM Document No 001 53603 Rev C Sleep and Watchdog Feedback...
Страница 134: ...134 PSoC CY8CTMG20x and CY8CTST200 TRM Document No 001 53603 Rev C I2C Slave Feedback...
Страница 142: ...142 PSoC CY8CTMG20x and CY8CTST200 TRM Document No 001 53603 Rev C System Resets Feedback...
Страница 160: ...160 PSoC CY8CTMG20x and CY8CTST200 TRM Document No 001 53603 Rev C SPI Feedback...
Страница 182: ...182 PSoC CY8CTMG20x and CY8CTST200 TRM Document No 001 53603 Rev C Full Speed USB Feedback...
Страница 186: ...186 PSoC CY8CTMG20x and CY8CTST200 TRM Document No 001 53603 Rev C Section E Registers Feedback...
Страница 302: ...302 PSoC CY8CTMG20x and CY8CTST200 TRM Document No 001 53603 Rev C Glossary Feedback...