Problem in LPSPI interfacing of MIMXRT1020-EVK with PCF2129 using peripherals tools.

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

Problem in LPSPI interfacing of MIMXRT1020-EVK with PCF2129 using peripherals tools.

735 次查看
emb01_jtronix
Contributor II

I am interfacing PCF2129 RTC with MIMXRT1020 board using LPSPI in polling mode.I am using LPSPI_MasterTransferBlocking(LPSPI_1_PERIPHERAL, &xTxTransfer) function to read and write data. I can write data but I am facing problem while reading data. Only one data size is mention in this function. 

 I required different data size for transmit data and receive data how can I manage data size for both using LPSPI_MasterTransferBlocking(LPSPI_1_PERIPHERAL, &xTxTransfer)  function?

标签 (1)
0 项奖励
回复
1 回复

645 次查看
victorjimenez
NXP TechSupport
NXP TechSupport

Hello, 

The function LPSPI_MasterTransferBlocking can receive or transmit different data sizes. To do this you just need to modify the size_t variable inside the lpspi_transfer_t structure.  


Have a great day,
Victor

-------------------------------------------------------------------------------
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 项奖励
回复