Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.00 seconds.

  1. Replies
    7
    Views
    5,722

    So should there be any difference in the amount...

    So should there be any difference in the amount of memory used when coding ? Empirically they seem to use the same amount of compiled memory.
  2. Replies
    7
    Views
    5,722

    Thanks for the answer. I used to use GOSUBs for...

    Thanks for the answer. I used to use GOSUBs for pretty much everything but now I keep it for oft visited chunks and use GOTOs to navigate a more linear path. I think I tripped myself up once by going...
  3. Replies
    7
    Views
    5,722

    Programming style - GOTO or GOSUB ?

    I'm looking for GO GO Guru :)

    In pbp, what are the tradeoffs between using GOTO or GOSUB to branch to different areas of code ? Does one use more memory than the other ? Is there a limit to how...
  4. Or perhaps something as simple as: ...

    Or perhaps something as simple as:

    http://www.pololu.com/catalog/product/391

    Gets around having to solder SMD chips :)
  5. USB communication between VB and an 18Fxx31 device

    I've been using an 18Fxx31 PIC for motion control making use of the built in quadrature decoder. Works fine as a stand alone controller. So to make life harder for myself I want to run the motion...
  6. Replies
    0
    Views
    2,667

    Serial graphic display plus touchscreen ?

    Anyone any experience of products such as:

    http://www.multilabs.net/ezDISPLAY_Mini.html

    Andrew
  7. Replies
    16
    Views
    9,238

    Couple of closing comments from me: 1) didn't...

    Couple of closing comments from me:

    1) didn't seem to make any difference whether I used INTCON.4 = 1 or the @ INT ENABLE

    2) This particular routine when in use needs to have a 1sec exit pause...
  8. Replies
    16
    Views
    9,238

    That would be a neat way of waiting for the...

    That would be a neat way of waiting for the pushbutton to release, but shouldn't there also be a pause after the WHILE loop to debounce when releasing the button ?

    What you and Darrel do in your...
  9. Replies
    16
    Views
    9,238

    At first I thought it couldn't be a bounce, but...

    At first I thought it couldn't be a bounce, but then I was just thinking of a "bounce" as I pressed the button. Obviously, a push button can bounce as you release it as well. Simplest thing is...
  10. Replies
    772
    Views
    597,241

    See my first post - Darrel says not to set the...

    See my first post - Darrel says not to set the interrupt registers manually.

    Andrew
  11. Replies
    772
    Views
    597,241

    So where in D_INTS do you configure if you want...

    So where in D_INTS do you configure if you want to trigger off a rising or falling edge for something like INT0 ?

    Thanks, Andrew
  12. Replies
    16
    Views
    9,238

    Okeydokey - so I'll take out the INTCON lines but...

    Okeydokey - so I'll take out the INTCON lines but then where do I tell the D_INTS whether to trigger on a rising or falling edge ?

    Andrew

    ps: I'll add this question to the main D_INTS thread...
  13. Replies
    16
    Views
    9,238

    I am triggering off a pushbutton but it is not...

    I am triggering off a pushbutton but it is not debounce - it triggers once when I press the button, and again when I release.

    I thought of adding an "exit delay" to miss the release, but that...
  14. Replies
    16
    Views
    9,238

    DT_INTS-18 - problem with INT0

    Hi,

    I'm using DT_INTS to interrupt on INT0 for a PIC 18F4431
    The interrupt works fine but seems to trigger on both arising and falling edge.
    Tried to configure the PIC to only look at the...
  15. Replies
    6
    Views
    3,790

    Would work but then I need to rewrite my code - I...

    Would work but then I need to rewrite my code - I don't trigger off an interrupt but instead look at PortB which holds not just the trigger signal but also a small keypad. The unit I'm making isn't...
  16. Replies
    6
    Views
    3,790

    So Alain, One thing that I always find...

    So Alain,

    One thing that I always find difficult to answer, how can you work out how many clock cycles are used by a particular group of PBP instructions ? I could test it empirically but there...
  17. Replies
    6
    Views
    3,790

    Possibly :) The thing is I want an LCD to...

    Possibly :)

    The thing is I want an LCD to display some relevant info for a short time after the shot is taken but then go to sleep.

    I suppose I could use a timer overflow to trigger the SLEEP...
  18. Replies
    6
    Views
    3,790

    Sleep when inactive ... how ?

    I'm sure this is simple but I can't find the answer (even with the new improved search engine) so perhaps I'm phrasing the question wrong.

    I want a 16F628 to go to sleep when inactive for say...
  19. Replies
    16
    Views
    8,001

    More or less makes sense. As I'm only juggling...

    More or less makes sense.
    As I'm only juggling three outputs, I think I'll just sort the outputs into increasing time, calculate the incremental time between trailing edges, put them all on together...
  20. Replies
    16
    Views
    8,001

    Hi Mike, sounds interesting - explain away :)...

    Hi Mike,

    sounds interesting - explain away :)

    Andrew
  21. Replies
    16
    Views
    8,001

    Hi alain, Yes, seems to be pretty much what...

    Hi alain,

    Yes, seems to be pretty much what I'm describing. Thanks for the link.

    Andrew
  22. Replies
    16
    Views
    8,001

    That bit is easy :) In this kind of...

    That bit is easy :)

    In this kind of application I probably only need about a dozen discrete pulse lengths. I'll probably store them in an array and select the array member by scrolling through...
  23. Replies
    16
    Views
    8,001

    Reply to Dave: Yup, that's what described. ...

    Reply to Dave:

    Yup, that's what described.

    The issue is that the three outputs will not always be ordered longest to shortest from bit 0 to bit 2 (or bit 2 to 0 as you ordered them). Not...
  24. Replies
    16
    Views
    8,001

    No, not a software PWM. Actually for...

    No, not a software PWM.
    Actually for controlling some photographic strobes.
    Three command lines, need to fire simultaneously but then shut off after different times and wait for the next trigger....
  25. Replies
    16
    Views
    8,001

    Synchronous pulses

    .. not sure if that is the correct title but want I want to do is output a pulse in parallel on three different pins. The pulses will be of different lengths (1msec down to a few usecs) and the...
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4