This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMDSCNCD28379D: How to write data to SD card

Part Number: TMDSCNCD28379D
Other Parts Discussed in Thread: C2000WARE

Tool/software:

I don't know how to write data to SD card using TMDSCNCD28379D. Which sample program in C2000Ware should I refer to?

And I would like to write the motor speed calculation data to the SD card. Since the resolution of the speed calculation is 100 µs, I need to get data every 100 µs before writing it to the SD card. To accomplish this, I will use a buffer: data will be stored in the buffer until the buffer is full, at which point the contents of the buffer will be written to the SD card. Will this approach allow me to write data to the SD card efficiently?

  • Hi,

    Though there is no example for F2837xD, you can refer to the examples at [C2000Ware_Installation]\driverlib\f28003x\examples\sdspi (only device specific configurations need to be changed when porting this example for your board)

    The buffer approach should work. In case you are seeing data loss when writing to SD Card, it may be because the next readings are being written on top of the old ones before the SD write is complete. In that case, you can consider using 2 (or more) buffers.

    Thanks,

    Arnav