Part Number: TMS320F28069M
Tool/software: Code Composer Studio
I have modified the 28069 usb_device_bulk example code to fit into my application. I use it to transfer periodic ADC data (sampling at 1MHz) to PC host.
But I found that the throughput is about 5Mbps (measured with a scope on usb data line), which is less than half the full speed 12Mbps.
I am not sure if the usb_device_bulk is using double-packet buffering? If not, how to modify it?
I think the max packet size is fixed at 64B, so at least I need to change this
#define DATA_IN_EP_FIFO_SIZE USB_FIFO_SZ_64
to
#define DATA_IN_EP_FIFO_SIZE USB_FIFO_SZ_128
Any other configure I need to change?
Another question: Interrupts also affects the USB throughput, so I think using DMA would improve the USB speed. Does anyone know how to do this?
Thanks in advance
Ning