Discussion in "PIC Microcontroller Discussion" started by    vohsty    Nov 13, 2013.
Wed Nov 13 2013, 09:12 am
#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, 10:40 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, 10:42 am
#3
Mon Nov 18 2013, 03:36 pm
#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
Tue Nov 19 2013, 03:34 am
#5
i forgot to mention that the proteus simulation works perfectly with the prebuilt hex
Tue Nov 19 2013, 09:32 am
#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, 07:31 pm
#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.
Fri Nov 22 2013, 05:34 am
#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.
Tue Nov 26 2013, 05:25 am
#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.
Thu Nov 28 2013, 07:07 am
#10
which compiler are you using?

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Bobbyerilar
Thu Mar 28 2024, 08:08 am
pb58
Thu Mar 28 2024, 05:54 am
Clarazkafup
Thu Mar 28 2024, 02:24 am
Walterkic
Thu Mar 28 2024, 01:19 am
Davidusawn
Wed Mar 27 2024, 08:30 pm
Richardsop
Tue Mar 26 2024, 10:33 pm
Stevencog
Tue Mar 26 2024, 04:26 pm
Bernardwarge
Tue Mar 26 2024, 11:15 am