lpc2388 interrupt is not working

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

lpc2388 interrupt is not working

1,205件の閲覧回数
mohammadfaizan
Contributor III

Hi,

I am working on RTC, I am getting a difference of 3 second, so i try to calibrate the RTC time, I had generate the 1Hz clock using a timer0, Interrupt Subroutine  is called when Timer Tick is equal to Match register value, code is working fine on simulator but not on my board,  code without interrupt  works fine on board.

Routine code 

__irq void myTimer0_ISR (void) 
{
   long int regval;
   regval = T0IR;
   // RTC_Time set_time;   
   RTC_SEC = RTC_SEC - 3;
   T0IR = ( T0IR | (0x01) );
   VICVectAddr  = 0x00;
}

main 

if(T0TC==T0MR0);
{

   // RTC_Get_Time();
   VICVectAddr4 = (unsigned) myTimer0_ISR;
   VICVectCntl4 = 0x00000024;
   VICIntEnable = 0x00000010;
   VICIntSelect = 0x00000000;

   //T0TCR = 0X00;
}

What I missed here, Please suggest.

Thanks & regards

ラベル(2)
1 返信

1,069件の閲覧回数
mohammadfaizan
Contributor III

Solved