Hi!
    I'm currently building a 16F84-based telescope mount control with step motors and I'm using a gamepad as the main user interface peripheral. This is a typical Gravis-compatible gamepad, with a nine position joystick and four buttons. The gamepad is a perfect solution for my control, it works fine and looks great ;^) . However I'm looking for a simple converter for the gamepad's joystick; I've used PC-like circuits (with 555-like monoastabl es) and comparators with good results, but this is just too much for the simple 3 position joystick's stick of each axis (0 Kohms when up, 50 K when middle, 100 K when down). I need to convert these positions to two bits (10 when the stick is up, 01 when the stick is down, and 00 (or 11) when the stick is in it's natural position). Any ideas for a _simple_ circuit doing this?

            & nbsp;    +--+
+5V O--\/\/\---> |  |-> bit0
         R   &nbs p;   |  |-> bit1
                  +--+

R: 0-50-100 KOhms

Thanks and happy, happy holidays! Merry Xmas and a prosperous new year!!!

-- 
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