Search found 2 matches
- Tue Jun 14, 2022 12:01 pm
- Forum: ESP-IDF
- Topic: ESP32 SPI slave,Failed to collect external AD value in real time during interrupt
- Replies: 0
- Views: 753
ESP32 SPI slave,Failed to collect external AD value in real time during interrupt
Hello everyone, I failed to collect external AD values in real time with ESP32 SPI slave. If you have relevant experience, any relevant information and suggestions may be helpful. Thank you! ESP32 is used as SPI slave machine to collect external AD data in real time. Every certain time, the data sou...
- Tue Jun 14, 2022 9:19 am
- Forum: ESP-IDF 中文讨论版
- Topic: ESP32 SPI-slave 用中断实时采集外部AD值失败的问题
- Replies: 0
- Views: 1041
ESP32 SPI-slave 用中断实时采集外部AD值失败的问题
大家好,我用ESP32 SPI slave实时采集外部AD值失败,若各位有相关经验,提供任何相关信息和建议都可能会帮到我,先在此表示感谢! 用ESP32作为SPI从机,实时采集外部AD数据,每隔一定时间,数据源转换完成通过DRDY引脚给ESP中断信号,ESP检测到中断后及时通过SPI实时读取AD值,需要在中断产生后马上响应并处理,若不及时读取将丢失数据 遇到的问题现象:AD数据输出时间仅32us左右,中断延迟响应,当处理中断执行中断函数时,AD数据已输出完毕已为时已晚,若无法及时处理数据,调用spi_slave_transmit读取出值全是0xFF 用示波器抓取波形,外部AD的时钟引脚和数据输...