counter!
Hi,
Can anyone tell me how to build a counter with my BS2?
This is the problem:
I give a START signal(switch), a few µ or n seconds later an output of an IC becomes HIGH or "1".
I only want to see what·the time is·between the START signal and becoming HIGH of the IC output.
Is this possible?
How do I have·to connect this construction on my "Board Of Eductation"?
If you have any information or an exampleprogram you can send it to "spycom2004@yahoo.com".
Sorry, but I'm a real beginner with BS2!
Greetings,
Yoni
Can anyone tell me how to build a counter with my BS2?
This is the problem:
I give a START signal(switch), a few µ or n seconds later an output of an IC becomes HIGH or "1".
I only want to see what·the time is·between the START signal and becoming HIGH of the IC output.
Is this possible?
How do I have·to connect this construction on my "Board Of Eductation"?
If you have any information or an exampleprogram you can send it to "spycom2004@yahoo.com".
Sorry, but I'm a real beginner with BS2!
Greetings,
Yoni
Comments
Read the 'start' signal on one pin, then start monitoring the other pin with PULSIN.
Your time will be off by the amount of time it takes to read the PULSIN command -- but that offset should be relatively constant.
Make sure you connect the ground of the IC to the ground (VSS) of the BS2, to insure the signal the BS2 reads has a good ground reference.
Did you mean a few (µs or ns) or a few (µs or ms)? If we are talking about nanoseconds, you will need a counter and a clock. The BASIC Stamp can then read the value that the counter counted up to. Again, this is an Elements of Digital Logic subject.