void OutMasterCom( unsigned char i ) // write master command
{
while ((rm_status & 0x80));//rm_status the command read address of master
wm_command = i;//wm_command the command write address of master
}
以GXM12232-1模块的Master控制器为例,其写数据代码如下。
void OutMasterDat( unsigned char i ) //write master data
{
while ((rm_status & 0x80));
wm_data = i; //wm_data the data write address of master
}
液晶屏的数据显示过程主要分为显示地址命令设置和送出显示数据两步。