Damn automatic spell check.... Harrrrrumph... mutter, mutter, mutter.... The resister between positions and cap to a SINGLE pic pin (pulse high, read and count till low) is the best I've heard so far, but it may be hard to calibrate the timing. That is a single pic pin, 11 resisters and one cap if anybody is counting. James Newton, webmaster http://get.to/techref jamesnewton@geocities.com 1-619-652-0593 phone > -----Original Message----- > From: pic microcontroller discussion list > [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of William K. Borsum > Sent: Wednesday, June 23, 1999 11:53 AM > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: Best way to interface a 12 pos rotary switch > > > At 10:32 AM 6/23/99 -0700, you wrote: > >Another thought, if you don't mind including 20 little diodes > between the 12 > >switch contact and the 4 pins, is a desecrate 12 to 4 demux. > E.g. contact 0 > >is not connected at all (reading 0000 implies position 0), contact 1 is > >connected to pin 0 via a diode (reading 0001 = position 1), > contact 2 to pin > >1 (always use a diode!) (0010 = 2), contact 3 to pin 0 and 1 (two more > >diodes) (0011 = 3) and so on to position 11 which is connected > to pins 0,1, > >and 3 (1011 = 11). > > > Please tell me--I'm really curious! What is a "desecrate" demux? > > Perhaps one that has been ex-communicated. > > The possible puns are endless. > > (sorry for the "wasted" bandwidth--I couldn't resist.) > > > ****************************************************************** > ********** > ******** > All legitimate attachments to this email will be clearly identified in the > text. > William K. Borsum, P.E. > OEM Dataloggers and Instrumentation Systems > & >