Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Question on proving interrupt priority on vectored IRQ interrupts

2004-12-01 by ©@°Ø¦â¤p¿ß

Hi everyone, I am using LPC2106 at the moment and only got the 
general purpose timer (Timer0 & Timer1) setup. I am using vectored 
IRQ handler to handle the interrupts produced by each timer. I put 
the IRQ interrrupt from Timer0 in the the first slot of priority 
table, and interrupts from Timer1 have been assigned to the second 
slot of the priority table. so that when both interrupts occur at 
the same time the interrupt handler for Timer0 would be executed 
first according to the priority table. 

The question I would like to ask is that how do I "prove" that, when 
both interrupts occured at the same time (when both timer's MR value 
are set at the same amount), Timer0's handler function would be 
executed before Timer1's handler function? I know that because of 
the priority for vectored IRQs would decide this, but the point is 
how do I prove that the priority does exist to someone by modifing 
my interrupt handler function? (perhaps using "VICRawIntr"?) and if 
so, how do I implement that? 

thank you!

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.