The Godfather talking
This is god damn my place! Capisci?
Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 21, 2024, 02:32:15 14:32


Login with username, password and session length


Pages: [1]
Print
Author Topic: 18f4550 and GLCD initialization  (Read 6522 times)
0 Members and 1 Guest are viewing this topic.
mrauf57
Guest
« on: November 04, 2010, 11:19:50 23:19 »

hi every body.
I wanna ask that i wanna write only on my GLCD, so must i not connect the RW pin to ground?Huh if yes then what changes u suggest me to do in my code?? the code is attached here. thank you and regards..
///********************LCD Definitions**********************************
char GLCD_DataPort at PORTD;
sbit GLCD_CS1 at RB0_bit;
sbit GLCD_CS2 at RB1_bit;
sbit GLCD_RS  at RB2_bit;
sbit GLCD_RW  at RB3_bit;
sbit GLCD_EN  at RB4_bit;
sbit GLCD_RST at RB5_bit;

sbit GLCD_CS1_Direction at TRISB0_bit;
sbit GLCD_CS2_Direction at TRISB1_bit;
sbit GLCD_RS_Direction  at TRISB2_bit;
sbit GLCD_RW_Direction  at TRISB3_bit;
sbit GLCD_EN_Direction  at TRISB4_bit;
sbit GLCD_RST_Direction at TRISB5_bit;

//******************************************************************
void delay2S(){
Delay_ms(2000);
}
//*****************************************************************
void main()
{
#define COMPLETE_EXAMPLE
        //ANSEL = 0;
        //ANSELH = 0;
        //C1ON_bit = 0;
        //C2ON_bit = 0;
        Glcd_init();
        Glcd_Fill(0x00);
//*************main code loop***************
while(1)
{
  #ifdef COMPLETE_EXAMPLE
       Glcd_Set_Font(Character8x7, 8, 7, 32);
      delay2S();
  #endif

  #ifdef TEXT_DEMO
    Glcd_Write_Text("Rauf", 1, 7, 2);
    delay2S();
  #endif

  }
}
Logged
mrauf57
Guest
« Reply #1 on: November 08, 2010, 06:05:12 06:05 »

ooohooo, y no one is replying at me,,, i just wanna know what must i do with RW pin of my GLCD (jhd12864E)? must i connect to ground or any specified pin of 18f4550?, i fund one example in mikroC pro for PIC but that for read also, i just wanna write only on it///
plzzzzzzzzzz any body help me..

best best regards
Logged
dideco
Junior Member
**
Offline Offline

Posts: 39

Thank You
-Given: 7
-Receive: 6


« Reply #2 on: November 08, 2010, 08:22:04 20:22 »

It is better to connect R/W pin to micro because, you may need to read the printed LCD data to overwrite a part of the byte. But, I don't know if you need to connect R/W pin for your current application or software.
Logged
Suky
Guest
« Reply #3 on: November 12, 2010, 02:34:03 02:34 »

To do this you must use an internal buffer in the microcontroller to take data found on the LCD. Else, it is impossible to achieve, because to change the state of a pixel must be read one byte, change the bit and rewrite. Or else, change the status of the entire byte,  but when writing a text, the functions do not implement it that way (Amends pixel by pixel)
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC