Elapsed Timer Demo in a PIC12F675


Closed Thread
Results 1 to 17 of 17

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Can't tell, i never used it before. Would be of great help if you could post the whole schematic, code and configuration fuses.

    I would guess you just use the internal OSC... probably where the huge gap come from.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e View Post
    Can't tell, i never used it before. Would be of great help if you could post the whole schematic, code and configuration fuses.

    I would guess you just use the internal OSC... probably where the huge gap come from.
    Steve,
    I'm using an external 4MHz crystal and the code is this for PIC12F675.

    [HTML]CLEAR
    LED VAR GPIO.0
    CMCON = 7
    ANSEL = 0

    Include "Elapsed.bas"

    Gosub ResetTime ' Reset Time to 0d-00:00:00.00
    Gosub StartTimer ' Start the Elapsed Timer

    HIGH LED ; Start with LED on

    Loop:
    if HoursChanged then
    HoursChanged = 0
    if Hours = 1 then LOW LED ; Turn off LED
    endif
    Goto Loop[/HTML]

    Last edited by Leonardo; - 19th November 2008 at 18:37.

  3. #3


    Did you find this post helpful? Yes | No

    Default Delay 1:20 hours minutes

    Quote Originally Posted by mister_e View Post
    Can't tell, i never used it before. Would be of great help if you could post the whole schematic, code and configuration fuses.

    I would guess you just use the internal OSC... probably where the huge gap come from.
    Hello,

    I doubt arises as to obtain such a delay of 1:20 hours and minutes.

    Thanks

Similar Threads

  1. Elapsed Timer Demo
    By Darrel Taylor in forum Code Examples
    Replies: 111
    Last Post: - 29th October 2012, 17:39
  2. Get elapsed time while TIMER samples pulses
    By RodSTAR in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 27th March 2009, 16:27
  3. Totally Baffled with Elapsed Timer
    By CocaColaKid in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th June 2008, 21:01
  4. SPWM and Elapsed Timer
    By CocaColaKid in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 8th May 2008, 03:16
  5. Darrel Taylor Elapsed Timer
    By rwskinner in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 13th March 2008, 01:22

Members who have read this thread : 2

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