"Extending" timer1


Results 1 to 10 of 10

Threaded View

  1. #7
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    but where would I put the variable increment in my code example?
    chips123

    Naturally in your interupt routine. Let assume you have a variable Tmr1Z (declared as Word) and you increment TMR1Z by 1 at each overflow then TMR1L & TMR1H and TMR1Z will give you a 32 bits count from which you could pullout a lot of information.

    Also y = y + 525 could be used but since y will overflow itself after 124 timer1 overflow is not very helpfull.

    100k or a million makes a difference.
    Jumper

    One is ten times the other! 100K makes life even more difficult.

    For pic 16F676 this is what datasheet report:

    - 100,000 write FLASH endurance
    - 1,000,000 write EEPROM endurance
    - FLASH/Data EEPROM Retention: > 40 years
    Al.
    Last edited by aratti; - 19th October 2009 at 15:57.
    All progress began with an idea

Similar Threads

  1. Software PWM using Timer1
    By muqasim in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 18th December 2009, 11:49
  2. Help with TIMER1 + SLEEP
    By Yodoad in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 22nd May 2009, 15:07
  3. Time Period of Timer1
    By arnol34 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 4th May 2007, 00:31
  4. Timer1 and Interupt wierdness
    By mind in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 23rd August 2005, 01:24
  5. Use of Timer1 with 16F819
    By Barry Johnson in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 25th January 2005, 16:25

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts