chipKIT® Development Platform

Inspired by Arduino™

HELP LIBRARY FOR INTERRUPTS

Created Wed, 21 Mar 2012 18:11:14 +0000 by Mathieu2


Mathieu2

Wed, 21 Mar 2012 18:11:14 +0000

Helo ,

I'm new on this website and i'm also a beginner in using of MPIDE,

Can some one help me how to get the avr/Interrupt.h library?

I cant use interrupts in my sketch, when i try to compile it it give this error message :

fatal error: avr/interrupt.h: No such file or directory compilation terminated.

Can some one help me please ?

Sorry for my english

Thanks

Mat


Ryan K

Wed, 21 Mar 2012 19:33:09 +0000

Hello,

What types of interrupts are you using?

There are examples of ISRs being declared in this document:

http://ww1.microchip.com/downloads/en/devicedoc/pic32mx_datasheet_v2_61143b.pdf

But there might be some cases that the interrupts are already declared so that you can use them. Such as external interrupts in: hardware\pic32\cores\pic32\WInterrupts.c

Best Regards, Ryan K


Mathieu2

Wed, 21 Mar 2012 21:02:19 +0000

Hello Ryan,

I want to know how to use Interrupts in general with the Max32 board; but especialy UART Interrupts.

Thanks

Mathieu2


Mathieu2

Wed, 21 Mar 2012 21:26:49 +0000

Other precision : I'm using MPIDE IDE, I'm not using C/C++

Thks