I have also posted this in the Arduino forum, hope this isn't too basic
Hi all, This is a general use question. I have an app. that is using a Teensy+2. I don't use interrupts. I see random stalls in the app. over periods of a few hours to a day or two. There are many causes I have ruled out. The Atmel processors have interrupt enable registers that I am not using, that is I never explicitly enable an interrupt input.
Question: Do libraries like Serial and I2C enable all interrupt inputs ? Is it possible that this is the case, and if one were to leave the two external interrupt pins floating, even though not in use, that a static induced pull down on those INTx pins could vector a program into the either ?
I have recently explicitly pulled those pins to a high state with the processor internal pullups. I have now run the app. continuously for 5 days with no failures. This appears to have solved this issue but I ask the question as I need to know the root cause to be certain all is good.
Regards,
Brian
Hi all, This is a general use question. I have an app. that is using a Teensy+2. I don't use interrupts. I see random stalls in the app. over periods of a few hours to a day or two. There are many causes I have ruled out. The Atmel processors have interrupt enable registers that I am not using, that is I never explicitly enable an interrupt input.
Question: Do libraries like Serial and I2C enable all interrupt inputs ? Is it possible that this is the case, and if one were to leave the two external interrupt pins floating, even though not in use, that a static induced pull down on those INTx pins could vector a program into the either ?
I have recently explicitly pulled those pins to a high state with the processor internal pullups. I have now run the app. continuously for 5 days with no failures. This appears to have solved this issue but I ask the question as I need to know the root cause to be certain all is good.
Regards,
Brian