文件名称:5420液晶屏驱动程序ICC
文件大小:44KB
文件格式:RAR
更新时间:2013-09-26 16:03:55
5420液晶屏驱动程序ICC
#include "main.h" #include "SPFD5420H.h" #include "font8x16.h" //================================================================ void LCD_Write_Data8 (unsigned char Data) { LCD_DATA_PORT=Data; LCD_WR_Low(); LCD_WR_High(); } void LCD_Write_Data16 (unsigned int Data) { LCD_DATA_PORT=(Data>>8); LCD_WR_Low(); LCD_WR_High(); LCD_DATA_PORT=(Data&0xff); LCD_WR_Low(); LCD_WR_High(); } void LCD_Write_Data_8 (unsigned char Data) { LCD_CS_Low(); LCD_RS_High(); LCD_DATA_PORT=Data; LCD_WR_Low(); LCD_WR_High(); LCD_CS_High(); } void LCD_Write_Data_16 (unsigned int Data) { LCD_CS_Low(); LCD_RS_High(); LCD_DATA_PORT=(Data>>8); LCD_WR_Low(); LCD_WR_High(); LCD_DATA_PORT=(Data&0xff); LCD_WR_Low(); LCD_WR_High(); LCD_CS_High(); } void LCD_Write_Reg(unsigned int Register) { LCD_CS_Low(); LCD_RS_Low(); LCD_Write_Data16(Register); LCD_CS_High(); } void LCD_Write_Cmd(unsigned int Register, unsigned int Data) { LCD_CS_Low(); LCD_RS_Low(); LCD_Write_Data16(Register); LCD_RS_High(); LCD_Write_Data16(Data); LCD_CS_High();
【文件预览】:
SPFD5420H ICC
----main.h(200B)
----main.c(1KB)
----LCD_TEST.lst(33KB)
----main.lis(8KB)
----LCD_TEST.mp(3KB)
----SPFD5420H.s(29KB)
----main.s(4KB)
----SPFD5420H.h(1KB)
----LCD_TEST.lk(21B)
----LCD_TEST.SRC(87B)
----main._h(200B)
----SPFD5420H._h(1KB)
----SPFD5420H.lis(70KB)
----LCD_TEST.hex(8KB)
----main._c(1KB)
----font8x16.h(9KB)
----LCD_TEST.dbg(4KB)
----LCD_TEST.cof(8KB)
----main.o(2KB)
----SPFD5420H.c(6KB)
----LCD_TEST.prj(894B)
----SPFD5420H.dp2(298B)
----SPFD5420H._c(5KB)
----main.dp2(207B)
----SPFD5420H.o(17KB)
----LCD_TEST.mak(1KB)