spurious interrupts not simlated in arm7
Of course this can be done! In my program, the ADC is requesting an interrupt, while the current instruction is to write AD config register, which will clear the interrupt request. After this very instruction, a spurious interrupt is generated!! This problem confused me for quite a few days, because I rely too much on Keil's simulator, who cannot find the problem. I DO hope keil will support suprious interrupt.
If you simulate the hardware correctly, then presumably the interrupt stays clear -- if that's what it's supposed to do. If you've got a floating signal or whatever on the board that causes spurious interrupts, how is the simulator supposed to know that? I suppose you could add a DLL that just generated random interrupts at random intervals, to see if the software could handle it correctly. Perhaps we're not using the same definition of "spurious interrupt".
"I suppose you could add a DLL that just generated random interrupts at random intervals..." Or maybe us a Signal Function - see the uVision Manual "Perhaps we're not using the same definition of 'spurious interrupt'" Very possible. Expecting to get a detailed answer from a terse, 6-word question with virtually no explanation of the problem is somewhat optimistic...!
The dictionary says: "false and not based on the truth" http://www.dictionary.cambridge.org/define.asp?key=HW*11909&dict=CLD2 So, if the simulator did generate spurious interrupts, that would be a bug in the simulator!
I always get surprised/amused when someone expect the simulator to do anything but simulate. In Las Vegas there are, I do not know how many, Elvises, they are simulators. If you want the real thing use the real thing. Would you buy a record by an Elvis simulator. Erik
View all questions in Keil forum