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.

Looking for LCD source code

Status
Not open for further replies.

JoKKeR

Full Member level 2
Joined
Feb 14, 2008
Messages
130
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Location
Estonia
Activity points
2,281
Hi,


Im using PIC24F series A PIC24F16KA102
Iv got 2 LCD-s, 1 with HD44780 and the other one is KS6600 controlled
Also im using C30 as compiler (for PIC24F no software modules for lcd




Im looking for a sample code ... a routines .... anything i could use to get stared with LCD.

I appreciate every suggestion, reply, thought ... on this subject.


Some questions i like to get answered

1-How universal are the routines for char LCDs (Different PIC series...)
2-Can i use very simple LCD initializing program for a complex project, any problems or difficulties i may face later ?
3-Iv seen a LCD source code with print function, WOW :D really nice. Do i really need it ?
4-Iv tried to display something on LCD... nothing shows up. If contrast pin is equal to a LCD voltage is it OK ?
5-If ill try to write a LCD initializing code by myself instead of using sample. Will it benefit ? Time ... result... knowledge.
6-Is there a useful tutorial You know, ebook maybe... i could use.
7-What is the difference between 8 bit and 4 bit data interface ? How complicated is the in code configuration ?
8-Any problems i may face later ?



Thank you
 

Hi

Here is an answer to some of your question:

1) If you separates hardware access function from software(LCD access function) all software function is almost the same with hardware function can be a timing problems - LCD is a very slow device

2) Yes, if you use the 44780 (most of LCD char type controller are based on the 44780 )

3)NO, it is only a wrapping function to ease the API

4)It is depend on the LCD manufacture you can connect it to GND via a resistor or supply a negative rail for best contrast (don't left it floating - not connected)

5)Yes, You will gain some experience for your next LCD project

6)There are many - search Google for "44780 & LCD"

7) Basically 4 bit hardware is slower then 8 bit and it is mostly used to spear micro controller IO's

8)many..... Experience will short the the amount of problems you will encounter- good luck!. :D


All the best

Bobi

The microcontroller specialist
 

    JoKKeR

    Points: 2
    Helpful Answer Positive Rating
It could be great if someone would point out a code example i can use(PIC24F, C30 compiler) or one which is easily modifiable.

What about a LCD peripheral module code from another compiler or for different MCU series ?


I found many examples on internet but there were non for C30 PIC24F. Could You, as a more experienced user, point out a code for me to start with or give me advise , about a start, i so much need.


In a C30 compiler there are no peripheral module code for PIC24F for LCD, but there are one for PIC24H. What is the difference between tease two and what problems i may face while using library for 24H series for PIC24F series MCU.


I included a doc file XLCD for PIC24H. Iv seen AND_OR_MASK definitions in a PIC24F libraries but, in this case (PIC24H library) there is a AND_MASK. It is theme to deep for beginner as im ... at the moment. what does it mean and stand for ?


I appreciate every reply, suggestion, thought ... I try to threat them with the highest priority
Thank you !
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top