Showing posts with label 8051 projects. Show all posts
Showing posts with label 8051 projects. Show all posts
Sunday, October 11, 2009

7-segment display

7-segment display

PARTS AND MATERIALS

  • 4511 BCD-to-7seg latch/decoder/driver (Radio Shack catalog # 900-4437)
  • Common-cathode 7-segment LED display (Radio Shack catalog # 276-075)
  • Eight-position DIP switch (Radio Shack catalog # 275-1301)
  • Four 10 kΩ resistors
  • Seven 470 Ω resistors
  • One 6 volt battery

Caution! The 4511 IC is CMOS, and therefore sensitive to static electricity!


CROSS-REFERENCES

Lessons In Electric Circuits, Volume 4, chapter 9: "Combinational Logic Functions"


LEARNING OBJECTIVES

  • How to use the 4511 7-segment decoder/display driver IC
  • Gain familiarity with the BCD code
  • How to use 7-segment LED assemblies to create decimal digit displays
  • How to identify and use both "active-low" and "active-high" logic inputs

SCHEMATIC DIAGRAM


ILLUSTRATION


INSTRUCTIONS

This experiment is more of an introduction to the 4511 decoder/display driver IC than it is a lesson in how to "build up" a digital function from lower-level components. Since 7-segment displays are very common components of digital devices, it is good to be familiar with the "driving" circuits behind them, and the 4511 is a good example of a typical driver IC.

Its operating principle is to input a four-bit BCD (Binary-Coded Decimal) value, and energize the proper output lines to form the corresponding decimal digit on the 7-segment LED display. The BCD inputs are designated A, B, C, and D in order from least-significant to most-significant. Outputs are labeled a, b, c, d, e, f, and g, each letter corresponding to a standardized segment designation for 7-segment displays. Of course, since each LED segment requires its own dropping resistor, we must use seven 470 Ω resistors placed in series between the 4511's output terminals and the corresponding terminals of the display unit.

Most 7-segment displays also provide for a decimal point (sometimes two!), a separate LED and terminal designated for its operation. All LEDs inside the display unit are made common to each other on one side, either cathode or anode. The 4511 display driver IC requires a common-cathode 7-segment display unit, and so that is what is used here.

After building the circuit and applying power, operate the four switches in a binary counting sequence (0000 to 1111), noting the 7-segment display. A 0000 input should result in a decimal "0" display, a 0001 input should result in a decimal "1" display, and so on through 1001 (decimal "9"). What happens for the binary numbers 1010 (10) through 1111 (15)? Read the datasheet on the 4511 IC and see what the manufacturer specifies for operation above an input value of 9. In the BCD code, there is no real meaning for 1010, 1011, 1100, 1101, 1110, or 1111. These are binary values beyond the range of a single decimal digit, and so have no function in a BCD system. The 4511 IC is built to recognize this, and output (or not output!) accordingly.

Three inputs on the 4511 chip have been permanently connected to either Vdd or ground: the "Lamp Test," "Blanking Input," and "Latch Enable." To learn what these inputs do, remove the short jumpers connecting them to either power supply rail (one at a time!), and replace the short jumper with a longer one that can reach the other power supply rail. For example, remove the short jumper connecting the "Latch Enable" input (pin #5) to ground, and replace it with a long jumper wire that can reach all the way to the Vdd power supply rail. Experiment with making this input "high" and "low," observing the results on the 7-segment display as you alter the BCD code with the four input switches. After you've learned what the input's function is, connect it to the power supply rail enabling normal operation, and proceed to experiment with the next input (either "Lamp Test" or "Blanking Input").

Once again, the manufacturer's datasheet will be informative as to the purpose of each of these three inputs. Note that the "Lamp Test" (LT) and "Blanking Input" (BI) input labels are written with boolean complementation bars over the abbreviations. Bar symbols designate these inputs as active-low, meaning that you must make each one "low" in order to invoke its particular function. Making an active-low input "high" places that particular input into a "passive" state where its function will not be invoked. Conversely, the "Latch Enable" (LE) input has no complementation bar written over its abbreviation, and correspondingly it is shown connected to ground ("low") in the schematic so as to not invoke that function. The "Latch Enable" input is an active-high input, which means it must be made "high" (connected to Vdd) in order to invoke its function.

Name Date Author Size DL's Rating Get
8051 Family Instruction set manual 24 Mar : 17:27 Atmel 358.76 kB 5144 Not rated
Intel MCS 51 (8051) User manual 24 Mar : 17:20 Intel 14.09 MB 22634 Not rated
Embedded C book 08 Jan : 05:17
2.14 MB 63118 7.1/8
Embedded C with Keil 04 Jan : 04:29 Keil 1.08 MB 41347 5.7/7
Assembly Programming with keil micro vision 04 Jan : 04:28 Keil 1.67 MB 69545 10/2
Programming Embedded Systems in C and C++ 30 Aug : 21:18 Michael Barr 440.96 kB 15647 5.9/11
Name Date Author Size DL's Rating Get
Monitor and Control of Greenhouse Environment-GreenBee [Project report Included] 11 May : 20:13 Amit Radhakrishnan, Poonam Bansal, Prabhat Kumar, Smitha P., Chinmayananda Das, Ricky 4.07 MB 72419 5.2/4
Simple Digital Voltmeter using 8051 03 Mar : 22:47 Ajay Bhargav 18.3 kB 5946 10/1
Digital Lock Using AT89C2051 with LCD and Keypad - Assembly 31 May : 12:25 Ajay Bhargav 17.46 kB 20432 7.6/8
Electronic Voting machine with Managed Control Unit (Project Report Included) 26 May : 11:05 Shivani, Geetika Gupta, Vibhore Aggarwal, Megha Singh 1.78 MB 64047 4/3
BASCOM-8051 Project : Multicounter Project using AT89C2051 28 Mar : 11:38 GioppY 523.25 kB 29237 10/3
8051 Controller Area Network Project over RS485 protocol 11 Feb : 23:55 Aftab Niaz 1.79 MB 82458 9.6/3
Data acquisition system using 8051 14 Dec : 23:46 Abbas 218.97 kB 31544 7/11
Control your PC with TV remote 25 Sep : 00:05 Ajay Bhargav 280.17 kB 49137 5.4/9
IR Remote Switch using TV remote (RC5 Protocol) 21 Sep : 15:07 Ajay Bhargav 14.38 kB 12810 8.6/6
Digital Code lock with LCD and Keypad using AT89C2051 29 Aug : 17:14 Ajay Bhargav 20.16 kB 17235 7.3/9
Traffic Light Controller project PCB 09 Aug : 14:58 ۞ TPS ۞ 44.75 kB 19906 7/7
SMS based Device Switching 08 Aug : 03:06 Binu 63.59 kB 23027 5.4/14
Secured Wireless Data Communication 08 Aug : 03:05 Binu 0 7923 5.5/2
Two Line Intercom 08 Aug : 02:58 Binu 20.36 kB 4382 Not rated
Traffic Light Controller 08 Aug : 02:57 Binu 13.63 kB 6703 Not rated
Time Operated Electrical Appliance Controlling System 08 Aug : 02:54 Binu 75.88 kB 7043 Not rated
Temperature controlled Fan 08 Aug : 02:52 Binu 25.24 kB 9243 8.5/4
SMS through Telephone 08 Aug : 02:49 Binu 111.4 kB 21879 7.2/4
Microcontroller Based Caller ID (AT89C2051) 04 Jul : 15:33 Binu J 21.03 kB 14954 7/7
Microcontroller Based Digital code Lock (AT89C2051) 04 Jul : 15:33 Binu J 28.35 kB 12658 7/6
Multipattern Running Lights (AT89C2051) 04 Jul : 15:33 Binu J 47.43 kB 10049 3.2/4
Parallel Telephone with auto secrecy (AT89C2051) 04 Jul : 15:33 Binu J 70.39 kB 8304 7.8/5
PC BASED DATA LOGGER (AT89S52 + VB) 04 Jul : 15:33 Binu J 165.57 kB 14719 8.6/3
PC Based Robot (AT89C2051) 04 Jul : 15:33 Binu J 74.22 kB 24703 9.1/6
Prepaid Energy Meter (AT89S52) 04 Jul : 15:33 Binu J 59.07 kB 12877 5.3/8
RF Based Remote control (AT89C2051) 04 Jul : 15:33 Binu J 88.75 kB 13874 5.8/5
RFID Based Attendance System (AT89S52 + RFID) 04 Jul : 15:33 Binu J 115.1 kB 17180 8.8/8
RFID Based Security System (AT89S52 + RFID) 04 Jul : 15:33 Binu J 112.39 kB 16216 9.5/6
InfraRed Remote Switch (6 devices + 1 fan) -AT89S52 04 Jul : 15:00 Binu J 48.53 kB 12132 5.8/9
Fire Fighting Robot (AT89S52) 06 Jun : 19:13 Binu 62.88 kB 15859 6/5
Electronic Voting Machine (AT89S8252) 06 Jun : 19:12 Binu 22.6 kB 8586 4.1/6
DS1820 Based Temperature Controller (AT89C2051) 06 Jun : 19:11 Binu 24.17 kB 10392 8.4/5
Digital Visitor Counter (AT89C2051) 06 Jun : 19:10 Binu 31.36 kB 10578 5.2/5
Device Controlling through PC (Visual Basic) 06 Jun : 19:10 Binu 97.65 kB 11901 6.3/3
BIOMEDICAL MONITORING SYSTEM (AT89C2051 + TX/RX) 06 Jun : 19:08 Binu 52.32 kB 10417 5.5/4
Automatic Room light Controller with Visitor Counter (AT89S52) 06 Jun : 19:07 Binu 35.74 kB 13271 9.7/4
Automatic plant Irrigation (AT89C2051) 06 Jun : 19:06 Binu 18.08 kB 9953 9/2
Automatic College Bell (AT89S8252 & DS1307) 06 Jun : 19:05 Binu 34.46 kB 8966 6.2/7
Auto Control of three phase Induction motor (AT89C51) 06 Jun : 19:03 Binu 41.12 kB 9925 6.5/2
Home Automation Over Internet [Updated] 20 Apr : 13:02 Ajay Bhargav 313.26 kB 20422 8.6/11
HA Server Source Code [incomplete] 25 Mar : 00:25 Ajay Bhargav 163.47 kB 5681 5/3
PCB for AT89C4051 as RTC [Recommended] 15 Feb : 19:29 Ajay Bhargav 34.25 kB 4572 6/5
PCB for AT89C4051 as RTC 10 Aug : 17:23 Junied 298.01 kB 7920 Not rated
Digital Clock using DS1307 for 1x16 LCD 03 Aug : 20:44 Ajay Bhargav 111.9 kB 74587 6.5/2
Digital clock using DS1307 Source Code in C[beta] 31 Jul : 13:38 Ajay Bhargav 0 10232 6/2
Home Automation Over Internet! 11 Jul : 04:36 Ajay 366.46 kB 19817 7.5/14
AT89C4051 As RTC [UPDATE] 20 Jun : 04:36 Ajay 39.12 kB 4914 8/1
Digital Clock with Alarm Using DS1307 (orcad schematic) 27 May : 04:36 Ajay 17.61 kB 9280 7/4
Digital Clock with Alarm Using DS1307 08 May : 15:03 Ajay 80.57 kB 14883 5.7/11
Command Line Interface For 8051 with software 08 May : 14:52 Ajay 84.55 kB 9139 6.3/6