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.
请教一下,这款芯片管脚复用输出,怎么设置,用库函数
要使P5.2管脚输出ACLK。怎么通过GPIO_setAsPeripheralModuleFunctionOutputPin()这个库函数设置啊。
我设置了并没有输出啊
void main(void) { WDT_A_hold(WDT_A_BASE); PMM_unlockLPM5(); // system_clock_init(); // CS_setDCOFreq(CS_DCORSEL_1, CS_DCOFSEL_2); // GPIO_setAsOutputPin(GPIO_PORT_P5,GPIO_PIN2); // GPIO_setOutputHighOnPin(GPIO_PORT_P5,GPIO_PIN2); // CS_setExternalClockSource(32768, 0); GPIO_setAsPeripheralModuleFunctionOutputPin(GPIO_PORT_P5,GPIO_PIN2,GPIO_TERNARY_MODULE_FUNCTION ); GPIO_setAsOutputPin(GPIO_PORT_P5,GPIO_PIN3); while(1) { GPIO_toggleOutputOnPin(GPIO_PORT_P5,GPIO_PIN3); __delay_cycles(100000); } }