This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430 USB MSC Project

Other Parts Discussed in Thread: MSP430F5638

Hi,

I'm using the MSP430F5638, and I try to use the USB MSCexample project. Currently it's running, but the download performance is still low. The detection of the USB system in Windows is fast. So, there is my question, what parameter would be the best. My System is running a 20MHz on XT2.

So I change the example:

#define USB_MCLK_FREQ 20000000                           // MCLK frequency of MCU, in Hz
#define USB_PLL_XT 2                                                     // Defines which XT is used by the PLL (1=XT1, 2=XT2)
#define USB_XT_FREQ_VALUE 20.0                             // Indicates the freq of the crystal on the oscillator indicated by USB_PLL_XT
#define USB_XT_FREQ USBPLL_SETCLK_19_2       // Indicates the freq of the crystal on the oscillator indicated by USB_PLL_XT
#define USB_DISABLE_XT_SUSPEND 1                      // If non-zero, then USB_suspend() will disable the oscillator
                                                                                                // that is designated by USB_PLL_XT; if zero, USB_suspend won't
                                                                                                // affect the oscillator
#define USB_DMA_CHAN 0x00                                       // Set to 0xFF if no DMA channel will be used 0..7 for selected DMA channel

  • Maybe you should switch to Stellaris for better performance? Are you sure that USB peripheral is the bottleneck?

  • Roger Heil said:
    I'm using the MSP430F5638, and I try to use the USB MSCexample project. Currently it's running, but the download performance is still low.

    Have you already compared your download performance with those listed in the MSP430 USB Developers Package benchmarks?

    The benchmarks for whatever release you are using can be found in the file "Release_Notes" in the top most folder. Here is a copy of the benchmarks from the v 3.11.00 release.

    MSC Performance (Double Buffering)

    Block Size Read (mb/sec) Write (mb/sec)
    4096 0.20 0.18
    8192 0.22 0.18
    16284 0.23 0.16
    32768 0.24 0.18
    65536 0.24 0.15
    131072 0.23 0.17
    262144 0.24 0.19
    524288 0.24 0.19

    MSC Performance

    Block Size Read (mb/sec) Write (mb/sec)
    4096 0.14 0.14
    8192 0.19 0.18
    16284 0.19 0.17
    32768 0.19 0.18
    65536 0.19 0.17
    131072 0.19 0.18
    262144 0.19 0.18
    524288 0.19 0.17

    BR,

    Mo.

**Attention** This is a public forum