On 19 Aug 97 at 15:45, Alec Myers wrote: > Does any know a cute way of reading three BCD thumbwheels that uses > less than > i) Twelve i/o pins > ii) Seven pins and 12 diodes? > I wouldn't really recommend it - but you said 'cute' ... 3 io pins and 12 resistors - but the io pins have to be a/d A variant of the above would be using schmitt inputs (some of the pics ios are) and using a capacitor - measure time. You'd probably need to calibrate. Realistically, I'd go for your solution 2 - probably using the soft pullups on port B in lieu of the resistors you'll still need and didn't mention. MikeS === For PICLIST help (including "unsubscribe" instructions), === send an e-mail containing the single phrase "help piclist" === to: listserv@mitvma.mit.edu