Hey guys iam a 4th year engineering student n i want to design a 26 way ribbon cable tester .
Can any one help me with ideas on how to do it with a processor and it should have 26 green leds and one red led to give the status of the cable as
1. good then all green leds light up 2. shorted cable then red led lights up 3. missing connection then that particular led will not be lit related to that wire in a ribbon cable 4. if ribbon able is crimped the wrong way then red led will light up with a beeping buzzer
so could any one please help me with any ideas on how to do it in code ( and give me teh code hehehe ) basic using asembla c or any other advise is appreciated
( and give me teh code hehehe )
This is not funny. You're a 4th year student, so we can assume you should have quite some learning experience. Haven't you figured out the importance of assignments by now? by the way, you do not even indicate which chip you are using. How can anybody give you what you want?
Grr. My post is porbably still at home on "preview". Not the first time.
Giving you code would take all the fun from you.
You may use three shift registers.
One to shift out a test vector to one side of the cable.
One to shift in the state of all wires on the other side.
A third to shift out the LED state - but remember to check drive capability of the individual pins and the total chip.
You might show a short by flashing the green LED's for the shorted pair(s) while having the red error LED lit.
Using shift registers means that you can support different width of cables - for example having a pin header to support up to 64-wire cables.
Remember that unelss you key the pin headers, you must also support reversed cables where one side has been turned 180 degreess. And if you support testing of cables of different width, you may have to auto-detect if the two sides are shifed left or right in relation to each other.
The code should be quite trivial to write. And it is your project.