#include <reg51.h>
#include <intrins.h>
#include <lcd1602.c> //使用了LCD1602封装程序,代码见附件一
#define uchar unsigned char
#define uint unsigned int
sbit Tlc_Sdo = P1^0; //2543输出
sbit Tlc_Sdi = P1^1; //2543输入
sbit Tlc_Cs = P1^2; //2543片选
sbit Tlc_Clk = P1^3; //2543时钟
sbit Tlc_Eoc = P1^4;
uchar code LCD_DSY1[] = {"2543 A/D Result:"};//第一行显示的字符
uchar LCD_DSY2[] ={" 0.
评论0
最新资源