【51单片机】点阵显示汉字程序
原理图![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/90ef3c903e81f5ab41e04ef8644760fb.png)
源代码
/* 以下是取到的字模
{0x08,0x7E,0x48,0x9C,0x08,0x08,0x7E,0x00},/"?",0/
{0x00,0x1E,0x22,0x3E,0x22,0x22,0x3E,0x00},/"?",1/
{0x48,0x5C,0x2A,0xFE,0x48,0x4C,0x54,0x62},/"?",2/
{0x00,0x3E,0x48,0x7E,0x08,0x2C,0x4A,0x10},/"?",3/
字模有逐行取模、逐列取模;阴码、阳码
*/
#include <reg52.h>
typedef unsigned int u16;
typedef unsigned char u8;
#define DATA P0 //定义数据端口
#define COUNT P3 //定义计数端口
u8 tab_num[8] = {
0xfe,