Hi,
I have come across strange problem of time interrupt. My timer interrupt
routine is very simple.
void __attribute__ ((interrupt("IRQ"))) tc0_cmp(void);
/* Timer0 Compare-Match Interrupt Handler (ISR) */
void tc0_cmp(void)
{
T0FLG=1;
main1000++;
// haul1000++;
T0IR = TxIR_MR0_FLAG; // Clear interrupt flag by writing 1 to Bit 0
VICVectAddr = 0; // Acknowledge Interrupt (rough?)
}
The interrupt works ok. The moment I uncomment haul1000++, the first
interrupt works and there after stops.
In short if I increment one variable it works, if I increment more than
one variable it stops.
The processor is LPC2138 and this is the only interrupt I am using.
Best Regards,
Mukund Deshmukh.
Beta Computronics Pvt Ltd
10/1, IT Park, Parsodi,
Nagpur-440022
Cell - 9422113746Message
Timer/counter interrupt
2006-05-29 by Mukund Deshmukh
Attachments
- No local attachments were found for this message.