http://doc.edu.vn/tai-lieu/de-tai-dung-vi-dieu-khien-8051-de-dieu-khien-led-matrix-hien-thi-tu-0-9-va-tu-a-l-2823/
mienphivpn.com
http://doc.edu.vn/tai-lieu/de-tai-dung-vi-dieu-khien-8051-de-dieu-khien-led-matrix-hien-thi-tu-0-9-va-tu-a-l-2823/
include<regx52.h> #include<stdio.h> void tre(unsigned int t) { unsigned int i; for(i=0;i<=t;++i); } unsigned char manghang[16] = {0,0,0,0,0,0,0,0,0x3F,0x7F,0x88,0x88,0x7F,0x3F,0,0 unsigned char mangcot[10] = {0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F,}; int m,n,t,k,j; void main(void) { while(1) { k=8; for(t=0;t<=7;++t) { for(j=1;j<=200;++j) for(n=0;n<=7;++n) { P0 = mangcot[n]; P2 = manghang[n+k]; tre(20); } P2 = 0; tre(20); k--; } } }
include<regx52.h> #include<stdio.h> void tre(unsigned int t) { unsigned int i; for(i=0;i<=t;++i); } unsigned char manghang[16] = {0,0,0,0,0,0,0,0,0x3F,0x7F,0x88,0x88,0x7F,0x3F,0,0 unsigned char mangcot[10] = {0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F,}; int m,n,t,k,j; void main(void) { while(1) { k=8; for(t=0;t<=7;++t) { for(j=1;j<=200;++j) for(n=0;n<=7;++n) { P0 = mangcot[n]; P2 = manghang[n+k]; tre(20); } P2 = 0; tre(20); k--; } } }