前提是不用中断已经调好,spi工作正常,现在想用中断方式来写spi. SPI已经配置完毕。 SPI_SendBuf=Data1; SPI_Send_Num=Num1; spos=0; //SPI->DR =0; SPI_ITConfig(SPI_IT_TXE,ENABLE); 我希望是这句写好之后进入中断把我的data1发出去。中断内程序如下: INTERRUPT_HANDLER(SPI_IRQHandler, 10) { /* In order to detect unexpected events during development, it is recommended to set a breakpoint on the following instruction. */ SPI_ClearITPendingBit(SPI_IT_TXE); if(spos |
RE:关于stm8系统的SPI中断,求助
RE:关于stm8系统的SPI中断,求助