Topic : How to check timing in debugger

Forum : 8051

Original Post
Post Information Post
February 19, 2011 - 5:21pm
Guest

I did use the following code to test the time needed for a func1 and funct2 :

funct1() ;
sincevak = 0 ;
btel += encflanks ;
if (btel >= simtels[simtelidx]) {
btel = 0 ;
simtelidx++ ;
funct2(0) ; }
SBUF = TH0 ;
TH0 = 0 ;
TL0 = 0 ;
} }

By tracking the uart output i could see the timing. It worked fine in ride6 but in ride7 the timer0 is not simulated for atmel devices. This makes the code useless in ride7.
I have the following questions.
- Is ther another processor for which the standard 8051 timers are properly simulated.
- Can i use trace to check timing of a function.
- When is there an updated simulater available.

In the disasamble view i found the following bug. The instruction "SBUF = TH0" is shown as " MOV SCON,TH0" I think this should be "MOV SBUF,TH0"

thanks in advance