How to configure SPI CS

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

How to configure SPI CS

1,678 次查看
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,547 次查看
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,547 次查看
linhaiboyy
Contributor II

thanks for your help, I will try !

0 项奖励
回复

1,547 次查看
linhaiboyy
Contributor II

Hi,

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

0 项奖励
回复

1,547 次查看
igorpadykov
NXP Employee
NXP Employee

TXCNT in register ECSPIx_TESTREG.

1,547 次查看
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 项奖励
回复