It seems the interrupt vector doesn't point to my ISR, but to some other code that's executed before and after my ISR. Is it possible to avoid this extra code? I think I must also clear the interrupt bit in my ISR then. Is there any example for...
In this example for Teensy 4.0 I'm using a 200kHz timer interrupt to generate a short pulse at pin D1.
In the main loop pin D0 is toggled as fast as possible, so that I can see on the scope the duration of the interrupt.
#include...
Thanks for your reply. I was able to figure out a working example, here it is:
#include "TeensyTimerTool.h"
using namespace TeensyTimerTool;
PeriodicTimer timer1(GPT1); // uses GPT1
PeriodicTimer timer2(PIT); // uses PIT
void setup()
{...
In this example for Teensy4.0 I have two timer interrupts with 200 Hz and 200 kHz, and I want the 200 kHz interrupt to have the higher priority.
But as you can see in the scope screenshot, the 200 Hz interrupt has higher priority. Yellow is D0...
I have an application where I need a TEENSY4.0 with improved frequency accuracy. If I remove the 24MHz crystal and C2, and connect an external 24MHz TCXO to the XTALI pin, is it ok if this signal has 3.3V, or must the voltage be smaller? The...