How to configure SPI CS

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

How to configure SPI CS

1,680件の閲覧回数
linhaiboyy
Contributor II

Hi,

I am working on MX6q,use linux kernel 3.0.35.When I send data,use the oscilloscope to view CS signal,why I fill the ECSPIx_CONREG[BURST LENGTH] can only send 8 bits ,16 bits or 32 bits one time.Now I want to send more data one time,and the CS is low power, until the data  is send,  the CS is high power.

ラベル(2)
5 返答(返信)

1,549件の閲覧回数
linhaiboyy
Contributor II

Hi,

I am field TXCNT in register ECSPIx_TESTREG, I am send 4 byte one time,I can catch waveform. As follows,

pastedImage_3.png

But, I can not catch the CS is low  when send the 4 byte data. I am field TXCNT in register ECSPIx_TESTREG code,  As follows,

pastedImage_1.png

0 件の賞賛
返信

1,549件の閲覧回数
linhaiboyy
Contributor II

thanks for your help, I will try !

0 件の賞賛
返信

1,549件の閲覧回数
linhaiboyy
Contributor II

Hi,

I can not find where avoid TX FIFO become empty.Can you show it to me ?

0 件の賞賛
返信

1,549件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

TXCNT in register ECSPIx_TESTREG.

1,549件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi

to avoid CS go high one needs to make algorithm

in such way so avoid TX FIFO become empty untill

all bits will be sent.

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

0 件の賞賛
返信