# Interrupt problems 

**URL:** <https://forums.freertos.org/t/interrupt-problems/5003>\
**Category:** Kernel\
**Created:** [May 29, 2007, 10:33pm UTC](https://forums.freertos.org/t/interrupt-problems/5003 "2007-05-29T22:33:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [May 29, 2007, 10:33pm UTC](https://forums.freertos.org/t/interrupt-problems/5003/1 "2007-05-29T22:33:38Z")

</div>

**[lcardenas](https://sourceforge.net/u/lcardenas/)** wrote on [Tuesday, May 29, 2007](https://sourceforge.net/p/freertos/discussion/382005/thread/dc124317/#63ae):

Hello !!

I’m using Freertos and PIC18F8621… i need two external interruption (INT0 AND INT1) i don’t know what really happen because when i put the interruption rutine doesn;t work. I have 5 tasks and run ok but with the interruption is not the same… i don’t know if i have to change de macros portsavecontext and portrestorecontext…

or if i have to do something before i the scheduler start…

Can you help me please with some ideas??

Do you know what can be wrong??

Thanks so much for your help!!

hace a nice day

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [May 30, 2007, 7:56am UTC](https://forums.freertos.org/t/interrupt-problems/5003/2 "2007-05-30T07:56:57Z")

</div>

**[embeddedc](https://sourceforge.net/u/embeddedc/)** wrote on [Wednesday, May 30, 2007](https://sourceforge.net/p/freertos/discussion/382005/thread/dc124317/#63ae/ed59):

The first thing to check is that your interrupts work in a simple program, without FreeRTOS being included.&nbsp; Once you have this checked out, add FreeRTOS back in to see if they are still functioning correctly.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [May 30, 2007, 4:04pm UTC](https://forums.freertos.org/t/interrupt-problems/5003/3 "2007-05-30T16:04:02Z")

</div>

**[lcardenas](https://sourceforge.net/u/lcardenas/)** wrote on [Wednesday, May 30, 2007](https://sourceforge.net/p/freertos/discussion/382005/thread/dc124317/#63ae/1df7):

The interruptions in a simple program works ok, it is my problem i don’t know what i have to change to make it works with freertos

Can you help me please??

Thanks so much

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [May 30, 2007, 4:16pm UTC](https://forums.freertos.org/t/interrupt-problems/5003/4 "2007-05-30T16:16:05Z")

</div>

**[davedoors](https://sourceforge.net/u/davedoors/)** wrote on [Wednesday, May 30, 2007](https://sourceforge.net/p/freertos/discussion/382005/thread/dc124317/#63ae/1df7/5035):

Did you see the example uart drivers in the FreeRTOS code?&nbsp; Have you copied the same format and syntax as used for those?

Dave.
