Discussion in "PIC Microcontroller Discussion" started by    vohsty    Nov 12, 2013.
Tue Nov 12 2013, 10:42 PM
#1
Hi all
I made the above mentioned project but when i put it on i only get a black line on the first row. I have tryed using different LCDs but i get the same results. please help me.I have attached pictures of my circuit





Fri Nov 15 2013, 12:10 AM
#2
I assume your connections are as per mentioned in the schematic. Did you make any changes by yourself? Try to load the prebuilt hex file first. let me know if that works. Which programmer are you using?
Fri Nov 15 2013, 12:12 AM
#3
Mon Nov 18 2013, 05:06 AM
#4
Thanx for the reply.

Yeah my connections are as per the schematic and i have checked it numerous times to make sure i did it correctly.I dint change anything ,am using it as it is in the download.i loaded the prebuit hex but nothing changes
Am using pickit2
Mon Nov 18 2013, 05:04 PM
#5
i forgot to mention that the proteus simulation works perfectly with the prebuilt hex
Mon Nov 18 2013, 11:02 PM
#6
This problem comes coz of different type of LCD used. They have same working logic but different timings. You need to make changes to program and increase delay at power up and after each command/data sent. So change file lcd162.c function: LCD_data and LCD_command. change delay from delayms(1) to delayms(5)

Also here LCD is used in 4-bit mode instead of 8-bit, make sure D0 to D3 is connected to GND.
Wed Nov 20 2013, 09:01 AM
#7
check that the cntrst pin of lcd has a voltage around .8V . Try increasing delay .If you have any provision for debugging like a RS232 Uart , try to check if code hangs somewhere else.
Thu Nov 21 2013, 07:04 PM
#8
@shyam, code is a finished working code. only problem is his LCD is not getting initialized. so only delay is the issue. Thats the reason I always use busy flag, so you never stumble upon issues like this.
Mon Nov 25 2013, 06:55 PM
#9
Thanx guys for your reply
I Connected the LCD in the 4bit mode but nothing changed.when i change the delay and try to compile the code i get 21 errors and warnings. I dont know where am going wrong.
Wed Nov 27 2013, 08:37 PM
#10
which compiler are you using?

Get Social

Information

Powered by e107 Forum System

Conversation

Wed Mar 25 2020, 09:39 AM
Tajammul
Sir kindly send the code file i2c for 8051
ExperimenterUK
Fri Mar 13 2020, 06:36 PM
@ Rohitnani,ABEBE..which project ?
Fri Mar 13 2020, 08:55 AM
ABEBE
how can get hadwere of this project
Rohitnani
Sat Mar 07 2020, 12:11 PM
Sir, Could you please send me the zip file input password....
Wed Feb 26 2020, 11:58 AM
Peter Parker
Is it possible to send multiple messages using only 1 GSM module?
Sat Feb 01 2020, 05:12 AM
Pearl Olin
Hello,
Wed Jan 22 2020, 01:16 PM
MINU CHAUDHARY
I m getting errors while simulation process during interfacing socket output and lcd... Can i get the report of ur project which is same as us.
Tue Jan 14 2020, 02:08 AM
shubham kharade
when i am trying to simulate the program in Proteus 8 professional, I am getting some errors as cannot find module file dhtxx.md can u help me
Tue Dec 17 2019, 08:44 AM
Devangi
hello..i am programming industrial timer using 8051 with 24lc64 eeprom. i have query in storing the 3 diff value in eeprom with enter button. can anyone share c code ?
Tue Dec 17 2019, 05:30 AM
Andrius
Hello. Can anyone share the code in Bascon and scheme in Proteus?

Downloads

Comments

ukkorikerist
Thu Apr 09 2020, 12:05 AM
Oswaldrib
Wed Apr 08 2020, 11:08 PM
Rachelsig
Wed Apr 08 2020, 04:57 PM
Franksig
Wed Apr 08 2020, 03:38 AM
OliverKiz
Mon Apr 06 2020, 07:54 PM
Nikolaynom
Mon Apr 06 2020, 09:13 AM
Paulinewop
Sun Apr 05 2020, 10:33 PM
NormanJeops
Sun Apr 05 2020, 03:26 AM

Online

Guests: 72, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 01:37 AM

Members: 38149
Newest member: ukkorikerist
Forum Activity
PHANTOM28 Avatar
Posted By PHANTOM28
Fri Feb 28 2020, 10:25 AM
Hi.I hope you all can help me. I am relatively ne...
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Feb 21 2020, 05:05 PM
ajay_bhargav Avatar
Posted By ajay_bhargav
Fri Feb 21 2020, 04:45 AM
Yes you can do that.1. Create a channel @Thingspea...
ananyagupta Avatar
Posted By ananyagupta
Thu Feb 20 2020, 03:58 AM
With regards to the particular characters sent to ...
sarrahjuzar Avatar
Posted By sarrahjuzar
Wed Feb 19 2020, 04:24 AM
I have a gsm module sim900a and dht22 connected to...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Feb 18 2020, 04:52 PM
figureyang Avatar
Posted By figureyang
Tue Feb 18 2020, 04:59 AM
figureyang Avatar
Posted By figureyang
Tue Feb 18 2020, 04:50 AM
wounder Avatar
Posted By wounder
Mon Feb 10 2020, 03:32 AM
From below sample code for nuvoton 8051 timer0 mod...
Just4Fun Avatar
Posted By Just4Fun
Sat Feb 01 2020, 09:20 AM
If you want to use a CH55x MCU there isn't any adv...