公告

大中华汽车电子生态圈社区并入开发者社区- 更多资讯点击此

Tip / 登入 to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
小曹
Level 1
Level 1
First question asked
使用TC234的SPI1做从模式,主机波特率500K,发送了5字节,但是从模式的SPI1中断仅产生一次,只能接收到1字节,是不是我软件配置有问题?void MC33771_QSPI_SlaveInit(void) { IfxQspi_SpiSlave_Config spiSlaveConfig; IfxQspi_SpiSlave_initModuleConfig(&spiSlaveConfig, &MODULE_QSPI1); spiSlaveConfig.base.mode = SpiIf_Mode_slave; spiSlaveConfig.base.maximumBaudrate = 10000000; spiSlaveConfig.base.txPriority = ISR_PRIORITY_QSPI1_TX; spiSlaveConfig.base.rxPriority = ISR_PRIORITY_QSPI1_RX; spiSlaveConfig.base.erPriority = ISR_PRIORITY_QSPI1_ER; spiSlaveConfig.base.isrProvider = IfxCpu_Irq_getTos(IfxCpu_getCoreIndex()); spiSlaveConfig.pins = &slave_qspi_pins; spiSlaveConfig.protocol.clockPolarity = SpiIf_ClockPolarity_idleLow; spiSlaveConfig.protocol.shiftClock = SpiIf_ShiftClock_shiftTransmitDataOnTrailingEdge; spiSlaveConfig.protocol.parityMode = Ifx_ParityMode_odd; IfxQspi_SpiSlave_initModule(&mc33771_salve_qspi, &spiSlaveConfig); }
0 点赞
6 回复数
凌风2018_版主_
Level 4
你是一次发送5字节的数据,还是每次发送1字节发送5次呢?前者的话当然是一次中断
0 点赞
xiaobuy
Level 3
Level 3
25 replies posted 10 replies posted 5 replies posted
SPI具体发什么命令从哪找?
0 点赞
Alexboo
Level 4
Level 4
100 replies posted 50 replies posted 25 replies posted
留意一下
0 点赞
ZERO_GO
Level 6
Level 6
5 sign-ins Welcome!
从代码看
0 点赞
阳东
Level 5
Level 5
10 comments on blog 5 comments on blog First comment on blog
学习一下
0 点赞
liliWinner
Level 6
Level 6
500 replies posted 250 replies posted 100 replies posted
类似问题 不知道咋搞
0 点赞