LPC546xx SPI SSEL deasserts problem

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

LPC546xx SPI SSEL deasserts problem

1,960 次查看
sharads
Contributor I

I am using LPC54606 interfacing ADS8668 over SPI. Flexcomm2 (PIO1_23 to PIO1_26) is being used for the same with SSEL0. I am using MCUXpresso IDE and SPI driver provided in SDK.

I observed that even after transmit is over CS/SSEL0 pin remains low. (SSEL0 pin remains low all the time).

Due to this ADC is not able to start the conversion and so on as it requires CS to go from HIGH to LOW.

Please suggest how can CS/SSEL0 deasserts itself when there is not data transfer over SPI.

标记 (1)
0 项奖励
回复
3 回复数

1,862 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello  Sharad Shinde ,

We need to set the End of Transfer (EOT) to 1 in SPI FIFOWR register.This piece of data is treated as the end of a transfer. SSEL will be deasserted at the end of this piece of data.

pastedImage_1.png

You can find the code in SDK  SPI demo: 

pastedImage_3.png

Hope it helps,


Have a great day,
TIC

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

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复

1,862 次查看
sharads
Contributor I

Thanks you very much Alice_yang.

Yes, I did the changes as per your suggestion and it worked for me.

Great....

Regards,

Sharad

0 项奖励
回复

1,862 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

OK, welcome!


Have a great day,
TIC

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

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复