Input From Function generator to basic stamp 2e
krims
Posts: 8
hi,
I·am new to basic stamp.
I·configured pin 2 as input and pin 3 as output.
I would like to give the input(square wave form)·from the·signal generator at pin 2 and i has to replicate that wave form at output pin 3.
thanking you,
·
I·am new to basic stamp.
I·configured pin 2 as input and pin 3 as output.
I would like to give the input(square wave form)·from the·signal generator at pin 2 and i has to replicate that wave form at output pin 3.
thanking you,
·
Comments
2) What else does your program have to do?
My signal is 1kHz from siganl generator given as input to pin 2(configured as input) . I want to check whether pin3 (configured as output) follows input(pin 2). I am checking both the wave forms on DSO(digital storage oscilloscope).
this is my approach
INPUT 2
OUTPUT 3
OUT3=IN2
I am doing this, to check how basic stamp accepts input from external circuitary and gives output.
Beacuse in later case the input pin 2 of my basic stamp will get signal from another circuitary which will be in the form of Bit Stream.
So, i am checking here with signal generator .
copyIt:
out3 = in2
goto copyIt
Don't be surprised if the fidelity of this is poor. Statements on the BS2 take several hundred microseconds to execute. Just these two will take maybe 500-600us. With a 1KHz signal, you'll get maybe one or two sample points in a single cycle. The only way to do better is to use a faster processor.
Post Edited (Mike Green) : 3/16/2009 3:28:24 PM GMT
will take about 500 microseconds to run, which is 1/2 cycle at 1000 Hz. For your experiment, you can tune the square wave generator up or down in frequency while watching the 'scope to see if the Stamp can keep up. Will your ultimate bit stream arrive at that rate?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
But i am not getting wave form for output pin 3 on DSO.
my problem is solved.