TMR1 100Hz Exactly Interrupt Routine


Closed Thread
Results 1 to 16 of 16

Hybrid View

  1. #1
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Smile

    >>I was thinking of shutting it down while im waiting to save power

    I am guessing you are referring to the LM34/35 and not the Pic? If so, I am sure it is in the datasheet. If you are planning to run off of batteries, then the lower XTAL speed would be ideal for the PIC

    A free runing TMR1 will overflow every 8 seconds (prescaler = 1) with a 32768 XTAL. You could count 15 overflows for 2 minutes.

    Or you cold poll TMR0, also free running (prescaler = 256) with a 32768 XTAL. You could count 15 overflows for 2 minutes. The link I gave you has an example of polling TMRO.

    Too many options - also check the LM34/35 datasheet and see what it needs in the way of communication speeds, etc. I have not looked for some time and do not recall the method.

    There have been a zillion questions in this forum about the LM34/35 over the years - search and you shall be rewarded.
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

  2. #2
    Join Date
    Jan 2007
    Posts
    44


    Did you find this post helpful? Yes | No

    Default

    Hi. Thanks for your help.
    Yes, as you said, it would be ideal the low frequency crystal, and the timing is also much simpler LOL.
    The LM35 outputs a linear 10 mV/`C and the LM34 is 10 mV/`F
    Anyway, that wouldnt be a problem with speed, but will I be able to interface an I2C EEPROM like 24LM32 with that speed??? I guess yes because its syhncronus transmission, but i ask to be sure
    Thanks a lot
    Manuel

Similar Threads

  1. Can't ID interrupt source with this IntHandler??
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 3rd June 2009, 02:35
  2. 16F876A CCP1 Capture/Interrupt Question
    By TDonBass in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 17th January 2008, 03:25
  3. Interrupt Problem
    By Kamikaze47 in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 16th November 2005, 20:58
  4. USART interrupt not interrupting right
    By Morpheus in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 6th March 2005, 01:07
  5. Multi Interrupt How To ?
    By capitano in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 3rd February 2005, 14:48

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