CrazyEngineers
  • timer1 overflow calculation in PIC16f877a

    maya2012

    Member

    Updated: Oct 26, 2024
    Views: 1.2K
    how can we create a delay of 1ms in pic16f877a using timer1. what is the formula used for calculation
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • Harshad Italiya

    MemberMay 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.
    Are you sure? This action cannot be undone.
    Cancel
  • Harshad Italiya

    MemberMay 28, 2014

    #-Link-Snipped-# have you tried the way I suggested?
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register