Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

lcd hd44780 type help - problem in programming

Status
Not open for further replies.

jl_21

Newbie level 6
Joined
Aug 4, 2008
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
philippines
Activity points
1,372
lcd hd44780 type help

hey guyz i'm having a problem in programming an LCD
my LCD is LM052L it has a built in LSI HD44780 and i'm using a pic16f877a i don't know what's the problem.

this is my picbasic program:

Device=16F877A
XTAL=4
ALL_DIGITAL=true

TRISC=0

LCD_DTPIN=PORTC.0 'CALL ASSIGNED ADDRESS TO PORTC.0
LCD_RSPIN=PORTC.4
LCD_ENPIN=PORTC.5
LCD_INTERFACE=4 '4 BITS
LCD_LINES=2 '2 LINES
LCD_TYPE=0 '0 = ALPHANUMERIC ; 1 = GRAPHICAL

DelayMS 500 'PAUSE

main:

Cls 'CLEAR SCREEN
Print At 1,1," MCU DESIGN " 'DISPLAY MCU DESIGN MAXIMUM 20 CHARACTERS
Print At 2,1," test " 'DISPLAY test

End

This isn't my real program because i'm working on a digital thermostat which shows its output at the LCD. but first i'm trying to0 figure out how to run the LCD so this is just a test program. hope you can help me.

My test schematic circuit is uploaded here:
the filename is schematic_lcd


i dont know if the problem lies in the program or in the schematic.[/img]
 

have u defined the pocessor speed correctly in the properties of 16f877A? ie 4MHz according to code.
 

zip file attached..containing all related materials
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top