protues NOKIA 1100的仿真资料
代码过长发一部分,看看有需要的吗 /*-----------------------------------------------------*/ /*-F--NOKIA1100 display image; /*-M--Debug_*p--- "image[][]"; /*-----------------------------------------------------*/ //void Lcd1100_display_image(uint16 *s)
/*-----------------------------------------------------*/ /*-F--NOKIA1100 linedraw ; /*-M--Debug_*p--- "image[][]"; /*-----------------------------------------------------*/
/*-----------------------------------------------------*/ /*-F--NOKIA1100 initialization; /*-----------------------------------------------------*/ void Init_lcd1100(void)
{ RST = 0; _delay_ms(100); // 5mS so says the stop watch(less than 5ms will not work) RST = 1; Lcd1100_write_byte(CMD,0x20); // write VOP register Lcd1100_write_byte(CMD,0x90); Lcd1100_write_byte(CMD,0xA4); // all on/normal display Lcd1100_write_byte(CMD,0x2F); // Power control set(charge pump on/off) Lcd1100_write_byte(CMD,0x40); // set start row address = 0 Lcd1100_write_byte(CMD,0xB0); // set Y-address = 0 Lcd1100_write_byte(CMD,0x10); // set X-address, upper 3 bits Lcd1100_write_byte(CMD,0x00); // set X-address, lower 4 bits Lcd1100_write_byte(CMD,0xC0); // NO mirror Y axis (about X axis) Lcd1100_write_byte(CMD,0xA0); // NO Invert screen in horizontal axis Lcd1100_write_byte(CMD,0xAC); // set initial row (R0) of the display Lcd1100_write_byte(CMD,0x00); Lcd1100_write_byte(CMD,0xAF); // display ON/OFF Lcd1100_clear(); // clear LCD Lcd1100_write_byte(CMD,0xA6); // normal display (non inverted) _delay_ms(10);
}
仿真源码下载:protues nokia1100仿真代码 http://yunfile.com/file/zhengoogle/e6c87878/
|