Timing And Loop Fundamentals


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Mar 2009
    Posts
    653


    Did you find this post helpful? Yes | No

    Default Re: Timing And Loop Fundamentals

    Sorry for not being clear, I was outlining how I appproach sleep in general (using the WDT to wake the PIC up vs using a timer interrupt)

    Like I say I'm still finding my way & new to sleep....presently learning about capacitive touch....during sleep, when configrued right, Timer1 counts the output pulses from the capacitive touch module ...which still outputs during sleep (I would have offfered that up as an idea...use the capactive touch module to clock timer1 while sleeping, but it's not particularly steady & its frequency drifts quite a bit with enviromentals!)

  2. #2
    Join Date
    Jun 2011
    Posts
    17


    Did you find this post helpful? Yes | No

    Default Re: Timing And Loop Fundamentals

    Thankyou for the comments.

    Sorry i was not clear about the timers, yes, these are just software variables which are incremented and cleared as required.

    My questions are general, i don't have something specific in mind just thinking about the best way of doing things, i think i have got lazy and just stick to the same old methods all the time.

    The devices i have been using don't have the power managed idle mode, but i can see others that do and this seems quite a good idea.

    I thought that if i used the WDT to wake the chip, then do whatever, this would not be as accurate as using the TMR interupt.

    Also, i am right in thinking that if i used the TMR1 with the external crystal, which would be accurate, then i could set the main oscillator to internal? As the program timings would all come from TMR1.

    Gordon,

  3. #3
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default Re: Timing And Loop Fundamentals

    If you use XLP device, and running tmrX from x-tal, and everything else turned off, it consumes only about 1uA...
    You have in code example RTCC that use only 2 uA...

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