hi Amit Ashara, is there any result about this issue? and i found a strange phenomenon, if i using the code which used for configure the passive crystal to configure the active crystal, the HFXTIFG clears,and the frequency is exactly correct. here is my code(the crystal is active crystal with which part number i have sent to you). /* DriverLib Includes */ #include /* Standard Includes */ #include #include int main(void) { /* Halting the Watchdog */ MAP_WDT_A_holdTimer(); //![Simple CS Config] /* Configuring pins for peripheral/crystal usage and LED for output */ MAP_GPIO_setAsPeripheralModuleFunctionOutputPin(GPIO_PORT_PJ, GPIO_PIN3 | GPIO_PIN2, GPIO_PRIMARY_MODULE_FUNCTION); MAP_GPIO_setAsOutputPin(GPIO_PORT_P1, GPIO_PIN0); /* Just in case the user wants to use the getACLK, getMCLK, etc. functions, * let's set the clock frequency in the code. */ CS_setExternalClockSourceFrequency(32000,48000000); /* Starting HFXT in non-bypass mode without a timeout. Before we start * we have to change VCORE to 1 to support the 48MHz frequency */ MAP_PCM_setCoreVoltageLevel(PCM_VCORE1); MAP_FlashCtl_setWaitState(FLASH_BANK0, 2); MAP_FlashCtl_setWaitState(FLASH_BANK1, 2); CS_startHFXT(false); /* Initializing MCLK to HFXT (effectively 48MHz) */ MAP_CS_initClockSignal(CS_MCLK, CS_HFXTCLK_SELECT, CS_CLOCK_DIVIDER_1); //![Simple CS Config] /* Configuring SysTick to trigger at 12000000 (MCLK is 48MHz so this will * make it toggle every 0.25s) */ MAP_SysTick_enableModule(); MAP_SysTick_setPeriod(12000000); MAP_Interrupt_enableSleepOnIsrExit(); MAP_SysTick_enableInterrupt(); /* Enabling MASTER interrupts */ MAP_Interrupt_enableMaster(); while (1) { MAP_PCM_gotoLPM0(); } } void SysTick_Handler(void) { MAP_GPIO_toggleOutputOnPin(GPIO_PORT_P1, GPIO_PIN0); }
↧