Single event data logger wth LCD


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Jan 2008
    Location
    lincoln uk
    Posts
    20


    Did you find this post helpful? Yes | No

    Smile Data logger

    Too right 10 seconds is for test purposes.
    I have tried your code skimask and it does do something..however a bit strange, is there a way of posting scope waveforms on this forum? I think my scope will produce either jpg or bitmap, I'll check it out.
    Rgds
    Mike

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by med2007 View Post
    Too right 10 seconds is for test purposes.
    I have tried your code skimask and it does do something..however a bit strange, is there a way of posting scope waveforms on this forum? I think my scope will produce either jpg or bitmap, I'll check it out.
    Rgds
    Mike
    I'm guessing here...'cause I don't see ALL of your code...just a couple of ideas...

    You're probably seeing jitter caused by ON INTERRUPT.

    The ON INTERRUPT is probably being triggered at different points in the code and might have a different amount of clock cycles before it actually gets into the interrupt code.
    The number of cycles it takes to get to the interrupt code might be different between the 'dummy = dummy + 1' part and the 'goto main' part.

    WDT on? If it is, might be timing out causing the PIC to reset, resetting all the variables, therefore screwing up the timing overall.

    EDIT: Forgot to mention that using DT's Fast Interrupt routines would most likely solve any interrupt latency issues.
    Last edited by skimask; - 23rd January 2008 at 14:08.

  3. #3
    Join Date
    Jan 2008
    Location
    lincoln uk
    Posts
    20


    Did you find this post helpful? Yes | No

    Default Datalogger

    Thanks for that I'll check it out...meantime is it allowed to have a GOTO inside a subroutine to exit that routine before the RETURN?

    Or can I just say IF so-and-so THEN RETURN?

    Rgds
    Mike

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by med2007 View Post
    Thanks for that I'll check it out...meantime is it allowed to have a GOTO inside a subroutine to exit that routine before the RETURN?
    Or can I just say IF so-and-so THEN RETURN?
    Rgds
    Mike
    It's allowed and it'll compiled, but it'll probably bite you in the rear later on 'cause you'll probably end up with a stack overflow that you'll have a hard time tracing.

    The second option works just fine, the IF/THEN-RETURN type thing that is...

Similar Threads

  1. Using Nokia LCD
    By BobP in forum mel PIC BASIC Pro
    Replies: 300
    Last Post: - 3rd May 2018, 04:47
  2. Nokia 3310 display text
    By chai98a in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 26th August 2007, 03:39
  3. Big characters on HD44780 4x20
    By erpalma in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 7th January 2007, 02:21
  4. LCD + bar graph
    By DynamoBen in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 5th October 2005, 14:50
  5. Sinus calculating !
    By Don Mario in forum mel PIC BASIC Pro
    Replies: 29
    Last Post: - 28th November 2004, 23:56

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