Part Number: MSP432P401R
无
Susan Yang:
我们有几个演示可供您参考:
https://www.ti2k.com/wp-content/uploads/ti2k/DeyiSupport_OtherMCU_node
这些示例使用了我们的一些 Booster Packs,例如 EDUMKII。在main.c中可以找到时钟系统初始化(EDUMKII Accelerometer demo)
void main(void) {/* Halting WDT and disabling master interrupts */MAP_WDT_A_holdTimer();MAP_Interrupt_disableMaster();/* 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);