New TV project...
ackerdackerly
Posts: 4
Once again, after a long hiatus, I am back with another project for the TV station that I work for.
This time, I need to monitor the state of 4 data lines - or a nibble of data - at one time.· When a change occurs on the data lines, I need to output the change on another set of 4 pins with a delay added depending on the pattern of the new data.
If the content of the input is binary 0100 and it changes to 0010, I want to read and write the nibbles together as a unit instead of reading and resetting the pins indivdually.· The reason being that the reading and outputting of the pattern must be quick and·"parallel" in nature so as to NOT confuse the equipment that is connected to the output.
I was playing with the INA, INB OUTA and OUTB nibbles but am not getting any useful results.
Is there a way to read and write a 4-bit binary value to 4 pins as a nibble instead of individually from/to each pin?
Talk among yourselves...
This time, I need to monitor the state of 4 data lines - or a nibble of data - at one time.· When a change occurs on the data lines, I need to output the change on another set of 4 pins with a delay added depending on the pattern of the new data.
If the content of the input is binary 0100 and it changes to 0010, I want to read and write the nibbles together as a unit instead of reading and resetting the pins indivdually.· The reason being that the reading and outputting of the pattern must be quick and·"parallel" in nature so as to NOT confuse the equipment that is connected to the output.
I was playing with the INA, INB OUTA and OUTB nibbles but am not getting any useful results.
Is there a way to read and write a 4-bit binary value to 4 pins as a nibble instead of individually from/to each pin?
Talk among yourselves...
Comments
Just wondering... What are you trying to control, a router of some sort? I also work at a TV station and just built a complete master switcher built with two basic stamps...
If I didn't quite understand the quesiton correctly just let me know back...
Budget considerations are forcing us to develop a "cheap"·system to switch HD video.
The idea is to use the tally signals off the analog·MC switcher to drive a 12x HD switcher which switches HD programming - when available - to our Digital transmitter chain.
Currently, there are four digital sources:·
the SD version of analog.
Prime-time Network programming that shall be nameless.
the HD output of the video server.
one HD-capable satellite receiver - just in case.
Due to the difference in path latencies, switched HD video would be clipped by a finite number of frames at the beginning and end of each switch - depending on the source.
My supervisor has already designed a circuit like you mentioned in your post but has asked me to create a Stamp-based equivalent.
As you can imagine, we are talking about one line in four changing state at any given time with a delay depending on what line it is.
My idea is, since we are dealing with four lines, to somehow load·those four bits simultaneously into a memory nibble and then loop.· Once a change in the pattern/value occurs, logic is applied, a suitable delay occurs and the pattern/value is sent out four other pins to the HD switcher's GPI control input.
It is the loading/sending of those bits simultaneously·that is causing me difficulty.· I imagine that, because I have forgotten so much since my last Stamp project, I am overlooking an obvious solution...·or maybe I am trying too hard to do this.
BTW, do you know the correct method to drain excess fluid from an automatic transmission?··
Post Edited (ackerdackerly) : 2/6/2009 11:05:42 PM GMT
Now, back to the first problem... I have actually found controlling things serially is a lot easier then using the GPI's. I have built many things in our station using the GPI but again found timing was an issue. Really once you understand how some of the serial video communcations work it isn't too different between manufacturers, from Grass Valley Encore, to Pesa BURP, to Utah party-line...
What brand/model is your current master switcher? Does it have its own frame or does it control router busses of your house router? What brand is your HD router? Do you need to worry about any different leval switching? Does your up-convertor allow you to compesate for any delay?
Let me know and I will see what I can come up with for you...
PS... from the nameless programming, I put a guess on ABC?, CBS seems to be fairly well timed between SD-HD...
Please disregard my unfortunate attempt at humor with the automatic transmission question.
Is it possible to load data simultaneously from a group of pins as if it were a memory location?
·
What's wrong with INA? You should be able to assign the value like so
myNumber var nib
myNumber = INA
Post Edited (SRLM) : 2/7/2009 2:06:03 AM GMT
I'll try that syntax and see what develops
Basically, how it works, it looks at the four input pins to see if/when any change, then wait a preset delay depending on the input selected, then it will send the data to OUTB...
This is designed for a digital in, meaning pin0=1, pin1=2, pin2=3, pin3=4....· This will probably not work right for a binary input...· If you need binary you sould be able to just add 12 more 'pause' lines in there...· I was assuming no binary because you are using a 4 input HD router...
Let me know if I am on the right track or if I am completely off on this code....
Also, I think you can change the "%0001" to just "1" and it should act the same way...
I've left out the comments, which you can add back.
-Phil
Post Edited (Phil Pilgrim (PhiPi)) : 2/7/2009 3:32:34 AM GMT