PIC Lesson: LCD Nokia 3310


LCD Nokia 3310 adalah Graphic LCD yang kecil. Pixelnya adalah 84X48. LCD Nokia 3310 menggunakan controller PCD8544.

LCD Nokia 3310 boleh di programkan melalui SPI. LCD ini menggunakan driver model PCD8544. Di bawah adalah skematik untuk LCD Nokia 3310.

Berikut adalah videonya.

PIC Source Code

/*
Project: GLCD PCD8544 Lesson, LCD Nokia 3310 Example
Programmer: Shahrulnizam Mat Rejab
PIC (Crystal Frequency):
PIC16F877A (20MHz), PIC16F887 (20MHz), PIC16F1939 (Internal 32MHz) 
PIC18F4520 (10MHz), PIC18F4550 (10MHz), PIC18F46K22 (Internal 16MHz)
Compiler: HI-TECH C for PIC10/12/16 V9.83, PIC18 V9.80
Last Modified: 29 May 2015
Website: http://shahrulnizam.com
*/

#define	UART
#define	PCD8544

#include "LibraryHardware.h"
#include "LibraryChar.h"
#include "LibraryUniversalDisplay.h"

void setup()
{
initialize();
TRISA=0b00000000;
TRISB=0b00000000;
TRISC=0b00000000;
#if !defined (_18F26K22)
    TRISD=0b00000000;
    TRISE=0b00000000;
#endif
BUZZER=1;
glcd_init();
}

void loop()
{
#if defined (LCD_LIGHT)
    LCD_LIGHT=1;
#endif    
glcd_goto(0,0);
glcd_string("PCD8544 LESSON");
glcd_string("  84X48 GLCD  ");
glcd_string("NOKIA 3310 LCD");
glcd_string("              ");
glcd_string("              ");
glcd_string("              ");
delay(1000);

#if defined (LCD_LIGHT)
    LCD_LIGHT=0;
#endif
glcd_goto(0,0);
glcd_string("              ");
glcd_string("              ");
glcd_string("              ");
glcd_string("  PIC IS FUN  ");
glcd_string(" SHAHRULNIZAM ");
glcd_string("   DOT COM    ");
delay(1000);
}

10 responses to “PIC Lesson: LCD Nokia 3310”

  1. Hy. Great job. I am a student and I want to make a similar project with pic16f877 and nokia 5110 lcd but I am stuck with the program. Can you help me please with your code? My e-mail is mugurel_ioja@yahoo.com. Thank you.

  2. nak tanya kalau kita taknak guna nokia lcd 3310 boleh tak guna lcd biasa cnth LM016L…dan coding seperti diatas pun kira dah xsesuaike..em lagi satu nak tanya, lm117 tu takada dalam proteus software yg saya guna, so pendapat encik dgn apa yg saya patut ganti yang sama function dgn lm117.tq

Leave a Reply to Shahrul Cancel reply

Your email address will not be published. Required fields are marked *