timer1 overflow calculation in PIC16f877a

maya2012

maya2012

@maya2012-GhITdp Oct 26, 2024
how can we create a delay of 1ms in pic16f877a using timer1. what is the formula used for calculation

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • Harshad Italiya

    Harshad Italiya

    @harshad-ukH5ww May 8, 2014

    maya2012
    how can we create a delay of 1ms in pic16f877a using timer1. what is the formula used for calculation
    Which compiler you are using for the code development?
    Is Timer1 16-bit Timer?

    As I remember Timer0 was 8bit timer so using rate 1:2 you can get 0.5ms delay and using that twice you can get 1ms. If Timer1 is 16bit then you can directly get 1ms delay using 1:2 rate.
  • Harshad Italiya

    Harshad Italiya

    @harshad-ukH5ww May 28, 2014

    #-Link-Snipped-# have you tried the way I suggested?