Discussion in "PIC Microcontroller Discussion" started by    Afnan    May 1, 2013.
Wed May 01 2013, 11:15 pm
#1
I Also Managed to run another opensource library. It showed perfect output at ISIS. When i write it to controller it does not show anything just straight boxes. Ofcourse this means that lcd is not initialized or something. It points that something is wrong with the hardware right? but No, Why? because of following reasons
1. With LCD i also toggle ports and thy do toggle.
2. Checked Connections multiple time with connectivity meter too
3. I wrote simple lcd test program at same pin connections it works like charm(Just ground the RW pin of LCD) .


The confusion is if the Proteus is showing the correct working LCD program it should replicate on hardware. What are my possible directions to dig into this issue? Ofcourse this is debugging but i have done what i knew you guys may help me debugging.

What can be the difference between pic hex or mplab xc8 hex that makes proteus run them correct but not the hardware


[ Edited Wed May 01 2013, 11:17 pm ]
Wed May 01 2013, 11:57 pm
#2


I Also Managed to run another opensource library. It showed perfect output at ISIS. When i write it to controller it does not show anything just straight boxes. Ofcourse this means that lcd is not initialized or something. It points that something is wrong with the hardware right? but No, Why? because of following reasons
1. With LCD i also toggle ports and thy do toggle.
2. Checked Connections multiple time with connectivity meter too
3. I wrote simple lcd test program at same pin connections it works like charm(Just ground the RW pin of LCD) .


The confusion is if the Proteus is showing the correct working LCD program it should replicate on hardware. What are my possible directions to dig into this issue? Ofcourse this is debugging but i have done what i knew you guys may help me debugging.

What can be the difference between pic hex or mplab xc8 hex that makes proteus run them correct but not the hardware


EDIT
I imported the library that i was using in MPLAB to MikroC.

Now it is same code but different tools............ What could be wrong?


[ Edited Thu May 02 2013, 10:13 am ]
Thu May 02 2013, 10:14 am
#3
Can you attach your code, and proteus simulation here? (zip it)
Thu May 02 2013, 07:27 pm
#4
The attachment contains the code for same library used for MikroC and MPLAB XC8 and ISIS design File. MikroC hex gives display at ISIS as well as hex where as hex obtained by MPLAB XC8 shows output only on ISIS not the hardware. The comparision of Bits generated my MikroC and MPLAB seen by PICkit2 are in image at picpaste.com/pics/bits-xT63Ui6m.1367506819.png


[ Edited Thu May 02 2013, 08:48 pm ]
Sat May 04 2013, 01:23 pm
#5
to make things simple replace "LCDBusyLoop();" and your LCD reset sequence is not correct. Please check this tutorial:

LCD interfacing with Microcontrollers tutorial - 4-bit Mode

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Timothypet
Wed May 15 2024, 06:14 pm
RandyBence
Wed May 15 2024, 02:00 pm
JordanDic
Wed May 15 2024, 01:55 pm
DavidDeelf
Wed May 15 2024, 11:16 am
ytaletjkca
Wed May 15 2024, 09:45 am
MildredWoumb
Wed May 15 2024, 04:07 am
NaKrutkADamb
Wed May 15 2024, 12:03 am
MichaelGot
Tue May 14 2024, 04:08 pm