Search Results - MEL PICBASIC Forum


Search:

Type: Posts; User: R.G.Keen; Keyword(s):

Search: Search took 0.00 seconds.

  1. Re: Strange results with PBP3 and instant interrupts

    OK. Looks like a DIG command takes roughly 325 instructions per digit number. I would not have guessed that. And clearly didn't guess that. 8-)


    Good trick. I'll remember that one. It fits my...
  2. Re: Strange results with PBP3 and instant interrupts

    I stripped out the extraneous stuff and verified that this test code compiles and gives the same strange results as the whole program. It's running on a 16F1518 with an external 4MHz crystal. I...
  3. Re: Strange results with PBP3 and instant interrupts

    Yep. I'll give it a try in the next day or so.

    I coded around it by using a sacrificial variable to accumulate the count, then using DIG outside the interrupt routine to separate digits. That...
  4. Re: Strange results with PBP3 and instant interrupts

    Yet more interesting results.

    The "DIG" statement works outside of an interrupt routine and does not interfere with interrupts.
    A "DIG" statement inside the interrupt routine sometimes make the...
  5. Re: Strange results with PBP3 and instant interrupts

    Thanks for the reading, and the good advice. What you're saying is generally correct, and it is always possible that I have flatly missed something on the return from interrupt.

    However, the...
  6. Re: Strange results with PBP3 and instant interrupts

    It gets stranger, if more useful. The real problem with blowing out of the interrupt timing was the
    'n = Value DIG i ' statement (which I notice I hosed up posting the source code.)

    I moved the...
  7. Re: Strange results with PBP3 and instant interrupts

    Sure.
    Salient (I think) points:
    - config bits set for external 4MHZ crystal; oscilloscope shows this is actually running at 4MHz
    - DEFINE for 4MHz set
    - Just in case, the OSCCON register is set...
  8. Strange results with PBP3 and instant interrupts

    I have a set of code that worked very well under 2.6a. I changed processors to an enhanced midrange PIC supported only by the new level of PBP, so I upgraded to 3.0.

    Code worked, once I stamped...
  9. Replies
    1
    Views
    16,357

    Moving to PBP3 from 2.6 and MPLab

    I just got my PBP 3 setup and I'm about to install it. However, this situation makes an old healed-over software tools injury itch. :congratulatory:

    I was using MPLab 8.60 and PBP 2.60a. I have a...
  10. Replies
    772
    Views
    595,238

    Re: Instant Interrupts - Revisited

    Thanks for taking the time to point this out for me.

    Like many things, it seems obvious now that you say it, and I get to slap myself on the forehead again. :)

    It's working fine.
  11. Replies
    772
    Views
    595,238

    Re: Instant Interrupts - Revisited

    Just so I don't miss anything, can you direct me to more information on how they have changed? Is that on line?
  12. Replies
    772
    Views
    595,238

    Re: Instant Interrupts - Revisited

    Got it. Thanks very much. Somehow I missed that the error message was the cure.

    I understand the issue now. It seems to work Now got to go burn chips... :)
  13. Replies
    772
    Views
    595,238

    Re: Instant Interrupts - Revisited

    I have a fair amount of experience with MPLab and PBP. I'm trying to hook up instant interrupts, and have run into an odd situation. I've pored through the ASM file, source file, compiler and...
Results 1 to 13 of 13