This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
工具与软件:
如果从器件中只有一个 TPL0501、CS 引脚能否直接接地? 我曾尝试过此操作、发现无法与 MCU 通信。
下面是我的 SPI 通信代码。
空 SPI_WT (无符号字符数据)
{
unsigned char n;
SPI_DELAY ();
for (n=0;n<8;n++)
{
SPI_SCK=0;
SPI_DELAY ();
if (数据和0x80)
SPI_DIN=1;
设计
SPI_DIN=0;
SPI_SCK=1;
WT_Data<<=1;
SPI_DELAY ();
}
}
嗨、Hailong、
否、CS 不能接地。 您必须遵循数据表中的时序图。 TPL 在 CS 的上升沿更新。
此致!
Katlynne Jones