i.MX6 SPI clocking

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

i.MX6 SPI clocking

2,681件の閲覧回数
davidmüller
Contributor I

Hello

As far as i can see, the i.MX6 ECSPI controller starts clocking after the CS goes low and stops before CS goes high. Unfortunately this seems to confuse some SPI devices. Is there a (undocumented) way to configure the ECSPI controller to start clocking before the CS goes low or to provide a continuous clock?

ラベル(1)
タグ(2)
0 件の賞賛
返信
3 返答(返信)

2,148件の閲覧回数
terrykelleher
Contributor I

This is the way SPI is supposed to operate. SCLK is ignored by a SPI Slave unless the SS# is asserted. Starting the clock early would have no good impact, and might cause issues if the first falling edge occurs coincidentally with the falling SS#.

I cannot imagine you would be able to take over the SCLK with GPIO, as the SPI Master needs to insure that data is ready prior to the falling clock edge. An independent clock would be out of sync.

Terry

0 件の賞賛
返信

2,148件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi David

you can use GPIO as CS,

there are no other undocumented settings, all are given in RM.

Best regards

chip

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

2,148件の閲覧回数
davidmüller
Contributor I

Thanks for your fast answer but I think I would rather need to set up the CLK line as GPIO to achieve a running clock before CS goes low. Unfortunately this contradicts the concept of having a dedicated SPI controller hardware.:smileysad:

0 件の賞賛
返信