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.

[参考译文] MSP432E401Y:无法在 MSP432E401AY 上运行 GPIO 模块

Guru**** 2555630 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/889779/msp432e401y-unable-to-operate-gpio-module-on-msp432e401ay

器件型号:MSP432E401Y

您好!

我一直在尝试使用 driverlib (无 RTOS)来控制 MSP432E401AY EVM 上的 GPIO 外设。 我要在初始化时附加一个代码段。 系统时钟被初始化10为120 MHz。  

void InitGpio (void){
SysCtlPeripheralEnable (SYSCTL_Periph_GPION);
GPIOIntDisable (GPIO_PORTN_BASE、GPIO_INT_PIN_4);
GPIOPadConfigSet (GPIO_PORTN_BASE、GPIO_PIN_4、GPIO_Strength _2mA、GPIO_PIN_TYPE_STD);
GPIODirModeSet (GPIO_PORTN_BASE、GPIO_PIN_4、GPIO_DIR_MODE_OUT);
GPIOPinTypeGPIOOutput (GPIO_PORTN_BASE、GPIO_PIN_4);
} 

我无法将数据写入 GPION 引脚4。  

我检查了"闪烁"示例、没有观察到初始化的任何主要差异。 我在这里缺少什么吗?