Help working with Interrupts....
Posted: Thu Jan 24, 2013 5:58 am
Okay, my last big hurdle I think of working with the STM32F4. I've looked through the documents talking about callbacks that get called from an interrupt, and the different ways you can implement them to get different behavior.
What I do not understand is how I associate a digital IO with an interrupt, if I can set some sort of priorities, and how I set what conditions of the Digital IO will fire the interrupt. I've no problem reading more in the user guide for the STM32F4, that said, the reason I ask here is I want to do it properly with how it's expected withing the ChibiOS framework.
To give even a further example of what I am doing, I have a digital encoder attached to 2 inputs. Turning the knob generates two bit grey codes and I'd like a change on EITHER channel to trigger an interrupt so that I can take action based on the current state of both ports.
Any pointers would be greatly appreciated!
Thanks,
Rick
What I do not understand is how I associate a digital IO with an interrupt, if I can set some sort of priorities, and how I set what conditions of the Digital IO will fire the interrupt. I've no problem reading more in the user guide for the STM32F4, that said, the reason I ask here is I want to do it properly with how it's expected withing the ChibiOS framework.
To give even a further example of what I am doing, I have a digital encoder attached to 2 inputs. Turning the knob generates two bit grey codes and I'd like a change on EITHER channel to trigger an interrupt so that I can take action based on the current state of both ports.
Any pointers would be greatly appreciated!
Thanks,
Rick