www.pudn.com > LM240160-lcd-driver.rar > s0064001(LM240160C,80mode,example).c, change:2013-07-26,size:30014b


//------------------------------------------------- 
// Shenzhen TOPWAY Technology Co.,Ltd. 
// LCD Module:        LM240160C 
// Display Size:      240x160 dots 
// Driver/Controller: ST7586s    8080mode 
// by:                Lin 
// Date:              2011-3-18 
// note:update data change way in orser to rise write speed 
// note:update direction of SEG and COM for LCD viewing angle  
// note:uodate data change way in order to rise writing speed.  
// note:add 4gray display 
//------------------------------------------------- 
 
#include <stdio.h> 
#include <reg52.h> 
#include <intrins.h> 
 
#define uchar unsigned char // 0~255 
#define uint  unsigned int  // 0~65535 
#define ulong unsigned long // 32bit, 0 ~ 4,294,967,295 
 
#define LCDBUS    P1 
sbit _CS  = P3^4;       // connections to LCD module 
sbit _RST = P3^5; 
sbit RS   = P3^1; 
sbit _WR  = P3^7; 
sbit _RD  = P3^6; 
 
 
bit     AutoRun;           // 1 for auto run, 0 for manual run 
uchar   ContrastLevel;     // for contrast setting level  
 
uchar ChangeTab[]={0x00,0x03,0x1c,0x1f,0xe0,0xe3,0xfc,0xff}; 
//----------------------------------- 
// dispaly data 128(x2)x96 
//----------------------------------- 
 
uchar code Logo[]={ 
/*--  调入了一幅图像:D:\guoq files\technic support\pic\logo pic\LM240160C-logo.bmp  --*/ 
/*--  宽度x高度=240x160  --*/ 
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x80,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 
0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x05,0x55,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x02,0xAA,0x80,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x55,0x54,0x1F,0x80,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x01,0x80,0x00,0x00,0x0A,0xAA,0xA1,0xFF,0x80,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 
0x80,0x00,0x01,0x55,0x55,0x07,0xFF,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00, 
0x2A,0xAA,0xAA,0x3F,0xFF,0x90,0x00,0x48,0x20,0x40,0x10,0x00,0x42,0x04,0x88,0x08, 
0x41,0x04,0x00,0x10,0x09,0x00,0x40,0x3B,0xF0,0x24,0x00,0x05,0x80,0x55,0x55,0x55, 
0x50,0xFF,0xFF,0x8B,0xFC,0x49,0x20,0x22,0x13,0xF8,0x24,0x0A,0xA8,0x70,0x41,0x04, 
0x0F,0xF8,0x48,0x80,0x42,0x2A,0x10,0x24,0x0F,0xFF,0xAA,0xAA,0xAA,0xAA,0xA3,0xFF, 
0xFF,0x82,0x04,0x49,0x2F,0xFF,0x10,0x81,0xFF,0xD2,0xA8,0x12,0x41,0x04,0x02,0x20, 
0x88,0x0F,0xFF,0x2A,0x10,0x42,0x00,0x05,0x80,0x00,0x15,0x55,0x4F,0xFF,0xFF,0xA0, 
0x90,0x49,0x20,0x20,0x7C,0x81,0x24,0x83,0xEE,0x11,0x47,0xBF,0x82,0x20,0xFF,0xE0, 
0x80,0x2B,0xF0,0x42,0x1F,0xF5,0x80,0x00,0x02,0xAA,0x1F,0xFF,0xFF,0x91,0x49,0xF9, 
0x23,0xFC,0x11,0x00,0xA5,0x04,0x14,0xFC,0x41,0x04,0x02,0x20,0x10,0x01,0xFC,0x32, 
0x10,0x81,0x00,0x05,0x80,0x00,0x05,0x54,0x7F,0xFF,0xFF,0x80,0x40,0x49,0x22,0x24, 
0x15,0x03,0xFF,0xCB,0xF4,0x12,0x41,0x9F,0x1F,0xFC,0x1F,0x83,0x04,0x2B,0xF1,0x10, 
0x87,0xC5,0x80,0x00,0x0A,0xA9,0xFF,0xFF,0xFF,0x8B,0xFC,0x49,0x22,0x24,0x1B,0xF0, 
0x00,0x18,0x14,0x39,0x43,0x11,0x02,0x20,0x10,0x85,0xFC,0x2A,0x92,0x10,0x44,0x45, 
0x80,0x00,0x05,0x53,0xFF,0xFF,0xFF,0x90,0x40,0x49,0x22,0x24,0x75,0x10,0x7F,0x09, 
0xD4,0x54,0x75,0x11,0x02,0x20,0x28,0x89,0x04,0x2A,0xA0,0x20,0x04,0x45,0x80,0x00, 
0x0A,0xA7,0xFF,0xFF,0xFF,0xB0,0xE0,0x79,0x22,0x24,0x11,0x10,0x41,0x09,0x48,0x97, 
0xC1,0x0A,0x02,0x20,0x25,0x01,0xFC,0x3A,0x40,0x24,0x07,0xC5,0x80,0x00,0x15,0x4F, 
0xFF,0xFF,0xFF,0x91,0x51,0xC9,0x22,0x24,0x11,0x10,0x7F,0x09,0x68,0x10,0x41,0x04, 
0x04,0x20,0x42,0x01,0x04,0x22,0x20,0x42,0x04,0x45,0x80,0x00,0x2A,0x9F,0xFF,0xFF, 
0xFF,0x96,0x4C,0x90,0x22,0x2C,0x11,0xF0,0x41,0x0A,0x54,0x10,0x41,0x0A,0x08,0x20, 
0x8D,0x81,0x04,0x22,0x90,0xFF,0x00,0x15,0x80,0x00,0x15,0x3F,0xFF,0xFF,0xFF,0x90, 
0x40,0x20,0x20,0x20,0x31,0x10,0x7F,0x0C,0x22,0x10,0x43,0x71,0x90,0x21,0x30,0x61, 
0x0C,0x23,0x08,0x41,0x00,0x09,0x80,0x00,0x2A,0x7F,0xFF,0xFF,0xFF,0x80,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x01,0x80,0x00,0x54,0xFF,0xFF,0xFF,0xFF,0x80,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x01,0x80,0x00,0xA9,0xFF,0xFF,0xFF,0xFF,0x80,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 
0x80,0x00,0x53,0xFF,0xFF,0xFF,0xFF,0x9F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFD,0x80,0x00, 
0xA7,0xFF,0xFF,0xFF,0xFF,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x01,0x4F,0xFF, 
0xFF,0xFF,0xFF,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x02,0x9F,0xFF,0xFF,0xFF, 
0xFF,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x01,0x3F,0xFF,0xFF,0xFF,0xFF,0x86, 
0x40,0x00,0x08,0x00,0x03,0xE7,0x1E,0x88,0x88,0x88,0x7C,0x00,0x80,0x01,0x00,0x00, 
0x03,0x80,0x01,0x00,0x40,0x01,0x80,0x02,0x3F,0xFF,0xFF,0xFF,0xFF,0x89,0x40,0x00, 
0x08,0x00,0x00,0x88,0x92,0x94,0x94,0x50,0x10,0x00,0x80,0x01,0x00,0x00,0x04,0x40, 
0x01,0x10,0x40,0x01,0x80,0x04,0x70,0x63,0x0D,0xDD,0xDD,0x88,0x71,0x9C,0xEE,0x33, 
0x80,0x88,0x92,0x55,0x14,0x50,0x11,0x8C,0xE7,0x19,0x31,0xD1,0x04,0x0C,0x01,0x39, 
0xC0,0x01,0x80,0x02,0xFD,0xDD,0x75,0xDA,0xEB,0x86,0x4A,0x52,0x29,0x4A,0x40,0x88, 
0x9E,0x55,0x22,0x20,0x12,0x52,0x94,0xA5,0x4A,0x4A,0x04,0x12,0x01,0x12,0x40,0x01, 
0x80,0x04,0xFD,0xDD,0x0D,0x50,0x77,0x81,0x4B,0xD2,0x49,0x7A,0x40,0x88,0x90,0x55, 
0x3E,0x20,0x13,0xD0,0x94,0xA5,0x4A,0x4A,0x04,0x12,0x01,0x12,0x40,0x01,0x80,0x09, 
0xFD,0xE3,0x7E,0xB7,0x77,0x89,0x4A,0x12,0x89,0x42,0x40,0x88,0x90,0x55,0x22,0x20, 
0x12,0x12,0x94,0xA5,0x4A,0x4A,0x04,0x52,0x01,0x12,0x40,0x01,0x80,0x13,0xFF,0xFF, 
0xFF,0xFF,0xFF,0x86,0x49,0xD2,0xE9,0x3A,0x40,0x87,0x10,0x22,0x41,0x20,0x11,0xCC, 
0x94,0x99,0x31,0xC4,0x03,0x8C,0x49,0xF9,0xC8,0x01,0x80,0x03,0xFF,0xFF,0xFF,0xFF, 
0xFF,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x02,0x44,0x00,0x00,0x08,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x88, 
0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 
0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 
0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 
0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x01,0x80,0x0F,0xC0,0x00,0x0F,0xF8,0x03,0xFE,0x00,0x3F,0x80,0x00,0x1F,0x80, 
0x07,0xF0,0x00,0x01,0xF0,0x00,0x3F,0x00,0x01,0xFC,0x00,0x00,0x7F,0x80,0x00,0x01, 
0x80,0x0F,0xC0,0x00,0x0F,0xF8,0x03,0xFE,0x00,0xFF,0xE0,0x00,0x1F,0x80,0x1F,0xFC, 
0x00,0x01,0xF0,0x00,0xFF,0xC0,0x07,0xFF,0x00,0x01,0xFF,0xF0,0x00,0x01,0x80,0x0F, 
0xC0,0x00,0x0F,0xF8,0x03,0xFE,0x03,0xFF,0xF0,0x00,0x3F,0x80,0x3F,0xFE,0x00,0x03, 
0xF0,0x01,0xFF,0xE0,0x0F,0xFF,0x80,0x07,0xFF,0xF8,0x00,0x01,0x80,0x0F,0xC0,0x00, 
0x0F,0xFC,0x07,0xFE,0x03,0xFF,0xF8,0x00,0x3F,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00,0x01, 
0x80,0x0F,0xFF,0xFF,0x0F,0x83,0xF8,0x3E,0x0F,0xFF,0xFC,0x00,0x1F,0x80,0x7F,0xFF, 
0x00,0x03,0xF0,0x03,0xFF,0xF0,0x1F,0xFF,0xC0,0x0F,0xFF,0xFC,0x00,0x01,0x80,0x0F, 
0xFF,0xFF,0x0F,0x81,0xF0,0x3E,0x0F,0xFF,0xFC,0x00,0x1F,0x80,0x3F,0xFE,0x00,0x03, 
0xF0,0x01,0xFF,0xE0,0x0F,0xFF,0x80,0x07,0xFF,0xF8,0x00,0x01,0x80,0x0F,0xFF,0xFF, 
0x0F,0x81,0xF0,0x3E,0x1F,0xFF,0xFC,0x00,0x1F,0x80,0x1F,0xFC,0x00,0x03,0xF0,0x00, 
0xFF,0xC0,0x07,0xFF,0x00,0x01,0xFF,0xF0,0x00,0x01,0x80,0x0F,0xFF,0xFF,0x0F,0x81, 
0xF0,0x3E,0x1F,0xFF,0xFC,0x00,0x1F,0x80,0x07,0xF0,0x00,0x03,0xF0,0x00,0x3F,0x00, 
0x01,0xFC,0x00,0x00,0x7F,0x80,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 
0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 
0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 
0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 
0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x3F,0xC3,0xE3,0xFE, 
0x80,0x84,0x7C,0x7F,0xD0,0x10,0x00,0x0F,0x00,0x83,0x80,0x00,0x00,0x81,0xC0,0xE0, 
0x1F,0xC2,0x00,0x00,0x20,0x00,0x00,0x01,0x80,0x00,0x20,0x04,0x10,0x20,0xC0,0x84, 
0x82,0x04,0x18,0x10,0x00,0x11,0x01,0x84,0x40,0x00,0x01,0x82,0x21,0x10,0x10,0x20, 
0x00,0x00,0x20,0x00,0x00,0x01,0x80,0x00,0x20,0x08,0x08,0x20,0xA0,0x89,0x01,0x04, 
0x14,0x10,0x00,0x20,0x82,0x88,0x20,0x00,0x02,0x84,0x12,0x08,0x10,0x10,0x00,0x00, 
0x20,0x00,0x00,0x01,0x80,0x00,0x20,0x08,0x00,0x20,0xA0,0x89,0x00,0x04,0x14,0x10, 
0x00,0x00,0x84,0x88,0x20,0x82,0x04,0x84,0x02,0x08,0x10,0x12,0x41,0x1C,0x23,0xC0, 
0x00,0x01,0x80,0x00,0x20,0x04,0x00,0x20,0x90,0x88,0x80,0x04,0x12,0x10,0x00,0x00, 
0x84,0x88,0x20,0x44,0x00,0x85,0xC2,0x08,0x10,0x12,0x22,0x22,0x24,0x20,0x00,0x01, 
0x80,0x00,0x20,0x03,0x80,0x20,0x88,0x88,0x70,0x04,0x11,0x10,0x00,0x01,0x08,0x88, 
0x20,0x28,0x00,0x86,0x22,0x08,0x10,0x22,0x14,0x41,0x24,0x00,0x00,0x01,0x80,0x00, 
0x3F,0x80,0x70,0x20,0x88,0x90,0x0E,0x04,0x11,0x10,0x00,0x01,0x10,0x88,0x20,0x28, 
0x00,0x84,0x12,0x08,0x1F,0xC2,0x14,0x41,0x24,0x00,0x00,0x01,0x80,0x00,0x20,0x00, 
0x08,0x20,0x84,0x90,0x01,0x04,0x10,0x90,0x00,0x02,0x20,0x88,0x20,0x10,0x00,0x84, 
0x12,0x08,0x10,0x02,0x08,0x7F,0x23,0xC0,0x00,0x01,0x80,0x00,0x20,0x00,0x08,0x20, 
0x82,0x90,0x01,0x04,0x10,0x50,0x00,0x04,0x3F,0xC8,0x20,0x28,0x00,0x84,0x12,0x08, 
0x10,0x02,0x14,0x40,0x20,0x20,0x00,0x01,0x80,0x00,0x20,0x08,0x08,0x20,0x82,0x91, 
0x01,0x04,0x10,0x50,0x00,0x08,0x00,0x88,0x20,0x28,0x00,0x84,0x12,0x08,0x10,0x02, 
0x14,0x41,0x20,0x20,0x00,0x01,0x80,0x00,0x20,0x04,0x10,0x20,0x81,0xA0,0x82,0x04, 
0x10,0x30,0x00,0x10,0x00,0x84,0x40,0x44,0x00,0x82,0x21,0x10,0x10,0x02,0x22,0x22, 
0x24,0x20,0x00,0x01,0x80,0x00,0x20,0x03,0xE0,0x20,0x80,0xA0,0x7C,0x04,0x10,0x10, 
0x00,0x3F,0x80,0x83,0x80,0x82,0x00,0x81,0xC0,0xE0,0x10,0x02,0x41,0x1C,0x23,0xC0, 
0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 
0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 
0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x01,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 
0x00,0x01,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 
}; 
 
 
//----------------------------------- 
// Delay Routine 
//----------------------------------- 
void delayms(uint m)    // 12MHz Xtal, close to ms value 
{ 
    uint j; 
    uint i; 
  
    for(i=0; i<m; i++) 
        for(j=0; j<109; j++) 
           _nop_(); 
} 
 
//----------------------------------- 
// IO Routine 
//----------------------------------- 
void SdCmd(uchar Command)            // send command 
{ 
    _WR = 1;                // init all control signal 
    _RD = 1; 
    RS  = 0;                // for command 
    LCDBUS = Command; 
    _CS = 0;                // enable the access 
    _WR = 0; 
    _WR = 1; 
    _CS = 1;               // disable chip select 
} 
 
void SdData(uchar DData)             // send data 
{ 
    _WR = 1;                // init all control signal 
    _RD = 1; 
    RS  = 1;                // for diaplay data 
    LCDBUS = DData; 
    _CS = 0;                // enable the access 
    _WR = 0; 
    _WR = 1; 
    _CS = 1;                // disable the access   
} 
 
 
 
 
//----------------------------------- 
// init 
//----------------------------------- 
void initLCDM() 
{ 
    _RST = 1;  
    _RST = 0;       // reset the LCD module 
    delayms(10); 
    _RST = 1; 
    delayms(100);     // wait for the init routine to finish 
//  read OPT data 
    SdCmd(0xd7);		// Disable Auto Read 
	SdData(0x9F);		 
	SdCmd(0xe0);		// Enable OTP Read 
	SdData(0x00);		 
	delayms(100);		 
	SdCmd(0xe3);		// OTP Up-Load 
	delayms(200);		 
	SdCmd(0xe1);		// OTP Control Out 
// initail set 
	SdCmd(0x11);		// Sleep Out 
	SdCmd(0x28);		// Display OFF 
	delayms(500);		 
	SdCmd(0xc0);		// Vop = B9h 
	SdData(0x1f);		// contrast value 
	SdData(0x01);		// 01 
	SdCmd(0xc3);		// BIAS  
	SdData(0x02);		// 05 = 1/12 
	SdCmd(0xc4);		// Booster = x8 
	SdData(0x07);		 
	 
	SdCmd(0xd0);		// Enable Analog Circuit 
	SdData(0x1d);		 
	SdCmd(0xb5);		// N-Line = 13 
	SdData(0x8d);		//8d 
	SdCmd(0x38);		// 4 Gray 
//	SdCmd(0x39);		// B/W Mode 
	SdCmd(0x3a);		// Enable DDRAM Interface 
	SdData(0x02);		 
	SdCmd(0x36);		// Dispaly Control 
	SdData(0xc8);       // MY=1,MX[1:0]=11;		 
	SdCmd(0xb0);		// Duty Setting 
	SdData(0x9f);		// 160 line 9f 
	SdCmd(0x20);		// Display Inversion OFF 
 
	SdCmd(0xb1);		// First COM out 
	SdData(0x00);		// com0 
	 
	SdCmd(0x29);		// Display ON 
} 
 
 
 
//======================================================== 
// 画图函数 
//======================================================== 
void ShowBMP(uchar x,uchar y,uchar width,uchar high,uchar *pstr) 
// 坐标(x,y),x为水平方向字符位(1个字符位占3个像素点);y为垂直方向像素行; 
// width:图片宽度,按照水平方向像素点计算;high:为图片高度,按照像素点计算,*pstr 图片数组名 
{ 
	uchar i,j,k,Ddata,temp; 
	SdCmd(0x2a);		// Column Address Setting 
	SdData(0x00);		//  
	SdData(x);			//  
	SdData(0x00);		 
	SdData((width/3)+x-1);	//	 
	SdCmd(0x2b);		// Row Address Setting 
	SdData(0x00);		//  
	SdData(y);		 
	SdData(0x00);		 
	SdData(y+high-1); 
	SdCmd(0x2c); 
	for(i=0;i<high;i++) 
	{ 
	 for(j=0;j<width;j=j+24) 
	   { 
	    Ddata=*pstr++; 
		for(k=0;k<2;k++) 
		  { 
		   temp=Ddata&0xe0; 
		   SdData(ChangeTab[temp>>5]); 
           Ddata=Ddata<<3; 
  		  } 
	    Ddata=Ddata + ((*pstr)>>2);  
		for(k=0;k<2;k++) 
		  { 
		   temp=Ddata&0xe0; 
		   SdData(ChangeTab[temp>>5]); 
           Ddata=Ddata<<3; 
  		  } 
	    Ddata=Ddata + (((*pstr++)&0x03)<<4);   
        Ddata=Ddata +((*pstr)>>4); 
		for(k=0;k<2;k++) 
		  { 
		   temp=Ddata&0xe0; 
		   SdData(ChangeTab[temp>>5]); 
           Ddata=Ddata<<3; 
  		  } 
        Ddata=Ddata +(((*pstr++)&0x0f)<<2); 
		for(k=0;k<2;k++) 
		  { 
		   temp=Ddata&0xe0; 
		   SdData(ChangeTab[temp>>5]); 
           Ddata=Ddata<<3; 
  		  } 
       } 
	} 
} 
 
 
//----------------------------------- 
// Main Program 
//----------------------------------- 
void main() 
{ 
    SP=0x60; 
    EA = 0;             // disable interrupts 
 
    
    _CS     = 1; 
    _RD     = 1; 
    _WR     = 1; 
    RS      = 1; 
 
    initLCDM();    
 
   ShowBMP(0,0,240,160,Logo);  
 
	while(1); 
	 
} 
//end of program