LPC55S16 SPI Communication issue

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

LPC55S16 SPI Communication issue

跳至解决方案
364 次查看
jmorel
Contributor II

hello i've modified the library to use the spi with gpio pins but im unable to get communication. after probing the bus i noticed that the Mosi line idles lows and our select Is triggering before the Mosi rises to begin transmission.

jmorel_0-1710529526921.png

is there a way to set the Mosi to idle high instead of low or is there a flag that is set to tell me when the transmission is going to begin i.e. once the Mosi exits idle.

 

标签 (1)
标记 (3)
0 项奖励
回复
1 解答
335 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

I suppose that the SPI is in master mode, in the case, the MOSI, /CS and SCK are output signals. while the /CS(chip select) is high, I suppose that the MOSI is float, because there is not data transfer during the time, it does matter whether the MOSI is high or low. When the /CS is low, the MOSI pin is driven by master, it represents the data with the SCK.

If you want the MOSI signal is high when the /CS is high, I suppose you can try to connect a 10K ohm pull-up resistor on the MOSI pin, pls have a try.

Hope it can help you

BR

XiangJun Rong

 

在原帖中查看解决方案

0 项奖励
回复
1 回复
336 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

I suppose that the SPI is in master mode, in the case, the MOSI, /CS and SCK are output signals. while the /CS(chip select) is high, I suppose that the MOSI is float, because there is not data transfer during the time, it does matter whether the MOSI is high or low. When the /CS is low, the MOSI pin is driven by master, it represents the data with the SCK.

If you want the MOSI signal is high when the /CS is high, I suppose you can try to connect a 10K ohm pull-up resistor on the MOSI pin, pls have a try.

Hope it can help you

BR

XiangJun Rong

 

0 项奖励
回复