I want to use an ordinary 8-position rotary switch to select one of eight modes in the AVR. Instead of using an entire port I'm thinking I can use an external logic IC to encode 8 to 3 so it'll only use 3 pins on the AVR. The part I identified to do this would be a 74LS148 or 74LS348. However these seem to be antiquated parts and are relatively expensive. I have no reason to think this wouldn't work but is there an easier way to do this?
Joined: Thu. Feb 28, 2013
Posts: 25 View posts