I have a 2.8v pulse (1us width) every second on pin 7 (I can see it on scope) and Maple and Uno version work, but
I get no hits in the interrupt handler on the DUE with the following sketch. What am I missing?
// gpspps
volatile unsigned long us;
volatile int tick=0;
void handler() {
us = micros();
tick=1;
}
void setup() {
Serial.begin(9600);
attachInterrupt(7,handler,RISING);
}
void loop() {
static unsigned long prev = 0;
unsigned long t;
char str[32];
if (tick) {
t= us-prev;
sprintf(str,"%ld us %ld ppm",t,t-1000000);
Serial.println(str);
tick=0;
prev=us;
}
}