Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 1 of 1

Thread: datalogging/DMA SDIO on Teensy 3.6?

  1. #1
    Junior Member
    Join Date
    May 2017
    Posts
    15

    datalogging/DMA SDIO on Teensy 3.6?

    I am wondering if there are any update on examples written on using the SD built in with DMA. This is for a data logging application.

    From here: https://forum.pjrc.com/threads/43834...-5-3-6-SDIO-SD

    It seemed that it didn't work consistently with DMA before?

    My digital converter is SPI based and a falling edge on a pin indicates data availability. I currently timestamp the microseconds in an interrupt on falling edge and pull the data by transferring a SPI instruction to read the data in the main loop. The data is 28 bit and I would like a sample rate of about 44kHz (which the converter can do).

    Is logging data to the SD from a buffer with DMA the best solution for continuous sampling? Or do I read the data with SPI and DMA and write the data in the main loop (DMASPI library)?

    Sorry, if this question has been repeated before but I can't seem to find a satisfying answer on the forum.

    Thanks.
    Last edited by hmpws; 10-26-2017 at 01:25 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •