这个程序希望能对初学者有一定的帮助
/*********************************************************************************************
Project name:ARM7_128液晶显示
Creat date:10.7.14
Creat by:wuqi
********************************************************************************/
#include"config.h"
/* 定义D0数据线 */
#define RES 0x00000010//P0.4
#define REQ 0X00000020//P0.5
#define BUSY 0X00000030//P0.6
#define IO1_C0N 0xFFFFFFFF
#define IO0_C0N 0xFFFFFF7F
#define LCM12864_D0 0x00000400
#define LCM12864_D1 0x00000100
#define LCM12864_D2 0x00002000
#define LCM12864_D3 0x00008000
#define LCM12864_D4 0x00000800
#define LCM12864_D5 0x00000200
#define LCM12864_D6 0x00001000
#define LCM12864_D7 0x00004000