Maker Pro
Maker Pro

[8051]how to know which modes and timers are selected tmod

kawtar

Apr 15, 2016
4
Joined
Apr 15, 2016
Messages
4
Hi
I need help .I didnt know why when the instruction mov tmod,#1 is executed mode 1 of Timer 0 is selected. I tried googling but in vain

thank you
 

Josh Bensadon

Jul 16, 2012
8
Joined
Jul 16, 2012
Messages
8
umm, if you look at the data sheet, you'll see that "tmod" controls the mode of the timers. So loading it with 1 should put timer 0 into mode 1. if you load 2, it would put timer 0 into mode 2.
 
Top