# External Interrupt and PWM on Rabbit 2000

**URL:** <https://forums.digi.com/t/external-interrupt-and-pwm-on-rabbit-2000/10425>\
**Category:** Rabbit\
**Created:** [January 13, 2010, 8:06pm UTC](https://forums.digi.com/t/external-interrupt-and-pwm-on-rabbit-2000/10425 "2010-01-13T20:06:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![esarmiento](https://avatars.discourse-cdn.com/v4/letter/e/7cd45c/32.png) [@esarmiento](https://forums.digi.com/u/esarmiento)\
**Post date:** [January 13, 2010, 8:06pm UTC](https://forums.digi.com/t/external-interrupt-and-pwm-on-rabbit-2000/10425/1 "2010-01-13T20:06:04Z")

</div>

Hi, I am working with the BL2120 computer Board (Rabbit 2000). I need to implement a pulse counter using an external interrupt, as well as a PWM signal to control the speed of a DC motor. I have been looking at the sample code and I found PWM.c & EXTINT\_2000.c . Both examples show the features for each type of interrupt however I saw that for the PWM code they set PE4 as an input controlled by PE5 (Set as an Output). Now PE5 is the only available external interrupt pin I could use for the pulse counter.

My questions is: Is there any way I can implement both interrupts on the same board, but using PE5 to capture the pulse train interrupts, and a different pin to output the PWM generated from the Timer interrupt or is the PWM timer interrupt tied to PE5 in any way?
