Hello,
I'm using the simulator to debug a simple program which is build for a lpc1778.
I use timer 1 to trigger an interrupt on a 1mSec interval. In the interrupt service routine I increment a (global) counter. When I start the debugger and step through my program it all seems to work just fine. But now I want to monitor the timer variable in the logic analyzer in realtime. I added the counter to the logic analyzer but the analyzer only refreshes when I halt the program.
Is it possible to automatically refresh the graph with a refresh rate of about 100mSec.
The timing of the simulator doesn't match with the actual timings. How can I setup the simulator to run in realtime?!
Kind regards. Sander
Why do you want that?
The variable ticks at 1kHz. So displaying that variable is about as interesting as looking at a wall clock. Unless you expect your program to sometimes fail and stop ticking the variable.
The simulator on the other hand is not real-time. But neither do you need to supply stimuli to it in real time. So it normally doesn't matter that the simulator runs at a different speed - the code gets close to the same number of processor instruction ticks between each interrupt indicating if your program is fast enough to keep up with any interrupts.