sdmmc infinite write mode

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

sdmmc infinite write mode

跳至解决方案
840 次查看
arvindprasad
Contributor II

Im using an LPC 43s67 for data logger application.

I have to collect data at 1000hz frequency and i am able to do it.

I write the data to sd card sector wise, without file system and it takes about 4ms for 512 bytes using .PFA my code snippet

 

Since the sd write takes 4 ms I will be missing 4 sensor read cycles.

So i wanted to open the sd card once in infinite write mode and then just pass data to the fifo, thereby consuming least time.

Original Attachment has been moved to: sd-snippet.c.zip

标记 (4)
0 项奖励
1 解答
654 次查看
arvindprasad
Contributor II

I have found the solution to this problem.

Once the single block write or multiple block write command is executed, then the sd controller takes care of writing the data to the sd card in a non blocking way. So our core can carry on with its execution and not wait for sd card write to complete. In this way,I am only taking about 70us to initiate the write process and move on. Compared to 4ms time taken for write to complete.

To do this, just comment the wait for response function in sdmmc_execute_command() function. I have attached the code snippetsdmmc 1.JPGsdmmc2.JPG

在原帖中查看解决方案

0 项奖励
3 回复数
655 次查看
soledad
NXP Employee
NXP Employee

Hi,

Thank you for your input!

Regards

Soledad

0 项奖励
655 次查看
arvindprasad
Contributor II

Your welcome!

0 项奖励
655 次查看
arvindprasad
Contributor II

I have found the solution to this problem.

Once the single block write or multiple block write command is executed, then the sd controller takes care of writing the data to the sd card in a non blocking way. So our core can carry on with its execution and not wait for sd card write to complete. In this way,I am only taking about 70us to initiate the write process and move on. Compared to 4ms time taken for write to complete.

To do this, just comment the wait for response function in sdmmc_execute_command() function. I have attached the code snippetsdmmc 1.JPGsdmmc2.JPG

0 项奖励