Discussion in "PIC Microcontroller Discussion" started by    vohsty    Nov 12, 2013.
Tue Nov 12 2013, 10:42 PM
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
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
Mon Nov 18 2013, 05:06 AM
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
i forgot to mention that the proteus simulation works perfectly with the prebuilt hex
Mon Nov 18 2013, 11:02 PM
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
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
@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
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
which compiler are you using?

Get Social


Powered by e107 Forum System


Wed Mar 25 2020, 09:39 AM
Sir kindly send the code file i2c for 8051
Fri Mar 13 2020, 06:36 PM
@ Rohitnani,ABEBE..which project ?
Fri Mar 13 2020, 08:55 AM
how can get hadwere of this project
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
Wed Jan 22 2020, 01:16 PM
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
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
Hello. Can anyone share the code in Bascon and scheme in Proteus?



Thu Apr 09 2020, 12:05 AM
Wed Apr 08 2020, 11:08 PM
Wed Apr 08 2020, 04:57 PM
Wed Apr 08 2020, 03:38 AM
Mon Apr 06 2020, 07:54 PM
Mon Apr 06 2020, 09:13 AM
Sun Apr 05 2020, 10:33 PM
Sun Apr 05 2020, 03:26 AM


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...