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.
// // GPIO16 is the SPISIMOA pin. // GPIO_setMasterCore(16, GPIO_CORE_CPU1); GPIO_setPinConfig(GPIO_16_SPIA_SIMO); GPIO_setPadConfig(16, GPIO_PIN_TYPE_PULLUP); GPIO_setQualificationMode(16, GPIO_QUAL_ASYNC); // // GPIO17 is the SPISOMIA. // GPIO_setMasterCore(17, GPIO_CORE_CPU1); GPIO_setPinConfig(GPIO_17_SPIA_SOMI); GPIO_setPadConfig(17, GPIO_PIN_TYPE_PULLUP); GPIO_setQualificationMode(17, GPIO_QUAL_ASYNC); // // GPIO18 is the SPICLKA. // GPIO_setMasterCore(18, GPIO_CORE_CPU1); GPIO_setPinConfig(GPIO_18_SPIA_CLK); GPIO_setPadConfig(18, GPIO_PIN_TYPE_PULLUP);
你好:
在配置SPI引脚参数时,例程为什么把所有引脚都配置成上拉? 这里的上拉是否有意义? 我尝试过将时钟引脚和MOSI引脚配置为推挽,MISO引脚配置为浮空输入,SPI也可以正常工作
是C:\ti\c2000\C2000Ware_4_01_00_00\driverlib\f2838x\examples\c28x\spi下的spi_ex3_external_loopback以及spi_ex6_eeprom吗?我并没有在这两个例程中找到相应语句。
一般来说,如果管脚或信号线需要配置成上拉的,要配置成上拉;其它的管脚设置成上拉只是为了给它一个确定的状态,没有什么特殊意义。
C:\ti\c2000\C2000Ware_4_01_00_00\driverlib\f2838x\examples\c28x\spi下的spi_ex3_external_loopback以及spi_ex6_eeprom
你是否找到了SPI 引脚初始化部分?方便贴出来吗
请看这个地址C:\ti\c2000\C2000Ware_3_03_00_00\driverlib\f2838x\examples\c28x\spi
第五和第六个例子中