tw1ns 0 Posted January 6, 2013 Share Posted January 6, 2013 Hello. Sorry for my bad english... Iam using MSP430 Launchpad with msp430g2553 chip. I want to connect lcd from Nokia 1100. But i don't initialization this display( I need help. This is my code: #define sclk P2_1#define sda P2_0#define cs P1_5#define rst P1_4#define CMD 0#define DATA 1// clear LCDvoid Lcd_Clear(void){unsigned int i;Lcd_Write(CMD,0x40); // Y = 0Lcd_Write(CMD,0xb0);Lcd_Write(CMD,0x10); // X = 0Lcd_Write(CMD,0x0);Lcd_Write(CMD,0xae); // disable display;for(i=0;i<255;i++)Lcd_Write(DATA,0x00);for(i=0;i<255;i++)Lcd_Write(DATA,0x00);for(i=0;i<255;i++)Lcd_Write(DATA,0x00);for(i=0;i<99;i++)Lcd_Write(DATA,0x00);Lcd_Write(CMD,0xaf); // enable display;}// Initialize the LCD.void Lcd_Init(){ digitalWrite(cs, LOW); digitalWrite(rst, LOW); delay(5); digitalWrite(rst, HIGH); Lcd_Write(CMD,0x20); // write VOP register Lcd_Write(CMD,0x90); Lcd_Write(CMD,0xA4); // all on/normal display Lcd_Write(CMD,0x2F); // Power control set(charge pump on/off) Lcd_Write(CMD,0x40); // set start row address = 0 Lcd_Write(CMD,0xb0); // set Y-address = 0 Lcd_Write(CMD,0x10); // set X-address, upper 3 bits Lcd_Write(CMD,0x0); // set X-address, lower 4 bits Lcd_Write(CMD,0xC8); // mirror Y axis (about X axis) Lcd_Write(CMD,0xa1); // Invert screen in horizontal axis Lcd_Write(CMD,0xac); // set initial row (R0) of the display Lcd_Write(CMD,0x07); //Lcd_Write(CMD,0xF9); // Lcd_Write(CMD,0xaf); // display ON/OFF Lcd_Clear(); // clear LCD Lcd_Write(CMD,0xa7); // invert display delay(100); Lcd_Write(CMD,0xa6); // normal display (non inverted) delay(100); }// Write a byte of data to lcd// Inputs: c Quote Link to post Share on other sites
Rei Vilo 695 Posted January 7, 2013 Share Posted January 7, 2013 Have a look at good introduction Microcontroller Projects: Nokia 1100 LCD Interfacing with ... datasheet PCF8814 65 X 96 pixels matrix LCD driver - myLCD example for [Energia Library] Nokia 5110 LCD BoosterPack/Breakout PCB example for [Energia Library] The $4.30 LCD BoosterPack / Nokia 7110 LCD and more generally speaking http://www.google.com/webhp?hl=en&tab=ww#hl=fr&tbo=d&sclient=psy-ab&q=Nokia+1100+LCD&oq=Nokia+1100+LCD tw1ns 1 Quote Link to post Share on other sites
tw1ns 0 Posted January 8, 2013 Author Share Posted January 8, 2013 THNX! But im find it) Quote Link to post Share on other sites
Rei Vilo 695 Posted January 8, 2013 Share Posted January 8, 2013 Great! Good luck with the library and, when it works, don't forget to post it on the specific Energia Libraries thread! Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.