SSDA013 August   2026 MSPM0G5117 , MSPM0G5187

 

  1.   1
  2. 1 Description
  3. 2 Required Peripherals
  4. 3 Compatible Devices
  5. 4 Design Steps
  6. 5 Design Considerations
  7. 6 Software Flowchart
  8. 7 Application Code
  9. 8 Data Flow Examples
  10. 9 Additional Resources
  11. 10Trademarks

Data Flow Examples

Scenario A: Host Writes 5 Bytes to Device

  1. Host sends HELLO via COM port
  2. tud_cdc_rx_cb() queues data
  3. Main loop: usb2uart_popTask() transmits via UART DMA
  4. UART hardware sends bytes with start/stop bits
  5. Device receives HELLO successfully

Scenario B: Device Sends Variable Length Data

  1. UART device sends DATA (4 bytes)
  2. Each byte triggers UART RX interrupt
  3. After 4th byte, 200us timeout fires
  4. uart2usb_pushTask() queues the 4-byte frame
  5. Main loop: uart2usb_popTask() sends to USB
  6. Host receives 4 bytes via COM port

Scenario C: Fast Burst Data (64 Bytes)

  1. UART device sends rapid stream
  2. Bytes accumulate in FIFO
  3. At 64 bytes, buffer-full triggers queuing
  4. uart2usb_popTask() sends full 64-byte frame to USB
  5. Host receives complete block