52控制12864的串口程序
#include
#include
#define uint unsigned int
#define uchar unsigned char
//====================================================================
//函數(shù)聲明
void Delay(uint ms); //延時(shí)子程序
void W_1byte(uchar RW, uchar RS, uchar W_da
void Write_8bits(uint W_bits);
void LCD_Init(void);
sbit CS=P3^5; //CS=RS
sbit SID=P3^6; //RW=SID
sbit SCLK=P3^7; //E=SCLK
sbit PSB=P2^3; //E=SCLK
//===================================================================
co
co
co
co
void main()
{
uchar i=0;
SP = 0X60;
CS = 0;
SCLK = 0;
SID = 0;
PSB=0;
LCD_Init();
while(1)
{
W_1byte(0,0,0x80);
_nop_();
for(i=0;mynew1[i]!=