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.
I write some simple programs but in all of them ISR is not executed during its interrupt occurance. i face similar problem in sample programs also. I face this problem after the installation of uVision software ver 3.03a, previously when i use uVision 3.0 it works fine. I try even the same programs that work in ver3.0 now in 3.03a but ISR is not executed.
i use uVision software version 3.03a and debug it with simulator (uC is LPC2364).
Plz anyone help me, my project is stuck due to this.. Here is the example of my program
#include<LPC21xx.H> unsigned char half_sec,sec,i,j;
void timer0 (void) __irq {
half_sec = ~half_sec;
T0IR = 0x01;
VICVectAddr = 0; }
int main(void) {
half_sec=0; sec=0; /*initialize timer0*/
T0MCR = 0x00000003;
T0MR0 = 0x000000E0;
T0TCR = 0x01;
VICIntEnable = 0x00000010;
VICVectCntl1 = 0x24;.
VICVectAddr1 = (unsigned long)timer0;
IO0DIR |= 0x00000004;
while(1)
{
if(sec==1)
{ for(j=1;j<=2;j++)
IO0SET = 0x00000004; //IO0PIN = 1;
}
if(half_sec == 1)
for(j=1;j<=2;j++)
IO0CLR = 0x00000004;
Your code snippet: 1) is not properly formatted, making hard for people to read it. This might account for the low number of answers you are getting; 2) Has a syntax error.
A few questions: - Are you setting up correctly the VicVector for the IRQ handler? Which startup file are you using?
- Specify 'not working'. What is the program doing when 'not working'?
- You said that on another computer the thing worked. So, what is the problem really?
hi doin
yes i set VICVector correctly that is also display in code and start up file is LPC2300.s
Not working means program is not go in ISR when an interrupt come but all the main instructions are executed perfectly.
another computer have evaluation version where this program runs perfectly but i have licenced version of uV3 so may be there is some setting problem but i checked all the settings and found nothing.