We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
hai, anybody is there who works on MCBSTR9 Evaluation Board.
thanks raj.
After a cursory glance, I have some questions that may have some bearing on your problem:
1.) It appears that you are trying to use the External Interrupt pin to generate a "wake up". Where in your code was the processor (or any perihpheral) "put to sleep" in the first place? In other words...are you trying to wake up a processor that is already awake?
2.) You call a delay function from within an ISR. I realize that this program is probably a simple test and the delay in the ISR will probably not do much harm, but in the "real world". You would not want to call a delay() from within an ISR. Any reason why you didn't just set a "flag" in the ISR and then have the main() loop check it to trigger a delay?
3.) In my limited experience with the STR9, I have found that you have to "enable" an interrupt in more than one place. For example, if you want to generate an interrupt upon the receipt of a character at the UART, then you have the set up the UART so it will assert an interrupt. This interrupt signal, in turn, must be delivered to the VIC which also must be set up to do something with the signal. I see that you have set up your VIC to handle the Ext Int pin signal, but should your code also be setting up some registers to make sure that the pin is delivering an interrupt signal to the VIC?
For whatever it is worth, you aren't the only one having trouble with interrupts on this chip. The Keil guys have been trying to sort out one of my problems for two weeks. They are very quiet...I think they are "stumped" (confounded, confused, baffled) too!
-=Rich=-
Hi Rich, Was there any resolution to this problem?
Could anyone get the external interrupts to work?
I have been trying for a couple of days to convert the STR9x WIU example (which is basically the same as the code above except that it is for the ST demo board and uses the ST library).
Your first question about "wake up" refers: do you know how the setup for plain external interrupts differs from that for a "wake up" interrupt?
William