gordu 0 Posted April 21, 2013 Share Posted April 21, 2013 Hi all, Not sure if this is an Energia issue or a Arm limitation or a .... But I'm trying to enable interrupts on 7 pins. Im using Energia's attachInterrupt and everything works almost...when I test things out one pin always seems to not cause an interrupt. It seems the last pin I enable an interrupt on will not work. Which pin is immaterial, I can change the order and its always the last pin. The other thing that happens is after a bit, it does not mater which pin that causes the interrupt it always goes to the same handler. I figure maybe there is a limitation on how many interrupts can be enabled at once maybe? Quote Link to post Share on other sites
Lyon 3 Posted April 21, 2013 Share Posted April 21, 2013 Hi, It is very important what pin is used, since there are pins with some default settings for other purposes, and to make them work needs some special configurations. Take care also there are two pin categories: ports with per-pin interrupts and ports with a single interrupt per port. To give you an answer - at least 16, since there are two ports with per-pin interrupts. The above statements are for the micro controller itself, attachInterrupt is ignored. Lyon bluehash 1 Quote Link to post Share on other sites
gordu 0 Posted April 27, 2013 Author Share Posted April 27, 2013 Thanks for the info, but after going thru the data sheet I've been unsuccessful in finding the info on ports with per pin intterrupts vs ports with a single interrupt. Can you point me at the right section of the data sheet? Quote Link to post Share on other sites
bluehash 1,581 Posted April 27, 2013 Share Posted April 27, 2013 Thanks for the info, but after going thru the data sheet I've been unsuccessful in finding the info on ports with per pin intterrupts vs ports with a single interrupt. Can you point me at the right section of the data sheet? Section 3.1.2 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.