Altera_Forum
Honored Contributor
13 years agoReading Interval Timer Core snapshot from an ISR
Reading Interval Timer Core snapshot from an ISR
Hi all i have a strange problem regarding reading Interval Timer Core snapshot from an ISR. IRQ is triggered by custom UART interface periodically about every 70 ms. I read Interval Timer Core snapshot inside ISR and save it to global variable. In the main program, i check this value and test if specified period of time is elapsed. Timer Core snapshot value read and saved to global variable is incrementing gradually but i also read some strange huge values sporadically. The next value read is usually OK again. When i read Interval Timer Core snapshot outside ISR everything is OK. Has anyone experienced this problem? Best, Primoz