28-36
MC9328MX1 Reference Manual
MOTOROLA
USB Device Port
To download the configuration data, perform the following steps:
1. Verify that the CFG bit (in the USB_DADR register) is set. This ensures that the UDC is fully
reset and is ready to take data.
2. Write the endpoint buffers (EnfPtBufs) to the USB_DDAT register. (the first byte written is
EPn[39:32] and the last byte written is EPn[7:0]). After writing each byte, and before
performing any other operation on the peripheral, verify that the BSY bit (in the
USB_DADR register) is clear.
3. After writing all endpoint buffer configuration bytes, check the CFG bit of the USB_DADR
to verify that the configuration download is complete. CFG changes from 1 to 0 after the
last byte is loaded into the UDC.
Table 28-25. ENDPTBUF—UDC Endpoint Buffers Format
Bit/Field
Type
Description
[39:36]
EPNUM
Logical Endpoint Number
[35:34]
CONFIG
Configuration Number (maximum of 2 configurations: 1 and 2)
[33:32]
INTERFACE
Interface Number (maximum of 4 interfaces)
[31:29]
ALTSETTING
Alternate Setting Number (maximum of 8 alternate settings)
[28:27]
TYPE
Type of Endpoint:
00 = Control
01 = Isochronous
10 = Bulk
11 = Interrupt
[26]
DIR
Direction of the Endpoint:
0 = OUT endpoint
1 = IN endpoint
[25:16]
MAXPKTSIZE
Maximum packet size for the endpoint
0x08 = 8 bytes
0x10 = 16 bytes
0x20 = 32 bytes
0x40 = 64 bytes
[15:14]
TRXTYP
These bits must be set to 00 for endpoint 0, and 11 for all other
endpoints.
[13:3]
Reserved
Reserved
[2:0]
FIFONUM
This field maps the endpoint to one of the USB Core module’s
hardware FIFOs. Multiple UDC endpoints can map to a single
hardware FIFO. It is up to the software to monitor and control any
data hazards related to this type of operation in this way:
The hardware FIFOs that are available are:
FIFO0 (32 bytes)
FIFO1 (64 bytes)
FIFO2 (64 bytes)
FIFO3 (32 bytes)
FIFO4 (32 bytes)
FIFO5 (32 bytes)
Summary of Contents for DragonBall MC9328MX1
Page 68: ...1 12 MC9328MX1 Reference Manual MOTOROLA Introduction ...
Page 86: ...2 18 MC9328MX1 Reference Manual MOTOROLA Signal Descriptions and Pin Assignments ...
Page 116: ...3 30 MC9328MX1 Reference Manual MOTOROLA Memory Map ...
Page 126: ...4 10 MC9328MX1 Reference Manual MOTOROLA ARM920T Processor ...
Page 160: ...8 8 MC9328MX1 Reference Manual MOTOROLA System Control ...
Page 272: ...13 32 MC9328MX1 Reference Manual MOTOROLA DMA Controller ...
Page 281: ...Programming Model MOTOROLA Watchdog Timer Module 14 9 ...
Page 282: ...14 10 MC9328MX1 Reference Manual MOTOROLA Watchdog Timer Module ...
Page 300: ...15 18 MC9328MX1 Reference Manual MOTOROLA Analog Signal Processor ASP ...
Page 438: ...18 16 MC9328MX1 Reference Manual MOTOROLA Serial Peripheral Interface Modules SPI 1 and SPI 2 ...
Page 478: ...19 40 MC9328MX1 Reference Manual MOTOROLA LCD Controller ...
Page 574: ...21 32 MC9328MX1 Reference Manual MOTOROLA Memory Stick Host Controller MSHC Module ...
Page 598: ...23 16 MC9328MX1 Reference Manual MOTOROLA Real Time Clock RTC ...
Page 670: ...24 72 MC9328MX1 Reference Manual MOTOROLA SDRAM Memory Controller ...
Page 726: ...25 56 MC9328MX1 Reference Manual MOTOROLA SmartCard Interface Module SIM ...
Page 736: ...26 10 MC9328MX1 Reference Manual MOTOROLA General Purpose Timers ...
Page 854: ...29 18 MC9328MX1 Reference Manual MOTOROLA I2C Module ...
Page 900: ...30 46 MC9328MX1 Reference Manual MOTOROLA Synchronous Serial Interface SSI ...
Page 942: ...32 26 MC9328MX1 Reference Manual MOTOROLA GPIO Module and I O Multiplexer IOMUX ...