Timeline for Hardware interrupt calling two ISRs
Current License: CC BY-SA 4.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 15, 2021 at 20:02 | history | bumped | Community Bot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Apr 17, 2021 at 19:33 | history | bumped | Community Bot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Mar 18, 2021 at 18:47 | answer | added | Baxter Tidwell | timeline score: 1 | |
Mar 8, 2021 at 19:52 | comment | added | Baxter Tidwell | I am using SPI to hook an ESP32 up. I wonder if that's causing interference. To rule out a bad board, I swapped out with a brand new Feather M4 Express. Same exact problem. Now I'll disconnect the SPI and see what up. | |
Mar 8, 2021 at 19:41 | comment | added | timemage | Not sure what I was thinking rises to "theory" level. And what you did sort of disproves it. Pins don't have dedicated interrupts. They share the same interrupt with a handful of other pins. In particular your Arduino pin A3 shares an interrupt with one of the onboard SPI chip lines. SDA and SCL seem to not be sharing with anything else, at least nothing else broken out on the board, so no other pin can be triggering their external interrupt routine. So, like I said, not that. | |
Mar 8, 2021 at 18:45 | comment | added | Baxter Tidwell | Sorry to say, no improvement with SCL and SDA. Both ISRs are still being called. What's your theory? | |
Mar 8, 2021 at 16:31 | comment | added | timemage |
Unfortunately I have no SAMD51 devices at all. And I'm not sure I want to put my wild guess as an "answer." without any confidence. As a diagnostic test, what I've have you try is using your same code with #define FRONT_DOOR_SWITCH 21 and #define BACK_DOOR_SWITCH 22 and hooking your signals to those pins labeled on the board as SCL and SDA . If this improves things, I'll give you an answer as to why I think it may have.
|
|
Mar 8, 2021 at 16:21 | comment | added | Baxter Tidwell | Yes, that's what I first thought. I reduced it down to see if something else could have been causing it, but what I posted runs and fires off both ISRs. | |
Mar 7, 2021 at 17:56 | comment | added | timemage | So far the only way I can think to explain the interrupts being called the way you describe depends on there being more code than you're showing. Is this, in fact, the entire sketch being tested? | |
Mar 7, 2021 at 15:41 | review | First posts | |||
Mar 7, 2021 at 16:37 | |||||
Mar 7, 2021 at 15:35 | history | asked | Baxter Tidwell | CC BY-SA 4.0 |