LCD1602显示字符
仿真:
代码:
#include"config.h"
#define rs (1<<8)
#define rw (1<<9)
#define en (1<<10)
#define busy (1<<7)
uint8 txt[]="HELLO EVERYONE"; //14
uint8 txt1[]="welcome to here";//15
void ChkBusy()
{
IODIR=0x700;
while(1)
{
IOCLR =rs;
IOSET =rw;
IOSET =en;
if(