Hi all,
Recently I was checking the clock setting of our project. Some questions comes out in my mind.
Here are the questions:
1. The user manual states that we need to enable the 32 kHz clock for USB1_PHY. However, I found a comment in the function USB_DeviceClockInit with the following content inside. call POWER_DisablePD(kPDRUNCFG_PD_LDOUSBHS); /*!< Ensure xtal32k is on */
Do we need a xtal32k crystal for USB1? This is strange because I set up the osc32kHz in BOARD_BootClockPLL150M. You can see the following.
/*!< Configure RTC OSC */
POWER_EnablePD(kPDRUNCFG_PD_XTAL32K); /*!< Powered down the XTAL 32 kHz RTC oscillator */
POWER_DisablePD(kPDRUNCFG_PD_FRO32K); /*!< Powered the FRO 32 kHz RTC oscillator */
CLOCK_AttachClk(kFRO32K_to_OSC32K); /*!< Switch OSC32K to FRO32K */
CLOCK_EnableClock(kCLOCK_Rtc); /*!< Enable the RTC peripheral clock */
RTC->CTRL &= ~RTC_CTRL_SWRESET_MASK; /*!< Make sure the reset bit is cleared */
2. If we do need the xtal32k for USB1, what's the freq tolerance for it?
3. For xtal32M, it can support the frequency from 12M to 32M. For my project, the peripheral frequencies I need are all below 12 M (except for USB1). Is there any difference in power consumption if I choose 32M instead of 12M?
Thanks,
BR,
Peter