Setting Timer2 in PIC16F887

Discussion in 'Programmer's Corner' started by RG23, Apr 8, 2011.

  1. RG23

    Thread Starter Active Member

    Dec 6, 2010
    301
    2
    How to define timer2 to give exactly 10 ms?

    Thanks
     
  2. John P

    AAC Fanatic!

    Oct 14, 2008
    1,632
    224
    As you saw in the data sheet, there are various ways to control Timer2. What's your plan?
     
    Last edited: Apr 8, 2011
  3. AlexR

    Well-Known Member

    Jan 16, 2008
    735
    54
    Its difficult to help you without knowing what your clock frequency is or what you want the timer to do and why.

    About all I can advise is read the data sheet and go to http://pictimer.picbingo.com/download/index.php and grab a copy of the PIC Timer Calculator. It's free and it is an excellent program for working out PIC timer settings.
     
Loading...