TWR-K80F150M : writing data duration into the sd card

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

TWR-K80F150M : writing data duration into the sd card

693件の閲覧回数
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 返答(返信)

601件の閲覧回数
lacouturepatric
Contributor I

Thank you for your help,

Regards

Patrice

0 件の賞賛
返信

601件の閲覧回数
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 件の賞賛
返信