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.

MSP430F5528: USB using 6MHz crystal doesn't work

Part Number: MSP430F5528
Other Parts Discussed in Thread: MSP430WARE

Hello e2e,

there is an application using F5528 as USB keyboard, in F5529 EVM, the default crystal is 8MHz, but in customer board, because they have a lot of 6MHz crystal in stock, they plan to use 6MHz in this application, we changed the code in MSPware example as below.

and the windows report can not emulated USB device while USB is plugin.

we checked the crystal and it works well, it's an accurate 6MHz in scope capture.

Do i need modify any other code in this example?

Thanks.

C:\ti\msp\MSP430Ware_3_80_07_00\usblib430\MSP430_USB_Software\MSP430_USB_API\examples\HID_humanInterface\Traditional\H8_Keyboard

// Minumum Vcore setting required for the USB API is PMM_CORE_LEVEL_2 .
PMM_setVCore(PMM_CORE_LEVEL_2);
USBHAL_initPorts(); // Config GPIOS for low-power (output low)
USBHAL_initClocks(6000000); // Config clocks. MCLK=SMCLK=FLL=8MHz; ACLK=REFO=32kHz
USBHAL_initButtons(); // Init the two buttons
Keyboard_init(); // Init keyboard report
USB_setup(TRUE, TRUE); // Init USB & events; if a host is present, connect

__enable_interrupt(); // Enable global interrupts

  • Hello,

    in principle the 6MHz should work, but of course you need to adjust the PLL settings for the USB communication to achieve the required PLL operation at 48MHz and on the other hand you have to maintain the response time requirements on USB, means the state machine needs to be adjusted accordingly. This can be quite complex. When violating the timings the USB master would disconnect the USB device, and block it from further communication.

    Best regards

    Peter

  • Hi Peter,

    the issue is fixed, thanks for your information, i changed below code, and it works fine now.

    thank you.

**Attention** This is a public forum