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.

[SOLVED] 4-bit lcd not working

Status
Not open for further replies.

ipinimo

Junior Member level 1
Junior Member level 1
Joined
Sep 7, 2010
Messages
17
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,283
Location
Nigeria
Activity points
1,393
hi all,

i am working on a 4-bit lcd and pic16f877a to display a message with assembly code
i discover dat if i use portD [d4:d7 or d0:d3] for the data and portA or portE for the control its works fine but with thesame code if i use any other port for control apart from portA or portE it will not work

i have cheked the code for
correct input and output pin
correct port assingment

i have cheked the code a thousand times and is correct but thesame result

can anyone tell me solution to this?
 
Last edited:

thanks, i am simulating it with proteus.

if you have proteus
here is the attached project the working one and the one that is not working
i don't want to use portA or portE for the control
i really appreciate any effort or advice
 

Attachments

  • NOT WORKING.zip
    44.2 KB · Views: 111
  • WORKING.zip
    44.1 KB · Views: 112

Hi,

Well, without spending a good bit of time checking, not really sure why your working code is working let alone why the other one does not work.

Is it some you have written or got off the web ?

Your coding is missing important things like ADCON1 to set the Ports the Digital instead of Analogue (on Ports A an E).

You are relying on the default CONFIG settings - do you know what they are ?

Have a loook at these two LCD tutorials - they are good and do work.



PIC Tutorial* Three - LCD Modules

EPE FAQs & Resources
 

WP100 thanks
have you tested the example on the site PIC Tutorial* Three - LCD Modules ?

i tried to simulate it but not working
maybe is my software [proteus7.2]

Not his lcd code I use some slightly different lcd code, have used some of Nigels other code ok, its all used as a reference tutorial on the Electro Tech site and his code is good.

Can you post the code asm,hex,dsn that you used -will try and run it tomorrow to see whats wrong.
 

thanks here is the simulation
 

Attachments

  • ksw.zip
    30 KB · Views: 103

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top