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