L
Lee Philips
Hey is that your real name or are you just a Twilight Zone fan?
uiu said:Can you explain what "non-blocking" means?
Thanks!
I wasn't trying to humiliate anyone either, he asked for comments. The
fact is needing multiple delays in a program is very commonplace and
it's normaly done with a few lines. What the author produced, however
well meaning, was just terrible. Thats not a problem for most people,
they just delete it in a heartbeat but a real beginner doesn't know any
better. Iv'e shown him how to do it, if he did it again that way he
would see for himself but his pride has been hurt, that was never my
intention, and so he's gone on the defensive. Your right about hardware
engineers messing up software but then again so do software engineers.
Hi,
I had many requests about pic timers, so that I wrote a little C example to
show how to make multiple non-blocking asynchronous delays with only one pic
timer :
http://www.micro-examples.com/public/microex-navig/doc/099-timers-delays.html
Is there something about a PIC that makes linked lists impractical?
The normal way to do this sort of thing is to only count away the shortest
time delay. The delays need to be in some sorted form for this to work so
a linked list is normally the way to go.
Ken Smith said:Is there something about a PIC that makes linked lists impractical?
The normal way to do this sort of thing is to only count away the shortest
time delay. The delays need to be in some sorted form for this to work so
a linked list is normally the way to go.
BrunoG said:Cbarn, I have nothing to defend. Your assumption about shortening this
code within 50 bytes may put beginners and newbies into confusion.
This is not the best service they can get from here.
Bruno
http://www.micro-examples.com/public/microex-navig/doc/099-timers-delays.html
Why would that confuse anyone?
Lee Philips said:Hey is that your real name or are you just a Twilight Zone fan?
to setFrom what little I know of binary, I firgure I could use DIP switches
BrunoG said:They could believe that it is possible.
I'm afraid this discussion could bore other people, so if
you want to continue it, please give at least some technical argument
or discuss it in private :
http://www.micro-examples.com/forums/
Thanks,
Bruno
Electronics is not my field, so I scoured the internet to find counter
circuits, but none of what I found really hits my exact needs.
I'm looking for a 2 or 3 digit counter that will count down from a
predefined number to zero - with a RESET switch to send the count back
to
the max number.
to set
the maximum number that the count starts at - a bank of 8 DIP switches
gives me a max of 255.
I need to count objects passing a certain point and I figured I use a
LED emitter and receiver pair, probably IR.
Can any one offer me some help?
Silvester
Electronics is not my field, so I scoured the internet to find counter
circuits, but none of what I found really hits my exact needs.
I'm looking for a 2 or 3 digit counter that will count down from a
predefined number to zero - with a RESET switch to send the count back
to
the max number.
to set
the maximum number that the count starts at - a bank of 8 DIP switches
gives me a max of 255.
I need to count objects passing a certain point and I figured I use a
LED emitter and receiver pair, probably IR.
Can any one offer me some help?
Silvester said:Electronics is not my field, so I scoured the internet to find counter
circuits, but none of what I found really hits my exact needs.
I'm looking for a 2 or 3 digit counter that will count down from a
predefined number to zero - with a RESET switch to send the count back
to
the max number.
to set
the maximum number that the count starts at - a bank of 8 DIP switches
gives me a max of 255.
I need to count objects passing a certain point and I figured I use a
LED emitter and receiver pair, probably IR.
Can any one offer me some help?
Silvester
Silvester said:Electronics is not my field, so I scoured the internet to find counter
circuits, but none of what I found really hits my exact needs.
I'm looking for a 2 or 3 digit counter that will count down from a
predefined number to zero - with a RESET switch to send the count back
to
the max number.
to set
the maximum number that the count starts at - a bank of 8 DIP switches
gives me a max of 255.
I need to count objects passing a certain point and I figured I use a
LED emitter and receiver pair, probably IR.
Can any one offer me some help?
Silvester
Logic design is fun these days.
I allready gave you the algorithms, compile them and see for yourself.
The said:In BrunoG's defence, what is being specified is no simple 50 line pic
assembler routine.
Well Andy I didnt say the whole program would be 50 bytes, just the
parts that gives you the functionality, I hate that word, you simply
cut and paste them into your existing program. 50 lines? oh no, 50
bytes, thats 25 lines max.
In BrunoG's defence, what is being specified is no simple 50 line pic
assembler routine.