Hello,
can anyone send the code example to setup USB as CDC and to setup RTC battery backup in a same design?
Louis
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.
Hello,
can anyone send the code example to setup USB as CDC and to setup RTC battery backup in a same design?
Louis
Hi Ryan,
The attached zip file is the code run on MSP430F5638, missing are the USB_API, USB_application, USB_config_USB_Core_Lib folders. they are same as MSP430ware_1_25_00_29 and also, missing MSP430 driverlib, they are same as msp430_1_25_00_29 driverlib\5xx_6xx files.
other build errors, you could remove them all out. the key is in interrupt code, the RTC 1 seconds interrupt, it not interrupt on our board without JTAG/desug starts, with JTAG/debug starts, it can generates the interrupts. the goal is to calibrate XT1 output,, keep the battery on the device to backup the system clock. when power apply to the hardware, MSP430F5638 generates the 1 seconds interrupt to keep the system time run correctly.
right now, two issues, first is clock output on ACLK (Port6 pin2), not output waveform if jTAG/debug did not start; The second is RTC 1 second interrupt, it does not generates if JTAG/Debug did not start on our board.
If you needs other information or has other questions, let me know, I have a work e-mail at xliu@newgateinstruments.com.toRyan1.zip
xuedong
**Attention** This is a public forum