elango
Joined: 03 Sep 2007 Posts: 1
|
Graphical LCD |
Posted: Mon Sep 03, 2007 7:37 am |
|
|
hai,
am elango "[email protected]"
i need help,
in my project ,i used " F-51852CNF J-SLW-AEN "
is not display anything,
Gonfiguration:
PIC18F67J50 At 20MHz-crystal
3.3v power supply
also (1- -11v)negative supply
3x booster ckt
80 series
Parallel-data (Port- E)
all capa 1uF/25v
Resistance 1M,5M
MPLAB v7.62 with C18- v311
and my code like this
//----------------------------------------
LcdWrite(0, 0xE2); // RESET_DISPLAY
LcdWrite(0, 0xB0); // PAGE_ADDRESS_SET
LcdWrite(0, 0x10); // column_ADDRESS_SET h
LcdWrite(0, 0x00); // column_ADDRESS_SET l
LcdWrite(0, 0xA2); // LCD_BIAS_1_9
LcdWrite(0, 0xA1); // ADC_SELECT_REVERSE
LcdWrite(0, 0x81); // contrast set
LcdWrite(0, 0x3F); // contrast set
LcdWrite(0, 0xAF); // DISPLAY_ON
LcdWrite(0, 0x2B); // was 2B with external supply
Delay(50);
LcdWrite(0, 0xE7); //lcd driver on
//--------------------------------------------
void LcdWrite(unsigned char Reg, unsigned char Value)
{
TRISE=0x00;//o/p
DDR = Value;
if (Reg == 0) { A0 = 0;} else { A0 = 1;}//set A0
CS = 0; //CS low
WR = 0; //WR low
WR = 0; //WR low
WR = 1; //WR high
WR = 1; //WR high
CS = 1; //CS high
}
//--------------------------------------------
#define WR PORTFbits.RF7
#define RD PORTFbits.RF6
#define RES PORTGbits.RG0
#define CS PORTGbits.RG3
#define A0 PORTGbits.RG4
#define DDR PORTE
//--------------------------------------------
Suggest me, Hardware + beginning firmware for this
Kindly help me.
Thank you |
|