Datasheet
Universal Serial Bus Device Controller (S08USBV1)
MC9S08JM60 Series Data Sheet, Rev. 3
Freescale Semiconductor 317
When the USB module receives a USB token on an enabled endpoint, it interrogates the BDT. The USB
module reads the corresponding endpoint BD entry and determines if it owns the BD and corresponding
data buffer.
17.4.2.3 Buffer Descriptor Formats
The buffer descriptors (BDs) are groups of registers that provide endpoint buffer control information for
the USB module and the MCU. The BDs have different meanings based on who is reading the BD in
memory.
The USB module uses the data stored in the BDs to determine:
• Who owns the buffer in system memory
• Data0 or Data1 PID
• Release Own upon packet completion
• Data toggle synchronization enable
• How much data to be transmitted or received
• Where the buffer resides in the buffer RAM.
The microcontroller uses the data stored in the BDs to determine:
• Who owns the buffer in system memory
• Data0 or Data1 PID
• The received TOKEN PID
Table 17-21. USB RAM Organization
USB RAM
Offset
USB RAM Description of Contents
0x00
BDT
Endpoint 0 IN
Endpoint 0, OUT
Endpoint 1
Endpoint 2
Endpoint 3
Endpoint 4
Endpoint 5, Buffer EVEN
Endpoint 5, Buffer ODD
Endpoint 6, Buffer EVEN
0x1D Endpoint 6, Buffer ODD
0x1E RESERVED
0x1F RESERVED
0x20
0xFF
USB RAM available for endpoint buffers