I've updated _main to try and configure the mclk and smclk to 48 & 16MHz respectively, adding the SysTick LED blink and updating the UART BAUD rate for the smclk freq. #ifdef _ORIGINAL_ /* Set the core voltage level to VCORE1 */ MAP_PCM_setCoreVoltageLevel(PCM_VCORE1); /* Set 2 flash wait states for Flash bank 0 and 1*/ MAP_FlashCtl_setWaitState(FLASH_BANK0, 2); MAP_FlashCtl_setWaitState(FLASH_BANK1, 2); /* Initializes Clock System */ MAP_CS_setDCOCenteredFrequency(CS_DCO_FREQUENCY_48); MAP_CS_initClockSignal(CS_MCLK, CS_DCOCLK_SELECT, CS_CLOCK_DIVIDER_1 ); MAP_CS_initClockSignal(CS_HSMCLK, CS_DCOCLK_SELECT, CS_CLOCK_DIVIDER_1 ); MAP_CS_initClockSignal(CS_SMCLK, CS_DCOCLK_SELECT, CS_CLOCK_DIVIDER_1 ); MAP_CS_initClockSignal(CS_ACLK, CS_REFOCLK_SELECT, CS_CLOCK_DIVIDER_1); #else /* Enabling FPU for DCO Frequency calculation */ MAP_FPU_enableModule(); /* Setting the DCO Frequency to a non-standard 16MHz */ MAP_CS_setDCOFrequency(16000000); /* Configuring pins for peripheral/crystal usage */ MAP_GPIO_setAsPeripheralModuleFunctionOutputPin(GPIO_PORT_PJ, GPIO_PIN3 | GPIO_PIN2, GPIO_PRIMARY_MODULE_FUNCTION); /* Configuring pins for LED for output */ 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); /* Initializing SMCLK to DCO (effectively 16MHz) */ MAP_CS_initClockSignal(CS_HSMCLK, CS_DCOCLK_SELECT, CS_CLOCK_DIVIDER_1 ); MAP_CS_initClockSignal(CS_SMCLK, CS_DCOCLK_SELECT, CS_CLOCK_DIVIDER_1 ); MAP_CS_initClockSignal(CS_ACLK, CS_REFOCLK_SELECT, CS_CLOCK_DIVIDER_1); /* Configuring SysTick to trigger at 48000000 (MCLK is 48MHz so this will * make it toggle every 1.0s) */ MAP_SysTick_enableModule(); MAP_SysTick_setPeriod(48000000); MAP_Interrupt_enableSleepOnIsrExit(); MAP_SysTick_enableInterrupt(); #endif I used the MSP432Ware/driverlib/CS/cs_dco_frequency_tune and cs_hfxt_start examples for my changes. Observing the LED blink it seems to be flashing at 600 msec. interval (for 48MHz mclk). The UART output is still readable (for 16MHz smclk). BUT still no LCD output! what else can I try??? Thanks, Morris
↧