Elapsed Timer on 12F683 doesn't work
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2005
    Location
    Germany
    Posts
    8

    Default Elapsed Timer on 12F683 doesn't work

    I have this code example:

    INCLUDE "DT_INTS-14.bas"
    INCLUDE "ReEnterPBP.bas"
    INCLUDE "Elapsed_INT.bas" ; Elapsed Timer Routines

    ASM
    INT_LIST macro ; IntSource, Label, Type, ResetFlag?
    INT_Handler TMR1_INT, _ClockCount, PBP, yes
    endm
    INT_CREATE ; Creates the interrupt processor
    ENDASM

    @ INT_ENABLE TMR1_INT ; Enable Timer 1 Interrupts

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

    Main:
    IF SecondsChanged = 1 THEN
    SecondsChanged = 0
    LCDOUT $FE,2, DEC Days,"d-",DEC2 Hours,":",DEC2 Minutes,":",DEC2 Seconds
    ENDIF
    GOTO Main
    And get under PBP3 this error message:

    ERROR: Variale wsave3 position request 416 beyond RAM-END 191
    ERROR: Variale wsave2 position request 288 beyond RAM-END 191

    Who can kindly help me?
    Attached Images Attached Images  

  2. #2

    Default Re: Elapsed Timer on 12F683 doesn't work

    You need to comment out wsave2 and wsave3 lines in the include file.

    Read this
    http://dt.picbasic.co.uk/INT14/DTINTS-14

  3. #3
    Join Date
    Jun 2005
    Location
    Germany
    Posts
    8

    Default Re: Elapsed Timer on 12F683 doesn't work

    Thank you, now it works!

Similar Threads

  1. pic16f88 doesn't work at all
    By aswasw3 in forum General
    Replies: 1
    Last Post: - 15th April 2016, 04:47
  2. PortA Doesn't Work
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 11
    Last Post: - 8th September 2015, 18:41
  3. first project, and yes, doesn`t work
    By bogdan in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 28th April 2009, 06:13
  4. why this doesn't work?
    By strasni_betmen in forum Serial
    Replies: 7
    Last Post: - 4th September 2008, 15:56
  5. HSERIN doesnt work
    By wurm in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 29th July 2007, 14:23

Members who have read this thread : 20

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts