TWR-K80F150M : writing data duration into the sd card

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

TWR-K80F150M : writing data duration into the sd card

478 Views
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 Kudos
2 Replies

386 Views
lacouturepatric
Contributor I

Thank you for your help,

Regards

Patrice

0 Kudos

386 Views
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 Kudos