English
Language : 

EFM32WG Datasheet, PDF (282/834 Pages) List of Unclassifed Manufacturers – The EFM32WG Wonder Gecko is the ideal choice for demanding 8-, 16-, and 32-bit energy sensitive applications.
...the world's most energy friendly microcontrollers
At this point, the device is ready to receive SOF packets and is configured to perform control transfers
on control endpoint 0.
15.4.4.1.3 Initialization on SetAddress Command
This section describes what the application must do when it receives a SetAddress command in a SETUP
packet.
1. Program the USB_DCFG register with the device address received in the SetAddress command
2. Program the core to send out a status IN packet.
15.4.4.1.4 Initialization on SetConfiguration/SetInterface Command
This section describes what the application must do when it receives a SetConfiguration or SetInterface
command in a SETUP packet.
1. When a SetConfiguration command is received, the application must program the endpoint registers
to configure them with the characteristics of the valid endpoints in the new configuration.
2. When a SetInterface command is received, the application must program the endpoint registers of
the endpoints affected by this command.
3. Some endpoints that were active in the prior configuration or alternate setting are not valid in the new
configuration or alternate setting. These invalid endpoints must be deactivated.
4. For details on a particular endpoint’s activation or deactivation, see Endpoint Activation (p. 282)
and Endpoint Deactivation (p. 282) .
5. Unmask the interrupt for each active endpoint and mask the interrupts for all inactive endpoints in
the USB_USB_DAINTMSK register.
6. Set up the Data FIFO RAM for each FIFO. See Data FIFO RAM Allocation (p. 327) for more detail.
7. After all required endpoints are configured, the application must program the core to send a status
IN packet.
At this point, the device core is configured to receive and transmit any type of data packet.
15.4.4.1.5 Endpoint Activation
This section describes the steps required to activate a device endpoint or to configure an existing device
endpoint to a new type.
1. Program the characteristics of the required endpoint into the following fields of the USB_DIEPx_CTL
register (for IN or bidirectional endpoints) or the USB_DOEPx_CTL register (for OUT or bidirectional
endpoints).
• Maximum Packet Size
• USB Active Endpoint = 1
• Endpoint Start Data Toggle (for interrupt and bulk endpoints)
• Endpoint Type
• TxFIFO Number
2. Once the endpoint is activated, the core starts decoding the tokens addressed to that endpoint and
sends out a valid handshake for each valid token received for the endpoint.
15.4.4.1.6 Endpoint Deactivation
This section describes the steps required to deactivate an existing endpoint.
1. In the endpoint to be deactivated, clear the USB Active Endpoint bit in the USB_DIEPx_CTL
register (for IN or bidirectional endpoints) or the USB_DOEPx_CTL register (for OUT or bidirectional
endpoints).
2. Once the endpoint is deactivated, the core ignores tokens addressed to that endpoint, resulting in
a timeout on the USB.
2013-05-08 - Wonder Gecko Family - d0233_Rev0.50
282
www.energymicro.com