I work whis a castom board based on mk60dn512vlq10. I need to arrange an interrupt on GPIOB. I configured necessary pin to input and interrupt on rising edge, expanded interrupts from port B in int main "EnableIRQ(PORTB_IRQn);" and made an interrupt handler but instead of performing an interrupt when a pulse is applied to the pin, the board freezes. What am I doing wrong?
Hi
You may have not entered the interrupt vector correctly or you may not be clearing the interrupt in the hander (by writing the PORTB_ISFR register).
See the following port interrupt video for more details: https://www.youtube.com/watch?v=CubinvMuTwU&list=PLWKlVb_MqDQFZAulrUywU30v869JBYi9Q&index=18
Use the free open source uTasker project as reference for quality code to allow individual interrupt callbacks on each port pin, or use its full project to slash your development time.
Regards
Mark
Complete Kinetis solutions for faster/more efficient professional needs, training and support: http://www.utasker.com/kinetis.html
i.MX RT project compatibility: http://www.utasker.com/iMX.html
Including FreeRTOS integration for all Kinetis parts
Kinetis K60:
- http://www.utasker.com/kinetis/TWR-K60N512.html
- http://www.utasker.com/kinetis/TWR-K60D100M.html
- http://www.utasker.com/kinetis/TWR-K60F120M.html
- http://www.utasker.com/kinetis/ELZET80_NET-KBED.html
- http://www.utasker.com/kinetis/ELZET80_NET-K60.html
uTasker: supporting >1'000 registered Kinetis users get products faster and cheaper to market
Request Free emergency remote desk-top consulting at http://www.utasker.com/services.html
Open Source version at https://github.com/uTasker/uTasker-Kinetis
https://community.nxp.com/thread/512558
https://community.nxp.com/thread/352862
https://community.nxp.com/thread/498809