SPI not Reading first byte
显示 更早的评论
We've noticed that when using the Master SPI Read block (STM32) it is not outputing the very first byte.
The problem is that all we need is the first 2 bytes of every Read request from a sensor, and all we can get is byte 2 and more.
We believe it may be writing something on the MOSI line on the first trigger, which causes it to ignore the first incoming byte on the MISO line, which is all we are interested in (MOSI line not even connected).
Using an oscilloscope we can see the first byte is transmitted from the sensor, but no matter what configuration is set on the SPI_Read block, it is not part of the array exiting the block?
Is there a way of accessing this blocks core code, in order to disable whatever transmission is occuring on the first byte?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Signal Monitoring and Parameter Tuning 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
