05-08-2008 04:46 PM
05-08-2008 05:06 PM
05-08-2008 05:12 PM
05-08-2008 05:18 PM
The ciruit is as basic as it gets.....using a generic...the one I started with is the ENOR5, 5 input XNOR, then using ground and VCC...wired to either all ground or all VCC and monitor with an O-Scope.
I do have this integrated in a complex circuit, and during diagnosis of problems with that circuit, I built this simple circuit to evaluate its specific function. So, for some reason in the complex and simple configuration, the behaivor does not follow a normal XNOR...
I used other devices...the 3 and 2 input XOR and XNOR with the same results.
What has me really scratching my head is I just built an XOR using 4 AND gates and it seems the logic still fails.....
So, let me know if you used that ENOR5 (can find it during a search) and if it works for you, while I sit here with smoke coming out of my ears...
05-08-2008 05:21 PM
05-08-2008 07:32 PM
Well...it appears there are issues with some of the generic devices.
Using the EXOR you used in a compound configuration, I was able to achieve the proper results for my circuit. Its a bit messy as I just Kludged the 5 Input EXOR equivalent into my circuit.
In any case it is working wonderfully.
I attached the circuit...feel free to use/abuse...
I built the circuit to simulate control of a Maxim digital potentiometer using an Optical Encoder control. The Optical Encoder provides a 2 wire quadrature output. It could be used with any compatible gray code counter; however, the Maxim pot contains its own up/down counter. Its interface uses an up/down control, when held High the wiper position will increment and decrement when held low with a clock input on another pin.
I used two digital inputs with one delayed by .25 msec to emulate the output of the Optical Encoder. This is input into a D Flip Flop to detect rotational direction. If CW, the first output of the Encoder will lead the second output by 90 degrees and opposite for CCW rotation. Since the counter in the Maxim Pot could overflow (restart at zero) if CW rotation passed its max count and it could also overflow if rotated CCW past zero, I needed a way to stop up or down count if either min or max was reached. Further, I needed that control to recognize during max count that a decrement command was present and allow it to count down. The same is true if min count is reached. So, if the user rotates CW beyond max count, the count stops at max and only reacts to a down count or CCW rotation. The same is true if the user trys to rotate CCW beyond min count.
The only step left is to build in enough counters to count to the potentiometers max count.
05-08-2008 08:41 PM
05-08-2008 09:43 PM
Well....ur first thought was spot on....I know exactly what I want to do....unfortunately the laws of physics as well as Basic Electronics prevent my successful accomplishment...HA.
You got me what TIL references....google provided the normal list of "not so" correct but nevertheless funny possibilities. I'll put in a notice to NI.
Thanks for your help!
05-08-2008 09:50 PM
You're most welcome and good luck with your project!
P.S.
Darn those laws of physics and electronics.
05-14-2008 01:33 PM