为您提供专业的显示解决方案串口驱动方式,可有效的减少IO口的占用,方便使用调试,本程序的代码驱动IC为ST7565R,是基于STC89C53RC的12864串行模式的程序,硬件电路连接只需要5根线:RS、SDA、SCLK、RES、CS。程序已经调试通过,很好用。代码如下://----------------------------------------------------------------------/*hotdisplayCO,.LTD.*///Module:HTG12864//Lanuage:C51Code//Create://Version:1.0//Date:OCT-21-2016//LCMDriveIC:ST7565R//INTERFACE:4_Wire-SPI//MCU:STC89C53RC//VDD:3.3V//***************************************************************************#includereg51.h为您提供专业的显示解决方案=P3^5;sbitRES=P3^4;sbitSCK=P1^6;sbitSDA=P1^7;sbitCS1=P3^7;sbittransbit=transdata^7;#definePage0xb0//##########################################//voidComwrite(unsignedcharcom);//D′??á?3ìDò//voidDatawrite(unsignedchardat);voidDelay(unsignedinttime);//?óê±×ó3ìDò//charcodeHanzi[]={0xFF,0x01,0x01,0x09,0xF9,0x09,0x01,0x01,0x09,0xF9,0x09,0xE1,0x11,0x09,0x09,0x09,0x11,0xE1,0x01,0x19,0x09,0x09,0xF9,0x09,0x09,0x19,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x09,0xF9,0x09,0x09,0x09,0x11,0xE1,0x01,0x01为您提供专业的显示解决方案为您提供专业的显示解决方案为您提供专业的显示解决方案为您提供专业的显示解决方案为您提供专业的显示解决方案