Search Results - MEL PICBASIC Forum


Search:

Type: Posts; User: Art; Keyword(s):

Search: Search took 0.00 seconds.

  1. Replies
    21
    Views
    18,981

    Re: 1ms Elapsed Timer Demo with DT's Instant Interrupts

    Hi, looks like I ignored you there..... We took it to email!
  2. Replies
    21
    Views
    18,981

    Re: 1ms Elapsed Timer Demo with DT's Instant Interrupts

    Hi Tabsoft :)
    No, but I had a moment of inspiration. Wouldn’t even need the interrupt, but it will help.
    The idea is to sync it roughly, with port.0 interrupt, then turn off ext int and the clock...
  3. Replies
    21
    Views
    18,981

    Re: 1ms Elapsed Timer Demo with DT's Instant Interrupts

    There might not be a need to if I fix the second channel on my scope, and do what you did,
    except look at the generated pulse on one ch, and the GPS pulse on the other.
    Then if I can’t sort it out...
  4. Replies
    21
    Views
    18,981

    Re: 1ms Elapsed Timer Demo with DT's Instant Interrupts

    It just occurred to me I’d have to comment out anything instant interrupts does with other interrupts
    just in case activity on portb.0 changes the time that takes to execute (prior to the timer...
  5. Replies
    21
    Views
    18,981

    Re: 1ms Elapsed Timer Demo with DT's Instant Interrupts

    1.. Yes.
    There is a little more in the main program to handle the ext interrupt, but essentially yes (for question 2).

    The main program turns external int off and clears it’s trigger flag as well...
  6. Replies
    21
    Views
    18,981

    Re: 1ms Elapsed Timer Demo with DT's Instant Interrupts

    Ok thanks for confirming, I figured as much.
    Dt’s original timer, or a bastardised version of it, because I know for the project it will always be clocked at 10 MHz,
    and I also know I will only...
  7. Replies
    21
    Views
    18,981

    Re: 1ms Elapsed Timer Demo with DT's Instant Interrupts

    This is about an issue of my own. There would be different ways to implement in a program.
    It probably should have been commented like this:


    ; ----------------- ADD TimerConst to TMR1H:TMR1L...
  8. Replies
    21
    Views
    18,981

    Re: 1ms Elapsed Timer Demo with DT's Instant Interrupts

    Ok, so if you had other interrupts enabled, some timer ticks may have occurred before this routine?
    I have only used the Elapsed Timer, and done others manually.

    I hope you don’t mind discussion...
  9. Replies
    21
    Views
    18,981

    Re: 1ms Elapsed Timer Demo with DT's Instant Interrupts

    Hi :)

    I was looking through your version and come across this again, as is also in DT’s original code:


    ; ----------------- ADD TimerConst to TMR1H:TMR1L
    ADD2_TIMER macro
    CHK?RP ...
  10. Replies
    21
    Views
    18,981

    Re: 1ms Elapsed Timer Demo with DT's Instant Interrupts

    Ok so the LCD write command must get interrupted, and is fine to continue the rest of the display
    with updated values after the interrupt, or the entire display would never get written.
    In that...
  11. Replies
    21
    Views
    18,981

    Re: 1ms Elapsed Timer Demo with DT's Instant Interrupts

    To do the digit lookups for 7 segment LEDs, you’d need to print and delay for Human vision all digits of the clock for every millisecond.
    It’s a tough call, but the delay can be shorter the faster...
Results 1 to 11 of 11