12f675_fuse_about_to_blow!


Results 1 to 40 of 929

Threaded View

  1. #33
    Join Date
    Feb 2010
    Location
    I live in the UK
    Posts
    562


    Did you find this post helpful? Yes | No

    Default

    Hi mackrackit

    But... Bruce to the rescue again.
    I must add him to my Christmas card list too.....!

    So @SLEEP (no period) for the visits count with IOC and a WDT timing loop for the "is it dark or just very cloudy" 30 min sleep.

    Code:
    OPTION_REG = %00001111
    So with OPTION reg bit.4 set to 1 prescaler assigned for WDT on and a 128 prescaler I'm thinking that:

    30mins x 60sec / 2.304secs = 781 counts for Bruce's timing / SLEEP loop below.

    Code:
    COUNTER=0 ' clear before entry
    WHILE COUNTER < 781
    @ SLEEP
    COUNTER=COUNTER+1
    WEND
    So not really sleeping, more power napping.........

    How does the above sound / look.

    Dave
    Last edited by LEDave; - 14th December 2010 at 00:33.

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