Timer0 2Tcy delay

Discussion in 'Embedded Systems and Microcontrollers' started by micropad, Dec 25, 2011.

  1. micropad

    Thread Starter Member

    Dec 24, 2011
    38
    0
    Dear All
    I wrote a simple program for timer0 and Simulate using MPLAB SIM simulator
    so I did not find any delay with timer0 increment. so I think delay exist only in hardware level. am I correct
    please advice
     
  2. MMcLaren

    Well-Known Member

    Feb 14, 2010
    759
    116
    The MPLAB simulator does accurately reflect that TMR0, in timer mode, doesn't increment for two cycles after writing a value to it.
     
    Last edited: Dec 25, 2011
  3. micropad

    Thread Starter Member

    Dec 24, 2011
    38
    0
    but as per datasheet any written to tomer0 will affect 2Tcy delay
     
Loading...