A quick question about the speed at which outa really works
ElectricAye
Posts: 4,561
If I tell all the pins from 5 through 10 inclusive to become outputs, do the pins all become output at the very same time, or is there a time lag on the order of nanoseconds or microseconds (or what?) between pins?
My oscilloscope is a piece of junk, so I can't get it to trigger right on the second channel for comparison.
Thanks!
outa[5..10] := %111111
My oscilloscope is a piece of junk, so I can't get it to trigger right on the second channel for comparison.
Thanks!
Comments
BTW, never microseconds!!!!
Okay, so it sounds like any variations would be maybe less than 10 nanoseconds?
In any case, it sounds like any variations would be less than 1 microsecond, yes?
Thanks!
-Phil
Phil, thank you. That's very encouraging. I still have yet to learn any PASM, but if need be, something like this could provide the motivation.
You could always set up an XOR gate into a couple of one shots on say the first and last pin of the group and see if the oneshot gets triggered by a difference between the pins as would be detected by the XOR gate. The XOR could give you the detection speed your scope lacks and the oneshot for the indication that the event occurred.
Just a thought dredged from the 70's. Comer devotes part of a chapter in Logic and State machine design to this under "Hazard Covers".
Frank
Interesting idea. I'll have to remember that for when I've got similar problems. Thanks, Frank
Very good. I'm gonna run with this, then. Thanks, Peter!
Kuroneko did some testing on some pin to pin "blind spots" for very short pulses, but I don't think this is what you were asking.
Do dive into PASM, I started recently, and its a heap of fun.
Yeah, someday I'll just have to do it. Maybe when Prop 2 comes out... soon? :-)
Stop procrastinating NOW!
1. Create a new blank Spin file
2. Type in just 6 lines of PASM code or so and try it out. Blink a LED if you like (of course create a PUB to run this code)
3. You are no longer procrastinating
4. You will be in a much better position when P2 comes along (but then you won't be until P3 comes along and then P4 and so on......)
So the words "I believe" can make things disappear into thin air?
Now we start getting pedantic and we have to mention the # word as well! (Shhhh, let him find out himself)
The assembler on the prop is much simpler than most (any???) micros. The instruction set is regular and easy.
As Peter says, start out with the simple program, like flash a led or two. Then you will be able to look at a few simple pasm objects (not complex ones yet).
So... ehay are you waiting for??? Go for it!!!
I appreciate all the words of encouragement on PASM baptpasm, spasms, orpasms, etc. but I just spent last week choking and sputtering on simple SPIN code dealing with strings, so, being the dork that I am in programming, it will probably be a while. I'm guessing my need for speed will happen this Fall, so maybe it will happen then.
thanks, tho.