Elapsed Timer Demo


Closed Thread
Results 1 to 40 of 112

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    And ===> Adcon1=7
    Steve

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

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Hi Steve,

    ADCON1 = 7 was already in the "Test_Elapsed_LCD.pbp" program.

    Just need to add the CMCON for the 87x"A" varieties.

    DT
    <br>

  3. #3
    Eng4444's Avatar
    Eng4444 Guest


    Did you find this post helpful? Yes | No

    Exclamation One question..

    This might sound strange for some of you and stupid for others... but i'll say it again, i do not have any previous knowledge in all this...

    i already asked how to make it work for PIC16876A with a 4 lines LCD.

    i got : 1. Set the DEFINEs to match your hardware.

    2. Add CMCON = 7 if using PORTA

    3. compile and run.

    i'm thankful for this.. but at that time, i didn't pay attention to what was written in the first post! :

    " Note2: They are written for use as the only interrupt in the program. If you need to use other interrupts as well, the program will have to be modified before it will work. "

    then, i opened the .zip file and found...4 files!

    ASM_INTS.BAS
    ELAPSED.BAS
    TEST_ELAPSED_LCD.pbp
    Tets_elapsed_ser.pbp

    So what to do with all these......? where to download each of them?....

  4. #4
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Naaa. Don't bother.

    Try Melanie's Olympic timer instead (cheers Darrel, you keally know how to make friends - Melanie). It doesn't have the ASM stuff to worry about.

    Or Paul's clock that doesn't even need interrupts.

    DT
    <br>

  5. #5
    Join Date
    Jun 2006
    Posts
    3


    Did you find this post helpful? Yes | No

    Default

    Just wanted to say thanks, works great on a 16F690.

    I was going to modify your program a bit, I have an application which uses count down timers, but I thought I should check with you, I noticed a copyright on the code.

    Thanks,
    Mike

  6. #6
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Hi Mike,

    Glad it's working.

    No problem with the copyright.
    You're free to use it any way you want. Well, except posting it somewhere saying you wrote it
    DT

  7. #7
    Join Date
    Jun 2006
    Location
    Bangalore, India
    Posts
    136


    Did you find this post helpful? Yes | No

    Question Having trouble getting accuracy

    Hi Darrel,
    I tried making a LCD clock with calender with the elapsed timer code, but the clock runs nearly 2 seconds slow per day.
    I've made some modifications to the Elapsed_INT.bas.txt file so attached that also with my code ...
    I dont know how to fix this error...
    What should i do?... try tweeking the TimerConst or something???
    Attached Files Attached Files

  8. #8
    Join Date
    Jun 2006
    Location
    Bangalore, India
    Posts
    136


    Did you find this post helpful? Yes | No

    Question Sorry

    Sorry for posting that same message again...
    I was getting an error message...
    The attachment wasn't uploading correctly...
    Attached Files Attached Files

Similar Threads

  1. Instant Interrupts - Revisited
    By Darrel Taylor in forum Code Examples
    Replies: 772
    Last Post: - 17th February 2016, 22:14
  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. Elapsed Timer Demo in a PIC12F675
    By Leonardo in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 21st November 2008, 00:01
  4. Totally Baffled with Elapsed Timer
    By CocaColaKid in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th June 2008, 21:01
  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 : 4

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