当我通过SPI将任何get或set命令从micro发送到L6470时,L6470总是响应micro发送的命令字节。它应该是发送获取数据的MSB,或者是为设置命令发送0字节。有人可以帮忙吗?我正在使用模式3
如果不清楚,我会得到一个具体的例子。系统复位后,微发送Get Config字节为0x38,并期望接收0x2E88。因此,一旦0x38由micro发送,微发送0并期望接收m***,即0x2E。相反,微接收0x38。谁能解释一下。谢谢!
以上来自于谷歌翻译
以下为原文
When I send any get or set command from micro to L6470 via SPI, the L6470 always responds with the command byte sent by the micro. It should be either sending the MSB of the get data or a 0 byte for a set command . Can anyone help? I'm using mode 3
In case this isn't clear I'll get a specific example. After reset of system, micro sends Get Config byte of 0x38 and expects to receive 0x2E88. So once 0x38 is sent by micro, the micro sends 0 and expects to receive m*** which is 0x2E. Instead the micro receives 0x38. Can anyone explain. Thanks!