Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
//00000
//00001
//00010
//00011
//00100 - finishes init. no screen
//00101
//00110 - finishes init. no screen
//00111
//01000
//01001
//01010
//01011
//01100
//01101
//01110
//01111
//10000
//10001
//10010
//10011
//10100
//10101 - init. no screen
//10110
//10111
//11000
//11001
//11010
//11011
//11100
//11101
//11110
//11111
// EN bit is complemented on the LCD side
//#define GLCD_CFG_EN_COMPLEMENTED
// DI bit is complemented on the LCD side
// By default, D is active high and I is active low
// Uncomment this line if your LCD has different pinout configuration
//#define GLCD_CFG_DI_COMPLEMENTED
// CSx bits are complemented on the LCD side
#define GLCD_CFG_CS_COMPLEMENTED
// RS bit is complemented on the LCD side
#define GLCD_CFG_RS_COMPLEMENTED
// RW bit is complemented on the LCD side
// By default, R is active high and W is active low
// Uncomment this line if your LCD has different pinout configuration
//#define GLCD_CFG_RW_COMPLEMENTED
Can some one please tell the pin details of the GLCD.
i have one /RST pin, should this be pulled high using a resistor or should i directly apply 5V to it.
Also what to do about the pins Vo and Vee ? I have tried giving them both 5V and GND but still nothing shows up on the GLCD.
If i apply 5v to one and GND to the other, they short circuit the whole board.
Also i am unable to find the exact datasheet for my GLCD. On back its written AG1286411 (AGENA) OPCVO. I have tried searching google but in vain.
I have tried several things but my GLCD is not displaying anything. Blank screen. Its a new GLCD but i am not sure how to test if it works or not. The code works fine in proteus but not on actual hardware
#include <p18f4520.h>
#include <delays.h>
#include <stdlib.h>
#include <stdio.h>
#include "GLCD.h" // GLCD Library
#pragma config WDT = OFF, LVP = OFF, OSC = INTIO67, XINST = OFF, DEBUG = OFF
void main(void)
{
ADCON1 = 0x0E;
OSCCON = 0x72; //8MHz clock
while(!OSCCONbits.IOFS); //wait for osc stable
while(1)
{
Delay10KTCYx(70);
Init_GLCD();
PutMessage((rom char*)"\x16\x20\x8 \n Testing GLCD\n Second line");
Delay10KTCYx(70);
}
}
#define GLCD_Data PORTD
#define b_GLCD_E PORTEbits.RE0
#define b_GLCD_RW PORTCbits.RC1
#define b_GLCD_RS PORTEbits.RE1
#define b_GLCD_GCS2 PORTCbits.RC5
#define b_GLCD_GCS1 PORTCbits.RC4
#define TRIS_Data TRISD
#define b_TRIS_E TRISEbits.TRISE0 //E
#define b_TRIS_RW TRISCbits.TRISC1 //RW
#define b_TRIS_RS TRISEbits.TRISE1 //RS
#define b_TRIS_GCS2 TRISCbits.TRISC5 //GCS2
#define b_TRIS_GCS1 TRISCbits.TRISC4 //GCS1
while(1)
{
Delay10KTCYx(20);
Init_GLCD();
PutChar('.');
SetPos(12,45);
PutChar('S');
//PutMessage((rom char*)"\x16\x20\x8 \n Testing GLCD\n Second line which is too long");
PORTD ^= 0xFF;
Delay10KTCYx(20);
}