Hello, I'm doing a university project with the 5416DSK. In this project I'm using external interrupt pins INT0 and INT1. I've set up the hardware interrupt using the configuration tool of CCS. The HWI calls a function which lights up a LED on the DSK. Although I would like it to do so, but it doesn't work. I've checked the interrupt pins with oscilloscope and the pins do go low, but the function isn't called. Am I forgetting something, or should it work like this. Can someone help me with this problem??? Bart. |
|
External interrupts
Started by ●May 1, 2003
Reply by ●May 2, 20032003-05-02
Date: Thu, 01 May 2003 06:36:49 -0000 From: "bartzuid" <> Subject: External interrupts Hello, I'm doing a university project with the 5416DSK. In this project I'm using external interrupt pins INT0 and INT1. I've set up the hardware interrupt using the configuration tool of CCS. The HWI calls a function which lights up a LED on the DSK. Although I would like it to do so, but it doesn't work. I've checked the interrupt pins with oscilloscope and the pins do go low, but the function isn't called. Am I forgetting something, or should it work like this. Can someone help me with this problem??? Bart. Hi Brat, Have u enabled the INTM bit and the coresponding interrupt mask registers bits. cheers vinodh |
Reply by ●May 2, 20032003-05-02
Hi Bart, You might have forgotten to do one of the following things. 1>Make sure that you have enabled these interrupts in IMR (interrupt mask register). 2> Make sure that INTM bit is set to zero which is global interrupt enable bit. 3> Make sure that you are using RETE at the end of your interrupt subroutine. The global interrupt bit gets disabled when ever there is an interrupt. I hope this helps. With best wishes, Sree Sree --- bartzuid <> wrote: > Hello, > > I'm doing a university project with the 5416DSK. In > this project > I'm using external interrupt pins INT0 and INT1. > I've set up the > hardware interrupt using the configuration tool of > CCS. The HWI calls > a function which lights up a LED on the DSK. > Although I would like it > to do so, but it doesn't work. I've checked the > interrupt pins with > oscilloscope and the pins do go low, but the > function isn't > called. > Am I forgetting something, or should it work like > this. Can someone > help me with this problem??? > > Bart. > > > _____________________________________ > Note: If you do a simple "reply" with your email > client, only the author of this message will receive > your answer. You need to do a "reply all" if you > want your answer to be distributed to the entire > group. > > _____________________________________ > About this discussion group: > > To Join: Send an email to > To Post: Send an email to > > To Leave: Send an email to > Archives: http://www.yahoogroups.com/group/c54x > > Other Groups: http://www.dsprelated.com > ">http://docs.yahoo.com/info/terms/ __________________________________ |