Smarthome Remote Control System Producer

KinCony Electronic —- makes our life more beautiful quality more excellent and life more intelligent

Chapter 6. LED Display Application

Posted by admin July - 26 - 2010 - Monday

7-segment LED display is widely used in consumer electronics and industrial controlling. Due to its good visibility, it is often used to display temperature, number, weight, date, time, etc.

The above picture shows the 7-segment LED displays. Each LED display consists of 7 LED segments and 1 LED decimal point.

These segments are usually named to be a, b, c, d, e, f, g, dp, as shown in the above picture.

Different segments lighting up will form different characters or numerical numbers. For example, if segment a, b, g, e, d are lighted on and segment f, c, dp off, numerical number 2 can thus be seen.

The LED displays used in KinCony 8051 MCU Development Platform are common anode. Inside LED display, all anodes of each LED are connected together, in contrast to the common cathode LED display, whose cathodes are together.

There are 8 transistors on the mainboard. These transistors control the on/off state of each LED display, shown in below picture.

In the picture, segment a, b, c, d, e, f, g, dp are connected with MCU’s P0.0 to P0.7 respectively. The base of each transistor which controls the on/off state of the 8 LED displays are connected to P2.0 to P2.7 of MCU. High or low level on transistor’s base causes LED display to light off or on.

Now, it’s time to start our experiment.

Take out the KinCony 8051 MCU Development Platform, connect it to computer via USB cable, serial cable and parallel cable. (USB cable is used to get power from computer. Serial cable is used for emulation. Parallel cable is used for ISP.) Plug the chip SST89E516 into the DIP-40 burn-in socket. (SST89E516 is offered for emulation, and AT89S51 is a blank chip for experiment.)

Now, go back to Keil uVision IDE. Create a new project named ‘led.uv2’, and choose AT89S51 as your target MCU. Upon the prompt that asks you to add startup code to the project, click ‘yes’.

Right click ‘Target 1’, and select ‘Options for Target ‘Target 1’.

In the popped dialog, select Target sheet, and set Xtal (MHz) to 11.0592.

Leave a Reply

Universal Programmer | Gang Programmer | Device Programmer | ISP Programmer | Eeprom Programmer | IC Programmer
Copyright © 2003-2012 Programmerkit.com All Rights Reserved.
Add:Rm 852,4F,Zhejiang Shidai Electronics Market,Dengyun Rd 428, Hangzhou, Zhejiang, China. P.C.:310011