求基于51单片机的LED点阵显示屏系统的设计与实现的论文
LED显示器是用发光二极管构成的显示器。构成方式有两大类:一是笔段字符式,一般又有三种:7段(/8段)数码管、15段(/17段)数码管和6段符号显示器;二是点阵字符式,一般有5×7、5×8、8×8和16×16等若干种点阵结构。为了适应不同电路的需要,根据构成LED显示器的发光二极管公共极的极性,有共阴极和共阳极两种形式。对共阴极数码管,公共阴极接地,当各段阳极上的电平为高电平时,该段接通亮,电平为0时,该段关断不亮。对共阳极数码管则刚好相反,高电平时不亮,低电平时亮。这种器件根据显示数位分类,可以分为一位、双位和多位LED显示器,一位LED显示器就称作LED数码管,两位以上的一般就称作LED显示器。
要实现LED的汉字显示在进行、列的扫描的同时还要对其进行供电,因为每行16个二极管点亮电流很大,普通芯片的输出电流远不能满足。下面为你提供实例参考
以16×16显示器为例,你可以用并行扩展芯片8255实现点阵的行扫描,8255可以将单片机一个8位并行I/O口扩展成16位(8255的PA口、PB口同时使用);列扫描的16位可以用两个TTL门74LS164(8位移位寄存器),74LS164再接ULN2803以对电流放大后再接16×16点阵。74LS164的移位触发端A、B可以接上一片的相邻输出端,Q1或Q7这样实现能实现多个芯片连续移位,以实现显示屏汉字从右到左或从左到右的移动显示功能。
由于百度知道不能插入图片,所以不提供图片了,将具体引脚接法告诉你:8255的D0--D7数据输入端接单片机P2.0--P2.7(任一并行I/O口),A0接P2.0,A1接P2.1,/WR接单片机的/WR,/RD接高电平,如果单片机资源足够,则片选端/CS接低电平;74LS164芯片的触发端A、B接到一起,与CK脚、CLK脚、随意接到单片机的I/O上。
我做过点阵显示,基于protues仿真的,有图有程序,仿真效果还不错,但没写成论文,要不?
给你一个源代码吧,自己分析,用汇编写的。本人编写后亲试过,只要一片C8052S的最少系统就能工作 驱动市售$5.0单元板(32*64)。;============================================
; 32*64点阵屏左滚动显示n个汉字程序
;============================================
D_FR0 EQU 40H ;第一个显示数据缓冲器
D_FR1 EQU 70H
D_MB EQU 30H ;数据位移动次数寄存器
D_AM EQU 31H ;显示半角字个数寄存器
DAMT EQU 32H ;显示半角字个数倍数寄存器
OFFSET EQU 33H ;数据指针偏移量
RED0 BIT P1.4
RED1 BIT P3.1
RCK BIT P1.5 ;锁存信号线
SCK BIT P1.6 ;移位时钟信号线
EN BIT P1.7 ;消隐信号线
;--------程序入口地址----------------
ORG 0000H
JMP START
ORG 0030H
;====================================
; 初始化
;====================================
START:
CLR A
MOV 60H,A
MOV 61H,A
MOV 62H,A
MOV 63H,A
MOV SP, #0AH ;修改堆栈指针
MOV R7, #5
MOV R0,#D_FR0
MOV R1,#D_FR1
ST1:MOV @R0,A
MOV @R1,A
INC R0
INC R1
DJNZ R7, ST1 ;40H-44H
MOV R7, #20H
MOV R0, #D_MB
ST2:MOV @R0, A
INC R0
DJNZ R7, ST2 ;寄存器清0 ,
MOV P1, #0ffH
MOV DPTR,#TABLE1
MOV 62H,DPL
MOV 63H,DPH
MOV DPTR,#TABLE2
MOV 64H,DPL
MOV 65H,DPH
MOV DAMT,#1;显示的半角字的个数的倍数
MOV R4, #2
;====================================
; 主程序
;====================================
MAIN:
MOV R5, #16 ;扫描16行
MOV OFFSET, #00H ;数据指针偏移量清0
MA1:CALL QUSHU ;调用取数子程序
CALL DSEND ;调用发送子程序
clr EN ;关显示
inc P1 ;修改行值
CLR RCK
SETB RCK ;锁存显示数据
setb EN ;开显示
DJNZ R5, MA1 ;16行未完继续
DJNZ R4, MAIN
MOV R4,#5 ;移动速度
INC D_MB
MOV A,D_MB
CJNE A, #8,M_OUT
MOV D_MB, #0 ;1个半角字符要移动8次
MOV A,#16
MOV DPL,62H
MOV DPH,63H
ADD A,DPL
MOV DPL,A
MOV 62H,DPL
MOV A,DPH
ADDC A,#00H
MOV DPH,A
MOV 63H,DPH
MOV A,#16
MOV DPL,64H
MOV DPH,65H
ADD A,DPL
MOV DPL,A
MOV 64H,DPL
MOV A,DPH
ADDC A,#00H
MOV DPH,A
MOV 65H,DPH
INC D_AM
MOV A,D_AM
CJNE A, #30,M_OUT ;显示的半角字符的个数
MOV D_AM, #00H
DJNZ DAMT, M_OUT
MOV DAMT, #1 ;显示的半角字的个数的倍数
MOV DPTR,#TABLE1
MOV 62H,DPL
MOV 63H,DPH
MOV DPTR,#TABLE2
MOV 64H,DPL
MOV 65H,DPH
MOV P1,#0ffH
M_OUT: JMP MAIN
;===================================
; 取一行数子程序
;===================================
QUSHU:
MOV R7,#9
MOV R0,#D_FR0
MOV DPL,62H
MOV DPH,63H
PUSH DPL
PUSH DPH
MOV A,OFFSET
QUSHU1:
ADD A,DPL
MOV DPL,A
MOV A,DPH
ADDC A,#00H
MOV DPH,A
CLR A
MOVC A,@A+DPTR
MOV @R0,A
INC R0
MOV A,#16
DJNZ R7,QUSHU1
POP DPH
POP DPL
MOV 62H,DPL
MOV 63H,DPH
QUSHU2:
MOV R7,#9
MOV R0,#D_FR1
MOV DPL,64H
MOV DPH,65H
PUSH DPL
PUSH DPH
MOV A,OFFSET
QUSHU3:
ADD A,DPL
MOV DPL,A
MOV A,DPH
ADDC A,#00H
MOV DPH,A
CLR A
MOVC A,@A+DPTR
MOV @R0,A
INC R0
MOV A,#16
DJNZ R7,QUSHU3
POP DPH
POP DPL
MOV 65H,DPH
MOV 64H,DPL
INC OFFSET
RET
;===================================
; 数据发送子程序
;===================================
DSEND:
MOV R0,#D_FR0 ;第一个显示数据缓冲区地址放人R0
MOV R1,#D_FR1
MOV R6,#8 ;发送n字节(1行)
DSE1:MOV R7,#8 ;每次发送8位
MOV 60H,@R0
MOV 61H,@R1 ;显示数据放入A
CPL 60H
cpl 61H;取反A
DSE2: MOV A,60H
RLC A ;将A的内容按位移入C
MOV RED0,C ;将C的内容送数据总线
MOV 60H,A
MOV A,61H
RLC A
MOV RED1,C
MOV 61H,A
CLR SCK
SETB SCK ;输出移位脉冲
DJNZ R7, DSE2
INC R0
INC R1 ;修改地址指针
DJNZ R6, DSE1
;--------屏幕左移一位---------------
MOV A,D_MB ;移动位次数放入A
JZ TAMEND ;为0转移
MOV R7,D_MB ;移动位次数放入R7
MOV 60H,@R0
MOV 61H,@R1
cpl 60H ;移入的数据存入A
CPL 61H
DSE3:MOV A,60H
RLC A ;将A的内容按位移入C
MOV RED0,C ;将C的内容送数据总线
MOV 60H,A
MOV A,61H
RLC A
MOV RED1,C
MOV 61H,A
CLR SCK
SETB SCK ;输出移位脉冲
DJNZ R7, DSE3 ;移位次数未完继续
;--------移位时间修正---------------
TAMEND: CLR C ;清C
MOV A, #100
SUBB A,D_MB ;需要再延时的次数
JZ D_OUT
MOV R7, A
TA1: NOP
NOP
NOP
NOP
DJNZ R7, TA1 ;空操作(延时)
D_OUT: RET
;====================================
; 文字编码表
;====================================
TABLE1:
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
DB 00H,00H,0FCH,04H,45H,46H,28H,28H,10H,28H,24H,44H,81H,01H,02H,0CH
DB 80H,80H,80H,0FCH,04H,48H,40H,40H,40H,40H,0A0H,0A0H,10H,08H,0EH,04H
DB 00H,41H,26H,14H,04H,04H,0F4H,14H,15H,16H,14H,10H,10H,28H,47H,00H
DB 00H,84H,7EH,44H,44H,44H,44H,0C4H,44H,54H,48H,40H,40H,46H,0FCH,00H
DB 01H,21H,11H,09H,09H,01H,0FFH,04H,04H,04H,04H,08H,08H,10H,20H,40H
DB 00H,08H,0CH,10H,20H,04H,0FEH,40H,40H,40H,40H,40H,42H,42H,3EH,00H
DB 10H,10H,51H,51H,52H,54H,58H,50H,57H,54H,54H,54H,54H,14H,17H,14H
DB 80H,80H,04H,0FEH,00H,80H,60H,24H,0FEH,44H,44H,44H,44H,44H,0FCH,04H
DB 00H,01H,03H,03H,03H,03H,03H,01H,01H,01H,00H,01H,03H,01H,00H,00H
DB 00H,80H,0C0H,0C0H,0C0H,0C0H,0C0H,80H,80H,80H,00H,80H,0C0H,80H,00H,00H
DB 00H,40H,30H,17H,00H,02H,0F1H,10H,10H,10H,10H,11H,12H,28H,47H,00H
DB 80H,40H,48H,0FCH,10H,10H,20H,0A0H,40H,40H,0A0H,10H,10H,06H,0FCH,00H
DB 00H,3FH,21H,21H,3FH,21H,21H,21H,3FH,01H,01H,7FH,01H,01H,0FFH,00H
DB 08H,0FCH,08H,08H,0F8H,08H,08H,08H,0F8H,00H,08H,0FCH,00H,04H,0FEH,00H
DB 0FH,08H,08H,0FH,08H,08H,0FH,00H,0FFH,01H,09H,09H,09H,15H,23H,40H
DB 0E0H,20H,20H,0E0H,20H,20H,0E0H,04H,0FEH,00H,20H,0F0H,00H,00H,06H,0FCH
DB 42H,32H,12H,02H,9FH,62H,22H,0FH,18H,28H,0C8H,48H,48H,4FH,48H,40H
DB 04H,3EH,24H,24H,0E4H,3CH,0A4H,0E4H,0A4H,0BCH,0A4H,0A4H,0A4H,0A4H,54H,88H
DB 04H,04H,04H,04H,04H,7CH,04H,04H,04H,04H,04H,04H,1CH,0E4H,44H,00H
DB 80H,80H,88H,98H,0A0H,0C0H,80H,80H,80H,80H,80H,80H,82H,82H,7EH,00H
DB 01H,09H,09H,11H,11H,20H,03H,0CH,3FH,0C8H,0FH,08H,0FH,08H,0FH,08H
DB 00H,20H,10H,0CH,24H,0C0H,00H,08H,0FCH,08H,0F8H,08H,0F8H,08H,0F8H,08H
DB 01H,01H,7FH,41H,81H,02H,02H,05H,09H,18H,28H,48H,88H,0AH,0CH,08H
DB 00H,00H,0FEH,02H,04H,00H,08H,18H,20H,0C0H,80H,40H,30H,0EH,04H,00H
DB 04H,04H,04H,04H,44H,24H,24H,14H,14H,14H,14H,04H,04H,04H,0FFH,00H
DB 40H,40H,40H,40H,44H,44H,48H,48H,50H,50H,60H,40H,40H,44H,0FEH,00H
DB 04H,0EH,0F8H,08H,08H,0FEH,08H,1CH,1AH,29H,28H,48H,88H,08H,08H,08H
DB 10H,10H,90H,50H,10H,90H,50H,14H,1EH,0F0H,10H,10H,10H,10H,10H,10H
DB 22H,11H,11H,00H,7FH,40H,80H,1FH,00H,01H,0FFH,01H,01H,01H,05H,02H
DB 08H,08H,10H,20H,0FEH,02H,04H,0E0H,40H,84H,0FEH,00H,00H,00H,00H,00H
DB 00H,78H,4FH,54H,58H,63H,50H,48H,4FH,48H,68H,50H,41H,41H,42H,4CH
DB 80H,40H,0FEH,02H,14H,0F8H,00H,08H,0FCH,0A0H,0A0H,0A0H,22H,22H,1EH,00H
DB 06H,0F8H,11H,11H,0FFH,39H,55H,91H,11H,0FEH,24H,44H,28H,11H,2AH,44H
DB 40H,84H,0FEH,24H,24H,0FCH,24H,44H,0FCH,40H,60H,0A0H,0A8H,22H,22H,1EH
DB 01H,01H,01H,0FFH,01H,01H,01H,3FH,00H,02H,11H,50H,50H,90H,0FH,00H
DB 00H,00H,04H,0FEH,00H,00H,10H,0F8H,00H,00H,80H,84H,12H,12H,0F0H,00H
DB 82H,44H,29H,0FEH,10H,11H,7CH,10H,10H,0FEH,11H,12H,10H,20H,21H,40H
DB 00H,04H,0DEH,44H,44H,54H,0CCH,44H,44H,0CCH,54H,64H,44H,44H,54H,88H
DB 00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,30H,1EH,0FH,07H,00H,00H
DB 00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H
DB 01H,01H,7FH,01H,05H,09H,31H,0C1H,0FH,00H,01H,7FH,01H,01H,05H,02H
DB 00H,08H,0FCH,00H,40H,30H,0EH,04H,0E0H,40H,88H,0FCH,00H,00H,00H,00H
DB 08H,08H,08H,08H,0FEH,08H,18H,1CH,2AH,28H,49H,8AH,08H,08H,08H,08H
DB 20H,20H,20H,24H,0FEH,20H,60H,70H,0A8H,0AEH,24H,20H,20H,20H,20H,20H
DB 00H,7FH,40H,40H,5FH,40H,40H,4FH,48H,48H,48H,48H,4FH,48H,40H,40H
DB 04H,0FEH,04H,24H,0F4H,04H,24H,0F4H,24H,24H,24H,24H,0E4H,24H,14H,08H
DB 22H,11H,11H,00H,7FH,40H,80H,1FH,00H,01H,0FFH,01H,01H,01H,05H,02H
DB 08H,08H,10H,20H,0FEH,02H,04H,0E0H,40H,84H,0FEH,00H,00H,00H,00H,00H
DB 10H,10H,22H,7FH,42H,43H,42H,42H,7EH,42H,42H,42H,42H,7EH,42H,00H
DB 40H,40H,44H,7EH,84H,04H,04H,84H,64H,24H,04H,04H,04H,04H,28H,10H
DB 08H,08H,08H,17H,10H,30H,50H,90H,17H,10H,10H,10H,10H,10H,1FH,10H
DB 80H,40H,44H,0FEH,40H,40H,40H,48H,0FCH,40H,40H,40H,40H,44H,0FEH,00H
DB 02H,07H,38H,20H,20H,3EH,22H,22H,22H,3EH,22H,20H,21H,42H,84H,00H
DB 08H,1CH,0E0H,80H,80H,84H,0FEH,88H,88H,88H,88H,88H,08H,08H,08H,08H
DB 00H,01H,03H,03H,03H,03H,03H,01H,01H,01H,00H,01H,03H,01H,00H,00H
DB 00H,80H,0C0H,0C0H,0C0H,0C0H,0C0H,80H,80H,80H,00H,80H,0C0H,80H,00H,00H
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
TABLE2:
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
DB 01H,01H,02H,04H,08H,12H,21H,0C0H,00H,1FH,00H,00H,00H,00H,00H,01H
db 00H,00H,80H,40H,20H,10H,8EH,84H,00H,0F0H,10H,20H,20H,40H,80H,00H
DB 00H,7FH,01H,01H,01H,01H,0FFH,01H,02H,02H,04H,04H,08H,10H,20H,0C0H
db 08H,0FCH,00H,00H,00H,04H,0FEH,00H,80H,80H,40H,40H,20H,10H,0EH,04H
DB 00H,08H,7DH,4AH,4CH,4BH,4AH,7AH,4AH,4BH,4AH,48H,78H,49H,02H,04H
db 80H,80H,0F8H,10H,24H,0FEH,44H,44H,44H,0FCH,64H,0A0H,0A2H,22H,1EH,00H
DB 01H,01H,01H,01H,01H,01H,01H,01H,01H,01H,01H,01H,01H,01H,0FFH,00H
db 00H,00H,00H,00H,10H,0F8H,00H,00H,00H,00H,00H,00H,00H,04H,0FEH,00H
DB 02H,02H,0FFH,04H,04H,0FH,08H,18H,2FH,48H,88H,0FH,08H,08H,08H,08H
db 00H,04H,0FEH,00H,10H,0F8H,10H,10H,0F0H,10H,10H,0F0H,10H,10H,50H,20H
DB 01H,01H,01H,01H,01H,7DH,05H,05H,09H,09H,11H,21H,41H,81H,05H,02H
db 00H,00H,00H,08H,18H,20H,0C0H,80H,40H,20H,10H,0EH,04H,00H,00H,00H
DB 00H,7CH,44H,49H,48H,50H,48H,4BH,44H,45H,45H,69H,51H,41H,41H,41H
db 20H,20H,28H,0FCH,20H,20H,24H,0FEH,20H,24H,24H,24H,24H,24H,0FCH,04H
DB 00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,60H,20H,20H,40H
DB 08H,0BH,12H,12H,23H,4AH,8AH,13H,32H,52H,92H,12H,12H,12H,13H,12H
db 08H,0FCH,08H,08H,0F8H,08H,08H,0F8H,84H,8CH,50H,20H,10H,88H,0EH,04H
DB 00H,1FH,10H,10H,1FH,10H,10H,1FH,14H,44H,34H,14H,04H,04H,0FFH,00H
db 10H,0F8H,10H,10H,0F0H,10H,10H,0F0H,50H,44H,4CH,50H,40H,44H,0FEH,00H
DB 10H,10H,10H,1EH,22H,33H,4AH,0A4H,14H,08H,11H,22H,40H,24H,24H,40H
db 20H,20H,28H,24H,20H,0FEH,20H,50H,50H,88H,0EH,04H,00H,48H,46H,02H
DB 04H,0EH,78H,08H,08H,0FFH,08H,08H,0AH,0CH,18H,68H,09H,0AH,28H,10H
db 80H,0A0H,90H,90H,84H,0FEH,80H,90H,90H,60H,40H,0A0H,20H,14H,14H,0CH
DB 10H,12H,11H,24H,24H,64H,0A4H,24H,24H,24H,24H,24H,24H,24H,24H,24H
db 00H,04H,7EH,84H,04H,04H,04H,04H,04H,04H,04H,04H,04H,04H,14H,08H
DB 00H,7FH,10H,10H,10H,08H,08H,04H,04H,02H,01H,02H,04H,08H,30H,0C0H
db 00H,0F0H,10H,10H,20H,20H,40H,40H,80H,80H,00H,80H,40H,30H,0EH,04H
DB 10H,10H,10H,13H,0FCH,10H,14H,18H,30H,0D0H,10H,10H,10H,10H,50H,20H
db 00H,00H,04H,0FEH,20H,20H,20H,20H,20H,20H,20H,20H,20H,20H,0A0H,40H
DB 00H,0FFH,00H,00H,01H,01H,03H,05H,09H,11H,21H,41H,01H,01H,01H,01H
db 04H,0FEH,80H,80H,00H,00H,40H,20H,18H,0CH,04H,00H,00H,00H,00H,00H
DB 00H,40H,20H,17H,00H,00H,0F1H,10H,10H,10H,10H,10H,10H,28H,47H,00H
db 10H,10H,10H,0FCH,10H,10H,10H,90H,90H,10H,10H,50H,20H,06H,0FCH,00H
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
DB 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H
END
6 |易 |我们可以提供一份针对于你的题目的初学者代码
5 |软 |如有进一步需求,请我们联系,
7 |科 |告诉我你的问题和联系方式,
1 |技 |有时间可以帮你,绝对救急,
5 |为 |请到个人资料里查看QQ,或见每行开头
6 |您 |或者使用百度Hi给我留言
1 |提 |陪你顺利毕业,
5 |供 |此回复针对所有来访者和需求者有效,带着你的Email和问题来找我
哈,我去年的毕业论文跟你这个差不多,电子档的没放在我现在用的这台电脑。
用51单片机做一个LED显示的电子钟
,数据\/命令选择端(H\/L)sbit led=P1^0;sbit dula=P1^1;sbit wela=P1^2;sbit ACC0=ACC^0;...2011-05-18 大家有基于51单片机来实现电子钟的C语言程序吗?用LED显示... 1 2011-06-11 以at89c51
用51单片机4位数码管显示"H38C”,"L25C",C语言程序分别怎么写?P1口是...
include<reg52.h> include<intrins.h> typedef unsigned char uchar;typedef unsigned int uint;\/\/共阳数码管 uchar code table[] = {0x89,0xb0,0x80,0xc6, \/\/H38C的编码 0xc7,0xa4,0x92,0xc6}; \/\/L25C的编码 \/\/延时函数 void delay(uchar t){ uchar i;while(t--){ for(i...
ATmega16L与51系列单片机的异同
1、运行速度不同:AVR单片机(ATmega16)的时钟源(晶振、内部RC等)可以不经过分频直接提供给CPU使用,51的CPU主频等于晶振的12分频,ATmega16外部提供16M晶掁,即CPU频率可达16M。常规51的时钟源为12M,经12分频后CPU频率仅为1M,所以AVR单片机的运行速度比51单片机的运行速度要快的多,并且AVR单片机可...
51单片机指令有哪些啊?
MCS-51单片机的指令集 1、数据传送类指令 助记符功能说明字节数振荡周期 MOVA,Rn寄存器内容送入累加器112 MOVA,direct直接地址单元中的数据送入累加器212 MOVA,@Ri间接RAM中的数据送入累加器112 MOVA,#data88位立即数送入累加器212 MOVRn,A累加器内容送入寄存器112 MOVRn,direct直接地址单元中的数据...
51单片机的数字频率计
由P3.4输入信号,低电平有效,触发T0外部中断。当T0触发中断的时候执行的程序。这里只进行了一个操作,t0++。所以,t0的值表示触发了几次中断,也就表示接受到的脉冲几次从0到65536。所以会有t0*65536。 另外,由于计时的机制是THO++、TL0++,所以,THOTL0就表示当前的计...
汇编语言在51单片机中的所有指令有那些?
2017-01-19 51单片机汇编语言:位操作指令有哪些 1 2010-12-01 MCS-51单片机汇编语言的SP指令有什么作用? 69 2011-10-14 用汇编语言编写51单片机程序,指令程序存储在ROM里还是RA... 2 2018-02-27 MCS-51单片机汇编语言的SP指令有什么作用? 2 2011-02-27 51单片机的指令是汇编语言吗? 5 2018-01-...
我想问一下用过51单片机做智能小车的朋友们,我用的是l9110s驱动...
电池有电没有,电池和电路间的焊点是否有虚焊,线是否断路,电路的电源部份是否有故障,是否电路功率太大,电池一上去就用完了等等,当年我我们玩智能小车的时候,也是问题多多,一个一个排除就好了
51单片机lcd1602显示时间
timetab[i] = l_tmpdate[i];} void Set_time(){ uchar i;for(i=0;i<6;i++){ l_tmpdate[i]=timetab[i];Set_RTC(i);} } void NL_read(uchar nian,uchar yue,uchar ri){ uchar tmp;tmp=nian\/10;nian=nian%10;nian=nian+tmp*16; \/\/十进制转BCD处理 tmp=yue\/10;yue=yue%...
请问51单片机在纳秒级别下怎么计算超声波距离
我也纳闷了,最后的结果竟然是 距离L=T*58us\/cm,T 是时间,就算它单位与后面一致是us,那么 T*58us\/cm 的单位结果,不就成了 us的平方\/cm 了??前面算到 L=T*170m\/s ,都没错。如果后面只是要换算到 us 和 cm单位,那就应该写成:L=T*170*100cm\/1000000us=T*0.017cm\/us。正确的...
51单片机两个I\/O口分别接ds18b20程序
\/*RS=L,RW=L,E=高脉冲,D0-D7=指令码。 *\/\/* *\/\/***\/void lcd_wcmd(uchar cmd){ while(lcd_busy()); LCD_RS = 0; LCD_RW = 0; LCD_EN = 0; _nop_(); _nop_(); P0 = cmd; _nop_(); _nop_(); _nop_(); _nop_(); LCD_EN = 1; _nop_(); _nop_(); _nop_()...
池庞甘露: 参考资料:51单片机驱动1616LED点阵显示动画汉字(汇编程序) http://wenku.baidu.com/view/a1a08f05cc1755270722085a.html 基于51单片机控制的LED点阵显示屏(c 语言) http://wenku.baidu.com/view/aa7092dbd15abe23482f4df6.html51...
和静县17138746083: 基于51单片机的LED点阵显示屏设计 - ?
池庞甘露: ABSTRACT II 第1章 前言 11.1 LED电子显示屏概述 11.3 LED显示屏的应用示例 2 第2章 显示原理及控制方式分析 32.1 LED点阵模块结构 32.2 LED动态显示原理 42.3 LED常见的控制方式 4 第3章 方案设计与分析 73.1 显示单元 73.2 滚屏的实现 ...
和静县17138746083: 基于51单片机的LED点阵显示屏系统的设计与实现的论文 - ?
池庞甘露: LED显示器是用发光二极管构成的显示器.构成方式有两大类:一是笔段字符式,一般又有三种:7段(/8段)数码管、15段(/17段)数码管和6段符号显示器;二是点阵字符式,一般有5*7、5*8、8*8和16*16等若干种点阵结构.为了适应不同...
和静县17138746083: 如何用51单片机设计16*128点阵的LED显示器?
池庞甘露: 1:Dais-PG206试验箱,这是教学用的,应该是你们学校的实验仪器,建议你到实验室了解一下.2:16*16点阵就是256个LED发光二极管集成在一块上,16个脚接高电平16脚通过限流电阻接地,通电就亮,原理很简单.3:通信原理这个定义很...
和静县17138746083: 51单片机点阵LED显示. - ?
池庞甘露: 作为小白你先不要跨步太大.先从简单的流水灯开始做吧,做出各种闪烁效果,然后数码管,都懂了然后再LED点阵就容易理解多了
和静县17138746083: 51单片机控制16*16点阵显示屏 - ?
池庞甘露: 板子上所配器件清单:74HC595 2个74HC164 2个 三极管8550 16个 电阻1K 16个 电阻 200欧姆 16个 点阵底座圆排母 2根 弯排针 1根 点阵PCB空板 1个
和静县17138746083: 根据51单片机的内存大小来设计一块32*32的点阵LED显示电路,请问可以存储多少汉字? - ?
池庞甘露: 不扩展的话,8051有4K的ROM,而每个汉字需要八个字节(32/8+32/8=8)来表示,所以最多不会超过512个汉字
和静县17138746083: 求基于51单片机、LED点阵显示汉字的设计,要有可行的具体方案(原理图)、汇编程序,最好是98C51、16*16?
池庞甘露: #include<reg52.h> #define uint unsigned int #define uchar unsigned char uchar code table1[]={0xff,0xfd,0xfb,0xf7,0x7f,0x7f,0xff,0xff}; uchar code table2[]={0x00,0x15,0x15,0x1f,0x15,0x15,0x00,0x00}; uchar a; void main() { while(1) { for(a=0;a<0;a--) { P0=table1[a]; P1=table2[a]; } } }
和静县17138746083: 基于51单片机的16x16 led点阵显示屏设计原理与电路图?
池庞甘露: ORG 0000H AJMP BEGIN ORG 0030H BEGIN:MOV R0,#8 MAIN:MOV A,R0 MOV R2,#00H MOV SP,#60H MOV R3,A MOV R4,#16 MOV DPTR,#WORDTAB START:JNB P1.0,SLOW JNB P1.1,SOON MOV R1,#00H SCAN8:MOV A,R1 SWAP A...
和静县17138746083: 51单片机多功能LED点阵显示数字时钟 - ?
池庞甘露: 数字时钟 这段程序是在PRTUES上完全好使 你可以根据 程序自己在PROTUES上画图#include#define uint unsigned int char code tab[]=; char code table[]=; sbit duan=P2^5; sbit wei=P2^6; sbit button1=P1^0; sbit button2=P1^1; sbit button3=P1^...