8×8 dot matrix LED driven by single chip microcomputer

Publisher:静默思考Latest update time:2013-03-12 Source: 51heiKeywords:MCU  8×8 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

  LED Principle and Control Technology

  1. What is LED?

  LED is the abbreviation of light-emitting diode. In the PN junction of certain semiconductor materials, when the injected minority carriers recombine with the majority carriers, the excess energy will be released in the form of light, thereby directly converting electrical energy into light energy. When a reverse voltage is applied to the PN junction, it is difficult for minority carriers to be injected, so no light is emitted. This type of diode made using the principle of injection electroluminescence is called a light-emitting diode, commonly known as LED.

  2. Characteristics and advantages of LED electronic display screen

  As a modern electronic media, LED electronic display screen is irreplaceable by any other media due to its flexible display area (dividable and arbitrary assembly), high brightness, long life, large capacity, digitalization and real-time performance. LED electronic display screen makes   full use of modern information technology to integrate and perfectly combine sound, light, electricity, machinery and other disciplines, and is a high-tech information publishing terminal product that integrates video, animation, subtitles and pictures.
LED

Figure ( 1 ) shows the appearance and pin diagram of the 8 × 8 dot matrix LED . Its equivalent circuit is shown in Figure ( 2 ). As long as the corresponding X and Y axes are forward biased, the LED can be lit. For example, if you want to light up the upper left corner LED , then Y0=1 , X0=0 . When applied, the current limiting resistor can be placed on the X axis or Y axis.

 

Click to browse the next page

Figure ( 1 ) 8 × 8 dot matrix LED appearance and pin diagram [page]

 

Click to browse the next page

 

Figure ( 2 ) 8 × 8 dot matrix LED equivalent circuit

 

 Click to browse the next page

Figure ( 3 ) 8 × 8 dot matrix LED circuit principle

 

Introduction to dot matrix LED scanning method

Dot matrix LED generally adopts scanning display, and its actual application can be divided into three ways:

(1)        Point scanning;

(2)        Line scanning;

(3)        Column scanning.

If the first method is used, the scanning frequency must be greater than 16 × 64 = 1024Hz and the period must be less than 1ms.

Yes. If the second and third methods are used, the frequency must be greater than 16 × 8 = 128Hz , and the period must be less than 7.8ms to meet the visual retention requirements. In addition, when driving one column or one row ( 8 LEDs ) at a time , an external drive circuit is required to increase the current, otherwise the LED brightness will be insufficient. As shown in Figure 3 .

 

  The following is a routine that uses the P1 port to control scanning and the 74HC164 to control the display output, so that the 8 × 8 dot matrix LED displays an “×”. As shown in Figure ( 3 ). [page]

 

CLK EQU       P3.2

DINA      EQU       P3.3

DINB      EQU       P3.4

CLEAR   EQU       P3.5

 

ORG       0000H

AJMP    MAIN

ORG       0100H

MAIN:

       MOV      SP,#70H           ; Set stack pointer

       MOV       50H,#07EH      ; Set the column data to be sent (Y0~Y7)

       MOV       51H,#0BDH

       MOV      52H,#0DBH

       MOV       53H,#0E7H

       MOV      54H,#0E7H

       MOV       55H,#0DBH

       MOV       56H,#0BDH

       MOV       57H,#07EH

       CLR CLEAR ;                    Initialize I/O port

       SETB      CLK

       SETB      DINA

       SETB     DINB

       SETB      CLEAR

main loop:

       mov          r6,#8h ;               Set the number of scans

       mov         dptr,#09000h     ; read scan port data

       MOV       R1,#50H           ; Specify column data pointer  

flashcy:         

       MOV       A,@R1             ; read column data

       MOV      R0,A

       INC R1 ;                            column data pointer plus 1

       CLR       A

       MOVC     A,@A+DPTR

       MOV      P1,#0FFH

       LCALL    SENDTO

       MOV      P1,A

       INC        DPTR

       LCALL   DELAY

       DJNZ       R6,flashcy

       SJMP      MAINLOOP

sendto: ;                                      Send data subroutine

       PUSH      ACC

       CLR      CLK

BROADCAST TIME:

       MOV      R7,#08H

       MOV      A,R0

       CLR       C

SENDCY:             

       RRC       A

       MOV      DINA,C

       SETB      CLK

       CLRCLK       

       DJNZ       R7,SENDCY

       POP       ACC

       RIGHT

DELAY:   MOV      R7,#01         ; Delay subroutine

DELAY0: MOV     R4,#17

DELAY1: MOV     R3,#28

        DJNZ     R3,$

        DJNZ    R4,DELAY1

        DJNZ     R7,DELAY0

        RIGHT

 

ORG       09000H

DB    0FEH, 0FDH, 0FBH, 0F7H, 0EFH, 0DFH, 0BFH, 07FH       ; X0~X7 ( column scan )

 

end

Keywords:MCU  8×8 Reference address:8×8 dot matrix LED driven by single chip microcomputer

Previous article:Design of a bell ringer based on a single chip microcomputer
Next article:Design of single chip remote light control box

Recommended ReadingLatest update time:2024-11-16 16:51

What are the delay methods of single chip microcomputer?
There are usually two ways to achieve delay: one is hardware delay, which requires the use of timers/counters. This method can improve the CPU's working efficiency and achieve accurate delay; the other is software delay, which mainly uses loops. 1 Using timers/counters to achieve accurate delay Single-chip microcomp
[Microcontroller]
Design of sailboat attitude meter based on PIC16F877A microcontroller and SCA60C chip
  Sailing is gaining more and more attention. How to use modern technology to assist training and improve competition results is particularly important. Considering the real-time data collection in the arena to guide training and reduce the workload of sailing coaches, the design of a sailing attitude meter can enable
[Microcontroller]
Design of sailboat attitude meter based on PIC16F877A microcontroller and SCA60C chip
How to use 51 microcontroller to implement traffic lights
lab environment Software: Keil5+Proteus7 Components (main): AT89C51*1, BUTTON * 1, 7SEG-MPX2-CA * 1, LED-GREEN * 8, LED-RED*4, LED-YELLOW*4 Experimental principle 7SEG-MPX2-CA digital tube 7SEG-MPX2-CA digital tube is a two-digit anode digital tube with 10 pins, which are controlled by eight pins labeled a-dp. The dis
[Microcontroller]
Microchip’s WBZ350 RF-Ready Multiprotocol MCU Module, Now Available at Mouser Electronics, Simplifies Wireless Application Development and Accelerates Time to Market
October 18, 2024 – Mouser Electronics, the industry’s leading New Product Introduction (NPI) distributor of the widest selection of semiconductors and electronic components™, is now stocking Microchip Technology’s WBZ350 RF-ready multiprotocol MCU module. The WBZ350 module is a secure 32-bit MCU from the PIC
[Semiconductor design/manufacturing]
Microchip’s WBZ350 RF-Ready Multiprotocol MCU Module, Now Available at Mouser Electronics, Simplifies Wireless Application Development and Accelerates Time to Market
Single chip C language frequency meter source code
This program is developed on the 51hei MCU development board. If you need to transplant it to your own circuit, just modify the corresponding port. //********************************frequency meter********************************* //*******************************Count maximum value 1MHZ***************************
[Microcontroller]
Design a doorbell using a single chip timer
Hardware Connection: Code: #include reg52.h #define uchar unsigned char #define uint unsigned int sbit Key = P1^7; sbit DoorBell = P3^0; uint p = 0; void Timer0() interrupt 1 {   DoorBell = ~DoorBell; p++; if(p 400) { TH0 = (8192-700)/32; TL0 = (8192-700)%32; } else if(p 800) { TH0 = (819
[Microcontroller]
Design a doorbell using a single chip timer
Basic knowledge of MCU
1. If the MCU has a serial port peripheral, adding a level conversion chip, such as MAX232, SP3485, will become the RS232 and RS485 interface. 2. RS485 uses differential signal negative logic, +2+6V represents 0, -6-2 represents 1. There are two types of wiring: two-wire and four-wire. The four-wire system is a full
[Microcontroller]
Automatic Control of Rice Milling and Polishing Machine Using Single Chip Microcomputer
1 Introduction After multiple milling processes, the rice bran has been stripped, but the surface of the rice grains is relatively rough. In order to ensure the quality and appearance of the rice, the last process of rice processing is required: polishing. The polishing of rice grains is completed by a rice milling an
[Microcontroller]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号