Hello Pablo, please do not send HTML to a mailing list. -- Thanks and best regards, Wolfgang PIC links: http://people.frankfurt.netsurf.de/wky/pic.htm On 24.12.1998, you wrote: Mark Willis wrote:
Sounds like a job for linear electronics <G> Think 2 Op-Amps, set up
as voltage comparators, each outputs a 1 when the output is beyond it's
set point; Something like this {Note that the /|\ is a "Crossover", not
a connection!} Double-check me on it as it's late & I am in a rush to
get supplies before the Christmas Storm of '98 closes us down here <G>BTW, if the joystick has one end at +5 and the other end at Gnd, omit
the 50k resistor there as ground is already handled <G>This would generate 10, 00, 01; For 11 in the middle, swap the
connections from the ends of the 10k resistor to the voltage
comparators.(You're responsible for power to the Voltage Comparators/OpAmps, just
power them from Gnd and +5 Volts - and you may want to buffer them if
necessary, unlikely though. <G>)
Thanks for your answer, Mark, but actually that's the same solution I'm usi ng now (comparators). What I'm seeking is a _simpler_ circuit that will do the same job. The reason for this is to use the least number of components possible...Cheers!-- Pablo Bleyer Kocik |"The most exciting phrase to hear in science, the pbleyer | one that heralds new discoveries, is not `Eureka!' @dgf.uchile.cl | (I found it!) but `That's funny...'" -Isaac Asimov