12864(st7920)串行显示
串行显示串行显示
串行显示
#include <reg51.h>
#include <intrins.h>
//Head files
#define uchar unsigned char
#define uint unsigned int
#define nop _nop_()
#define xtal 11.0592 /晶振 11.0592M
//==========================================================
==========
//函数声明
void Delay(uint ms); //延时子程序
//void Write_cmd(cmd); //写指令子程序
//void Write_data(uchar _data); //写数据子程序
//void Position(ucha 不不
vvvvvvvvvvv
vvvvvvvvvvvvvvvvvvvvvvvvvvvv r pos); //定位函数
//void Display(uchar address); //
//void Init_12864();
//void LcdSetXY(uchar x, uchar y, uchar *pt);
void W_1byte(uchar RW, uchar RS, uchar W_data);
void Write_8bits(uint W_bits);
void LCD_Init(void);
/********************************************************************
********************************************************************/
sbit CS="P0"^4; //CS=RS
sbit SID="P0"^5; //RW=SID
sbit SCLK="P0"^6; //E=SCLK