12864 GLCD /RST

General discussion on mikroC PRO for PIC.
Post Reply
Author
Message
pumper
Posts: 285
Joined: 10 Jan 2011 17:37

12864 GLCD /RST

#1 Post by pumper » 25 Jun 2023 00:22

I have been using the 12864 20 pin GLCD without the /RST connected for some time so I don't need it for my application or do I?
Yes I have googled it without any luck.

When should I use it and what exactly does it do, I can't find any information on it.

paulfjujo
Posts: 1553
Joined: 24 Jun 2007 19:27
Location: 01800 St Maurice de Gourdans France
Contact:

Re: 12864 GLCD /RST

#2 Post by paulfjujo » 26 Jun 2023 19:18

hello,
rst is used for the 1rst display init ...

this test in alphanumeic OK ... .. but not OK in graphic mode

Code: Select all


void glcd_init_graph(){ 
   Delay_mS(40); 
   rst=0;         //reset LCD 
   Delay_uS(10);                      
   rst=1;        //LCD normal operation 
   glcd_instruction(0x30);   //set 8 bit operation and basic instruction set 
   Delay_uS(144); 
   glcd_instruction(0x0C);   //display on cursor off and char blink off 
   Delay_uS(100); 
   glcd_instruction(0x01);   //display clear 
   Delay_mS(10); 
   glcd_instruction(0x06);   //entry mode set 
   Delay_uS(72);                  
  glcd_instruction(0x34);    // Select extended instruction set. 
  Delay_mS (10); 
  glcd_instruction(0x36);    // Graphic display ON. 
  Delay_mS (10); 

  glcd_fillScreen (OFF); 
  glcd_update (); 

} 

Post Reply

Return to “mikroC PRO for PIC General”