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.
Type: Posts; User: AndrewC; Keyword(s):
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.
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...
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...
Or perhaps something as simple as:
http://www.pololu.com/catalog/product/391
Gets around having to solder SMD chips :)
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...
Anyone any experience of products such as:
http://www.multilabs.net/ezDISPLAY_Mini.html
Andrew
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...
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...
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...
See my first post - Darrel says not to set the interrupt registers manually.
Andrew
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
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...
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...
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...
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...
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...
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...
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...
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...
Hi Mike,
sounds interesting - explain away :)
Andrew
Hi alain,
Yes, seems to be pretty much what I'm describing. Thanks for the link.
Andrew
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...
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...
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....
.. 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...