Connect with us

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

Discussion in 'Microcontrollers, Programming and IoT' started by kawtar, May 2, 2017.

Scroll to continue with content
  1. kawtar

    kawtar

    4
    0
    Apr 15, 2016
    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
     
  2. Josh Bensadon

    Josh Bensadon

    8
    0
    Jul 16, 2012
    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.
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-