Hey all.
I'm having trouble with interrupts on my hcs12 dragon12plus board. I'm trying to make a traffic light setup that will have a north/south 'walk' button and an east/west 'walk' button.
I have it set up so the lights will change if a button is pressed, but I can't figure out how to differentiate between interrupts from pins on the same port that would require two different handlers. In other words, pressing the N/S button, or the E/W button, affects the light change whether it's needed, or not.
Surprisingly, my text doesn't offer much help on multiple interrupts. Anybody have some examples of using 2 or more interrupts from the same port that require different ISRs? I attached what I have, if you want to look at it.
Thanks,
silvrstring
I'm having trouble with interrupts on my hcs12 dragon12plus board. I'm trying to make a traffic light setup that will have a north/south 'walk' button and an east/west 'walk' button.
I have it set up so the lights will change if a button is pressed, but I can't figure out how to differentiate between interrupts from pins on the same port that would require two different handlers. In other words, pressing the N/S button, or the E/W button, affects the light change whether it's needed, or not.
Surprisingly, my text doesn't offer much help on multiple interrupts. Anybody have some examples of using 2 or more interrupts from the same port that require different ISRs? I attached what I have, if you want to look at it.
Thanks,
silvrstring
Attachments
-
27 KB Views: 61