DN044 - Using Trinary Encoding to Reduce Pin Wastage
Updated: Feb 24, 2005
Description
Often enough a device will need to read some dip-switches to preset a range of function
or settings. Trinary coded dip-switches increase dramatically the number of options
available from a fixed number of I/O pins used to read the dip-switch settings. The AVR
microcontroller can achieve this relatively simply by using the programmable pull-up feature
on its I/O Ports without wasting an additional port bit.
NB! This design note is part of the 2nd design note competition at AVRfreaks.net. Until friday march 14. you can rate your opinion of this and other design notes participating in the competition, by clicking the link to the right above. 3 winners will be drawn. |
Categories
- Design Note
| Version | Presented by | Price | Rating |
|---|---|---|---|
| DN044 | (Find Distributor) | Free! | ![]() |
| Documents | Files |
|---|---|
|
|
| Supported AVRs | Supported Tools |
|---|---|
|
|

