lcd.c file that works with custum dataport

Thread Starter

FroceMaster

Joined Jan 28, 2012
708
Hi
Have a 16F18877 and a LCD 4*20 connected to port D0-D3, RS=RB3 EN=RD7

Need a lcd.c file that works, have been trying to modify those i found online,
help needed :)
 

bertus

Joined Apr 5, 2008
22,938
Hello,

The file will be dependend on the controller used on the LCD.
When you know the controller type, the search will be more easy.

Bertus
 

spinnaker

Joined Oct 29, 2009
7,830
Haven't we been here before? At least a couple of times as I recall.


For example. What is wrong with the code that you used here?

https://forum.allaboutcircuits.com/threads/cant-init-more-than-one-line-on-lcd.154524/

and here

https://forum.allaboutcircuits.com/threads/16f18877-and-4-lcd-compile-error.143415/#post-1213501

If you got it to work there why is this new chip presenting a problem?

And you should well know by now you need to provide a lot more information then what you have done in order to get help.
 

Thread Starter

FroceMaster

Joined Jan 28, 2012
708
Ok,
This is the LCD https://dk.farnell.com/midas/mc4200...numeric-20x4-yellow/dp/2675677?st=mc42004a6wr
Running on a SPLC780D controller
Connected on my PIC to port D0-D4
D4 = Port D3
D5 = Port D2
D6 = Port D0
D7 = Port D1
EN on port D7 and RS on RB3

The code i have used before will not work, and i think i might have something to do with :

LCD Dataline connected to "half" port D,

For some years ago i have even a code that will work on every port,
Could use 4 different port for datalines, if i would.
 

spinnaker

Joined Oct 29, 2009
7,830
And has said, many times before check all of your wiring one pin at a time. No one has a crystal ball and can see what is in front of you.
 

Thread Starter

FroceMaster

Joined Jan 28, 2012
708
Works now
Somehow i can only select 8 MHz, or less, 12 16 20 32 are all given trouble.
But then i will have to run 8 MHz, fine by me:)
 
Top