Hello
Could someone please post the simplest possible code for an external interrupt on RA14?
I have the PIC32MX460F512L board and after reading the forum I still haven't manage to make external interrupts work.
Thank you in advanced.
req: External interrupt on RA14 example
Re: req: External interrupt on RA14 example
maybe you show what you try to do (code), that will allow helping you best.
Au royaume des aveugles, les borgnes sont rois.
Re: req: External interrupt on RA14 example
I do not have any code yet cause I don,t know how to do it
I'm trying to build a speed controller for my bike.
I have managed to write the Timer interrupt so I can have 1ms sec delay.
On RA14 I will place my magnetic switch. On every turn the switch has to generate an interrupt (on falling edge).
When the interrupt occures I check the time pasted from the last one and calculate the speed.
My problem is that I dont know how to configure the uC to generate external interrupt on RA14 or any other pin.
I'm trying to build a speed controller for my bike.
I have managed to write the Timer interrupt so I can have 1ms sec delay.
On RA14 I will place my magnetic switch. On every turn the switch has to generate an interrupt (on falling edge).
When the interrupt occures I check the time pasted from the last one and calculate the speed.
My problem is that I dont know how to configure the uC to generate external interrupt on RA14 or any other pin.
- dejan.odabasic
- mikroElektronika team
- Posts: 2649
- Joined: 30 Apr 2012 14:20
Re: req: External interrupt on RA14 example
Hello,
You can find interrupt examples for PIC32MX460F512L on LibStock:
http://www.libstock.com/projects/view/3 ... mx460f512l
It shows how to set INT2 interrupt on PORTE.9 pin.
Best regards.
You can find interrupt examples for PIC32MX460F512L on LibStock:
http://www.libstock.com/projects/view/3 ... mx460f512l
It shows how to set INT2 interrupt on PORTE.9 pin.
Best regards.
Re: req: External interrupt on RA14 example
Thank you!!!