TWR-K80F150M : writing data duration into the sd card

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

TWR-K80F150M : writing data duration into the sd card

692 次查看
lacouturepatric
Contributor I
Hello,
I bought a TWR-K80F150M board. I downloaded the SDK software (SDK_2.2_TWR-K80F150M.zip). My project is to store 4 bit data every 20 Mhz into a SD card.

I use the library middleware/fatfs_0.12b and flexio for the acquisition.

I want to measure the duration of the writing data into the sd card in order to know if all data will be stored.
Is there any functions to use for knowing the duration between the start and the end of the writing data into sd card(kinetis K80) ?
For Exemple, something like get_time :
Time1 = get_time
//  write function FatFs - Generic FAT file system module  R0.12c
error = f_write(&g_fileObject, g_bufferWrite, sizeof(g_bufferWrite), &bytesWritten);
Time2 = get_time
Thank you in advance,
Regards
0 项奖励
回复
2 回复数

600 次查看
lacouturepatric
Contributor I

Thank you for your help,

Regards

Patrice

0 项奖励
回复

600 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi Lacouture,

You can start a timer before writing, stop and read it after that. FTM_StartTimer() and FTM_StopTimer() should be useful to you. You can get the time from FTMx_CNT register.

Regards

0 项奖励
回复