Topic : problem while using timers in ride 7

Forum : 8051

Original Post
Post Information Post
May 26, 2010 - 7:12am
Guest

I typed the following simple code in the Ride 7 and ran it.

org 0h
mov 89h,#01h
here: mov 8ch,#00h
mov 8Ah,#00h
setb 8ch
again: mov 080h,8ch
mov 090h,8Ah
jnb 8dh,again
clr 8ch
clr 8dh
end

BUT the timer registers th0 and tl0 do not increment at all after setting tr0(address 8ch) high. I executed the same code on another simulator edsim 51 and it worked well.
I am not able to find the problem.
the code has no syntax errors and project builds successfully.
help anyone??

Replies
Post Information Post
+1
0
-1
May 28, 2010 - 2:33pm
Guest

Hi

I think the problem comes from the fact that timers are not simulated.
Our tools simulate the heart of the 8051 and very few peripherals.

Regards
Matloub

+1
0
-1
May 30, 2010 - 11:38am
Guest

Ok thanks!!