Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How coding for nokia 3311 display.

Status
Not open for further replies.

joynal

Newbie level 6
Joined
Apr 2, 2012
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,370
I am using LM016L LCD my simple project and i want to use Nokia 3311 display.

I don't know how to coding for Nokia 3311 display, anyone help me?


Code:


// Lcd pinout settings
sbit LCD_RS at RB2_bit;
sbit LCD_EN at RB3_bit;
sbit LCD_D7 at RB7_bit;
sbit LCD_D6 at RB6_bit;
sbit LCD_D5 at RB5_bit;
sbit LCD_D4 at RB4_bit;

// Pin direction
sbit LCD_RS_Direction at TRISB2_bit;
sbit LCD_EN_Direction at TRISB3_bit;
sbit LCD_D7_Direction at TRISB7_bit;
sbit LCD_D6_Direction at TRISB6_bit;
sbit LCD_D5_Direction at TRISB5_bit;
sbit LCD_D4_Direction at TRISB4_bit;


char *text1 = "Hello!";
char *text2 = "Hey There!";



void main(){
TRISB=0;
TRISC=0;
TRISD=0xff;
PORTB=0;
PORTC=0;
while(1){

if(portd.f0==0){
Lcd_Init();
Lcd_Cmd(_LCD_CLEAR);
Lcd_Cmd(_LCD_CURSOR_OFF);
Lcd_Out(1,1,text1);
delay_ms(100);
}
if(portd.f1==0){ // You press RB0 button when PIC runs instruction at this point onwards
Lcd_Init();
Lcd_Cmd(_LCD_CLEAR);
Lcd_Cmd(_LCD_CURSOR_OFF);
Lcd_Out(2,1,text2);
delay_ms(100);
}
if(portd.f2==0){ // For LED
portc.f0=0;
delay_ms(100);
portc.f0=1;
delay_ms(100);
}
}
}


p.png
 

Why do you using LM016L if asking about nokia display? They have nothing common.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top