Search results

  1. G

    Teensy 3.0 Beta9 Software

    I spent some time poking and prodding, and managed to get an ISR working and reading from the SPI bus: http://forum.pjrc.com/threads/1347-Timer-interrupt-or-other-way-to-read-SPI-consistently-on-Teensy3-0
  2. G

    Timer interrupt, or other way to read SPI consistently on Teensy3.0?

    I was hoping to avoid that, and just work with an existing library, because it always seems to take more time with the datasheet :) I've got it working right now. Here's snippets of my code: #define TIE 0x2 #define TEN 0x1 //Turn on interrupts: SIM_SCGC6 |= SIM_SCGC6_PIT; // turn on PIT...
  3. G

    Timer interrupt, or other way to read SPI consistently on Teensy3.0?

    Hi, I would like to read two SPI ADCs at a consistent rate. I've got code working that reads them asynchronously, but I'd prefer to use a timer interrupt. Probably trigger at 2x the read rate, first interrupt would start the sampling, second would read the data, repeat. Any suggestions? I'm...
Back
Top