Search results

  1. K

    OSH park purple Teensy 4.0

    Replying to myself, I see this morning that Paul has added the TEENSY4_AUDIO to the product page. I've placed my order. Thanks!
  2. K

    OSH park purple Teensy 4.0

    updated audio adapter Any update on this? The store page still says you're shipping Rev. C. Thanks.
  3. K

    Teensy LC: Trying to Link DMA Channels

    ... and then I fell into a pit for a month. I just now climbed out and sent Paul two pull requests. Thanks for reminding me. https://github.com/PaulStoffregen/cores/pull/74 https://github.com/PaulStoffregen/cores/pull/75
  4. K

    Quick Guide: Using printf() on Teensy ARM

    Here is an example sketch that uses printf() to write the serial port on an ARM-based Teensy. I did not see this documented anywhere. int Serial_write(void *cookie, const char *buf, int size) { for (int i = 0; i < size; i++) Serial.print(buf[i]); return size; } void setup() {...
  5. K

    Teensy LC: Trying to Link DMA Channels

    Thanks. As soon as I get a couple of independent "It works for me" confirmations, I'll package it up and stick it on GitHub. EDIT: if it works for you, do you see glitches? I found this resource, too. Writing a Library for Arduino Next up: I need a SPI slave driver for Teensy LC...
  6. K

    Teensy LC: Trying to Link DMA Channels

    I just noticed that the UniWS sketch initializes Serial. If you run it with no serial monitor, it hangs in setup().
  7. K

    Teensy LC: Trying to Link DMA Channels

    UniWS LED driver Here it is. The caveats: This is just a first draft. Not production quality. There is an annoying glitch in the LEDs every few seconds. I don't know what it is yet. The API is somewhere between the Adafruit_Neopixel and OctoWS2811. Not quite compatible with either...
  8. K

    Teensy LC: Trying to Link DMA Channels

    Hi, manitou. The Teensyduino runtime has already programmed the timer-counters for PWM output. You're right that the FTM1_MOD register is 0xBFFF; I forgot that detail and got the speed wrong in my comments above. I did not change the timer-counter settings because I did not want to preclude...
  9. K

    Teensy LC: Trying to Link DMA Channels

    DMA Ring Buffers Here is the working test program. This one is a little different. An IntervalTimer's ISR continuously fills a ring buffer (src) with characters. The DMA engine, clocked by a timer-counter's overflow, copies one character at a time to another ring buffer (dest). Every 20...
  10. K

    Teensy LC: Trying to Link DMA Channels

    I found a solution. Instead of ping-ponging between two DMA channels, I am using one DMA channel with a circular source buffer and a PIT timer programmed to interrupt twice per bufferful. I'll post source code later -- right now I need to go to work. I re-read the DMA control chapter of the...
  11. K

    Teensy LC: Trying to Link DMA Channels

    I am trying to program a Teensy LC to link two DMA channels so that they copy data sequentially, clocked by one of the timer-counters. The eventual goal is to use the DMA to reprogram the timer-counter, but this test program just copies memory-to-memory. The test program is below. I want it...
  12. K

    Pin 17 and DMA on Teensy LC

    On the Teensy LC, what is the best way to drive a string of WS28xx LEDs through pin 17's 5V output with DMA? I want to drive a short string of LEDs, about 10, but I want the CPU to do other things with low latency, not sit around banging bits. OctoWS2811 does not use pin 17. FastLED does not...
Back
Top