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.

18f4520 with basic proton lcd problem

Status
Not open for further replies.

zero2004

Member level 1
Joined
Dec 12, 2009
Messages
33
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,505
Hi every one

i try to use lcd with pic 18f4520 by proton basic compiler , i write the code

Device = 18F4520
XTAL 8

Declare LCD_TYPE 0
Declare LCD_DTPIN PORTD.4
Declare LCD_ENPIN PORTD.3
Declare LCD_INTERFACE 4
Declare LCD_RSPIN PORTD.2
ADCON1 = 0xff
ALL_DIGITAL = On

Print 254,1, "HI"

but it doest work, what is the problem with this code

thanks
 

zero2004 said:
Hi every one

i try to use lcd with pic 18f4520 by proton basic compiler , i write the code

Device = 18F4520
XTAL 8

Declare LCD_TYPE 0
Declare LCD_DTPIN PORTD.4
Declare LCD_ENPIN PORTD.3
Declare LCD_INTERFACE 4
Declare LCD_RSPIN PORTD.2
ADCON1 = 0xff
ALL_DIGITAL = On

Print 254,1, "HI"

but it doest work, what is the problem with this code

thanks
please study the user guide

the program should be much more. please see the sequences as defined in LCD datasheet and check whether you have followed all the seqiences while writing the basic code. I fear NO.

just "Print 254,1, "HI" " would not be understandable to microcontroller.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top