CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Graphical LCD

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
elango



Joined: 03 Sep 2007
Posts: 1

View user's profile Send private message

Graphical LCD
PostPosted: Mon Sep 03, 2007 7:37 am     Reply with quote

hai,
am elango "balaelangoeko@yahoo.co.in"
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
dyeatman



Joined: 06 Sep 2003
Posts: 1924
Location: Norman, OK

View user's profile Send private message

PostPosted: Mon Sep 03, 2007 11:26 am     Reply with quote

Elango,

This is the CCS C Compiler Forum NOT the Microchip C18 Forum.

To get help with MPLAB and your C18 program try the Microchip C18 Forum at the
following link:

http://forum.microchip.com/tt.aspx?forumid=-1


.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group