req: External interrupt on RA14 example

General discussion on mikroPascal PRO for PIC32.
Post Reply
Author
Message
sgoum
Posts: 11
Joined: 21 Oct 2012 07:50

req: External interrupt on RA14 example

#1 Post by sgoum » 21 Oct 2012 07:57

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.

jpc
Posts: 1986
Joined: 22 Apr 2005 17:40
Location: France 87

Re: req: External interrupt on RA14 example

#2 Post by jpc » 22 Oct 2012 08:25

maybe you show what you try to do (code), that will allow helping you best.
Au royaume des aveugles, les borgnes sont rois.

sgoum
Posts: 11
Joined: 21 Oct 2012 07:50

Re: req: External interrupt on RA14 example

#3 Post by sgoum » 22 Oct 2012 10:00

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.

User avatar
dejan.odabasic
mikroElektronika team
Posts: 2649
Joined: 30 Apr 2012 14:20

Re: req: External interrupt on RA14 example

#4 Post by dejan.odabasic » 22 Oct 2012 15:02

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.

sgoum
Posts: 11
Joined: 21 Oct 2012 07:50

Re: req: External interrupt on RA14 example

#5 Post by sgoum » 25 Oct 2012 15:31

Thank you!!!

Post Reply

Return to “mikroPascal PRO for PIC32 General”