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

Thread: Teensy 4.0 -- Stream ADC0 and ADC 1 over SPI ( as slave?)

  1. #1
    Junior Member
    Join Date
    Jun 2019
    Posts
    13

    Teensy 4.0 -- Stream ADC0 and ADC 1 over SPI ( as slave?)

    Alright, not sure how many people are on the forum looking at what people are posting..
    I am coming up on some issues relating to the sparse documentation of teensy libraries.
    I'd like to use my teensy 4 as a slave streaming ADC0 over SPI to another device to process the ADC information at 12bit +1Msps.
    ADC1 will stream temperature information over the same SPI interface.

    I do not see any code for the teensy4 to livestream ADC information over SPI?
    Has an SPI slave mode for teensy 4 been developed yet?

  2. #2
    Senior Member+ MichaelMeissner's Avatar
    Join Date
    Nov 2012
    Location
    Ayer Massachussetts
    Posts
    3,672
    You might check out the Teensydunio 3.52 beta #3 thread in the announcements sub-forum. I recall there were some recent posts about getting ADC working on T4 and about SPI/DMA. I recall they were posted, but I don't know if it would help you.

  3. #3
    Junior Member
    Join Date
    Jun 2019
    Posts
    13
    Yes, I had a look at the documentation.... not the best.
    A couple of the examples actually couldn't compile properly. The SPI/DMA compiled but ended up messing up the data stream out from the T4s SPI outputs.

    Be honest, I am not overly impressed with the lack of documentation with the whole teensy environment.
    I have a group of students that initiated this gamma spectroscopy project a year ago and so far they haven't got very far as documentation around these boards is at best lacking.

    Even thinking about going PSoC, as at least the documentation is better.
    Last edited by MakerV; 05-05-2020 at 06:53 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
  •