PDA

View Full Version : BCD Keypad with 7 Segment LED Display


mrdon219
07-01-2009, 01:26 AM
Hi SNAP Tech Enthusiasts,

Here's a SNAPpy script that can convert 4Bit Binary data into its equivalent Decimal value and display it on a 7 Segment LED Display. In addition to this Digital Data Converter Tutorial, this SNAPpy script can be applied in various Wireless Embedded Controls Applications with minor changes to the script. The Lab Project can be obtained from the Application Notes Forum. Check it!!!


Don W.

kbanks
07-01-2009, 09:28 AM
Possible source of confusion... the ASCII-ART wiring diagram in the script source code does not match the implemented code or the documentation.

It appears SW2 got moved from GPIO_7 to GPIO_4.


SW2_PIN = 4

# Wiring Diagram
# ________________
#SW1-------->|GPIO8 |
#Sw2-------->|GPIO7 GPI09 |------>Output(A)
#SW3-------->|GPI06 GPIO10|------>Output(B)
#SW4-------->|GPI05 GPIO11|------>Output(C)
# | GPIO12|------>Output(D)
# |______________|

MihaVasilev788
08-16-2010, 01:24 AM
а мужики-то не знают :)