How to configure SPI CS

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to configure SPI CS

731 Views
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.

Labels (2)
5 Replies

600 Views
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 Kudos

600 Views
linhaiboyy
Contributor II

thanks for your help, I will try !

0 Kudos

600 Views
linhaiboyy
Contributor II

Hi,

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

0 Kudos

600 Views
igorpadykov
NXP Employee
NXP Employee

TXCNT in register ECSPIx_TESTREG.

600 Views
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 Kudos