HT48R50A 5X7 LED dot matrix display example program

Publisher:Lihua1314520Latest update time:2018-01-26 Source: eefocusKeywords:HT48R50A  LED Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

HT48R50A 5X7  LED dot matrix display example program

5X7 LED dot matrix display based on HT48R50A

 

; ********************************************
; Function: 5X7 LED dot matrix display sample program *


; MICroProcessor : HT48R50A-1/28SKDIP-A      *

; Author:         www.picavr.com              *
; Crystal :       4MHz                       *
; ********************************************

#INCLUDE                HT48R50A-1.INC
;---------------------------------------------
DATA    .SECTION        AT 60H  'DATA'
LOOP_COUNTER            DB      ?       ;[60H]
DISPLAY_COUNTER         DB      ?       ;[61H]
DISPLAY_DATA            DB      ?       ;[61H]
INDEX                   DB      ?       ;[62H]
SCAN_DATA               DB      ?       ;[63H]
SCAN_COUNTER            DB      ?       ;[64H]
DELAY_COUNTER           DB      ?       ;[65H]
;---------------------------------------------
CODE    .SECTION        AT 00H  'CODE'
        ORG     00H
        JMP     START
START:
        CLR     PAC
        CLR     PBC
        CLR     PCC
        CLR     TBLP
        CLR     INDEX
        MOV      A,10H
        MOV      LOOP_COUNTER,A
LOOP:
        MOV      A,0C0H
        MOV      DISPLAY_COUNTER,A
DISPLAY:
        MOV      A,INDEX
        MOV      TBLP,A
        TABRDL  DISPLAY_DATA
        MOV      A,DISPLAY_DATA
        MOV      PA,A
        CLR     PB
        CALL    DELAY
        SET     PB
        CALL    DELAY
        INC     TBLP
        MOV      A,0F7H
        MOV      SCAN_DATA,A
        MOV      A,04H
        MOV      SCAN_COUNTER,A
SCAN:
        TABRDL  DISPLAY_DATA
        MOV      A,DISPLAY_DATA
        MOV      PA,A
        MOV      A,SCAN_DATA
        MOV      PC,A
        CALL    DELAY
        SET     PC
        CALL    DELAY
        INC     TBLP
        RR      SCAN_DATA
        SDZ     SCAN_COUNTER
        JMP     SCAN
        SDZ     DISPLAY_COUNTER
        JMP     DISPLAY
        MOV      A,5
        ADDM    A,INDEX
        SDZ     LOOP_COUNTER
        JMP     LOOP
        JMP     START
        RET
;---------------------------------------------
DELAY   PROC
        MOV      A,0FFH
        MOV      DELAY_COUNTER,A
WAIT:
        SDZ     DELAY_COUNTER
        JMP     WAIT
        RET
DELAY   ENDP
;---------------------------------------------
        ORG     0F00H
        DC      0C1H,0BEH,0BEH,0BEH,0C1H ;0
        DC      0FEH,0FEH,080H,0DEH,0FEH ;1
        DC      0CEH,0B6H,0BAH,0BCH,0CEH ;2
        DC      0C9H,0B6H,0B6H,0BEH,0DDH ;3
        DC      0FBH,080H,0DBH,0EBH,0F3H ;4
        DC      0B9H,0B6H,0B6H,0B6H,086H ;5
        DC      0D9H,0B6H,0B6H,0B6H,0C1H ;6
        DC      08FH,0B3H,0BCH,0BFH,09FH ;7
        DC      0C9H,0B6H,0B6H,0B6H,0C9H ;8
        DC      0C1H,0B6H,0B6H,0B6H,0CDH ;9
        DC      0E0H,0DBH,0BBH,0DBH,0E0H ;A
        DC      0C9H,0B6H,0B6H,0B6H,080H ;B
        DC      0DDH,0BEH,0BEH,0BEH,0C1H ;C
        DC      0E3H,0DDH,0BEH,0BEH,080H ;D
        DC      0BEH,0B6H,0B6H,0B6H,080H ;E
        DC      0BFH,0B7H,0B7H,0B7H,080H ;F
;---------------------------------------------
        END


Keywords:HT48R50A  LED Reference address:HT48R50A 5X7 LED dot matrix display example program

Previous article:HT48R50A LCD Display Sample Program
Next article:HT48R50A 7-segment digital tube display program

Recommended ReadingLatest update time:2024-11-16 21:29

Using LLC half-bridge controller UCC25710 to realize LED lighting
1. UCC25710: LLC Half-Bridge Controller for LED Lighting Quick Start Guide   TI UCC25710 is an LLC half-bridge controller for accurate control of multi-string LED backlight applications. It is optimized for multi-transformer, multi-string LED architectures. This controller and architecture allows for excellent LED c
[Analog Electronics]
Using LLC half-bridge controller UCC25710 to realize LED lighting
ZigBee-CC2530 MCU- Button Control LED
Program source code #include "ioCC2530.h" //reference CC2530 header file #define LED1 (P1_0) //LED1 port macro definition #define SW1 (P1_2) // SW1 port macro definition /********************************************************************** Function name: delay Function: Software delay Entry parameter: time--dela
[Microcontroller]
A driver solution for providing a high voltage boost current source for long strings of LEDs
This reference design is used to provide a high voltage boost current source for long strings of LEDs. The applications of long strings of LEDs are not limited to street lights and parking lot lighting. Long strings of LEDs allow the use of cost-effective LED driver solutions. In addition, since each LED has the same
[Power Management]
A driver solution for providing a high voltage boost current source for long strings of LEDs
LED damage causes and circuit protection methods
White light LEDs are voltage-sensitive devices. In actual operation, the upper limit of the current is 20mA. However, the current often increases due to various reasons during use. If no protective measures are taken, the LED will be damaged after the increased current exceeds a certain time and amplitude.   The mai
[Power Management]
CS51221 improves energy efficiency and reduces costs of solar LED street lights
In recent years, the industry has paid more and more attention to the use of renewable clean energy solar energy for street lighting. A typical solar street lighting system consists of solar panels, charge controllers, batteries, light sources, and light poles, as shown in Figure 1. Fi
[Power Management]
CS51221 improves energy efficiency and reduces costs of solar LED street lights
Research on Gray Scale Detection Technology for Large LED Display Screens
1 Introduction The continuous development of science and technology, economy and other aspects has provided a broad market for the application of LED display screens. As a media carrier, LED display screens have become an indispensable part of film and television performances, large-scale singing and dancing, v
[Power Management]
Research on Gray Scale Detection Technology for Large LED Display Screens
LED power drive circuit diagram
  Most LED power supply circuits are composed of a switching power supply circuit + a feedback circuit. The feedback circuit samples the load and adjusts the duty cycle or frequency of the switching circuit pulse to achieve the purpose of controlling the output of the switching circuit.
[Power Management]
LED power drive circuit diagram
Several key parameters that must be paid attention to when selecting LED chips
 As the cost of LEDs continues to decline and energy efficiency continues to improve, the era of large-scale popularization of LED lighting is coming. LED lighting has become the hottest topic in the industry. Since the design of LED lamps involves multiple technologies such as optics, thermals, and microelectronics,
[Power Management]
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号