View previous topic :: View next topic |
Author |
Message |
vi_ni_ta
Joined: 11 Dec 2006 Posts: 7
|
LCD interface |
Posted: Mon Dec 11, 2006 4:24 am |
|
|
--------------------------------------------------------------------------------
Hey people,
I am a student who is absolutely new to microcontrollers. I am asked to submit a program that display the pressure output in digital format using LCD. am asked to write the program stictly in CCS PIC C. pls help me . got the analog to digital interfacing part rite.. the LCD interface is still an unsolved mystery.. Anybody out there... help me pls...
details:
In PIC Pins
1- reset
2- analog input
9 and 10 - crystal oscillator
15,16,17 and 18- to LCD
22-a switch to choose whether output should be in psi or kilopascal |
|
|
BOB_SANTANA
Joined: 16 Oct 2006 Posts: 110 Location: HOVE, EAST SUSSEX
|
|
Posted: Mon Dec 11, 2006 4:30 am |
|
|
Need more info
1. What Lcd are you using
2. what pic are you using
Regards _________________ BOB_Santana |
|
|
Humberto
Joined: 08 Sep 2003 Posts: 1215 Location: Buenos Aires, La Reina del Plata
|
|
Posted: Mon Dec 11, 2006 4:32 pm |
|
|
Quote: |
the LCD interface is still an unsolved mystery.. Anybody out there... help me pls...
|
If you really want it, it shouldn�t !!
http://www.vermontficks.org/lcdd.htm
http://www.myke.com/lcd.htm
Just to show you a couple of very good info regarding LCD control.
The project it is not an easy task for a begginer student. If I were you, I would
start dividing the task in small steps until I get and learn some skills before
to start measuring an analog value...
Humberto |
|
|
vi_ni_ta
Joined: 11 Dec 2006 Posts: 7
|
LCD HELP ;-( |
Posted: Mon Dec 11, 2006 10:59 pm |
|
|
the LCD i am using is a 16x2 lcd.
we will be using a Hitachi one..
and my PIC is 16F877. |
|
|
vi_ni_ta
Joined: 11 Dec 2006 Posts: 7
|
|
Posted: Mon Dec 11, 2006 11:09 pm |
|
|
BOB_SANTANA wrote: | Need more info
1. What Lcd are you using
2. what pic are you using
Regards |
Bob, am using PIc16F877.. will pass on the code i've written... [just the adc part].. n using Hitachi 16x2 LCD display |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
littlephoc
Joined: 12 Dec 2006 Posts: 8
|
|
Posted: Wed Dec 13, 2006 7:23 am |
|
|
how to know the pin connection between 28pin PICF18 and LCD, I am using red picdem 2 plus. Because my PIC18F2620 has no portD, so I don't know which port and pin to use for LCD data line.
I use the lcd driver in this forum but my LCD still doesn't print any thing.
Please help me
THank you very much |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Dec 13, 2006 11:01 am |
|
|
Quote: |
I am using red picdem 2 plus. Because my PIC18F2620 has no portD,
so I don't know which port and pin to use for LCD data line. |
The Microchip PicDem2-Plus board has the four data lines for the LCD
hard wired to PIC pins RD0 to RD3. The three control lines are on
PIC pins RA1 to RA3. The LCD is really intended to work with a
40-pin PIC.
The PicDem2-Plus board has a jumper area to the right of the sockets,
with a line of holes for Ports A,B,C,D, and E. You could still use the
on-board LCD if you added four jumper wires in that area. You need
to choose some pins on your 18F2620 to use for the LCD data bus.
These pins could be on Port B or Port C. Then jumper them over to
the pads for Port D (D0 to D3). Then you need to change the #define
statements in the Flexible LCD driver, to specify the correct LCD data
bus pins, based upon how you connected the jumper wires.
It would maybe be easier just to use a 40-pin PIC. The PicDem2-Plus
comes with a 16F877 (4 MHz) and an 18F452. You could use one of
those instead of the 18F2620. |
|
|
littlephoc
Joined: 12 Dec 2006 Posts: 8
|
|
Posted: Thu Dec 14, 2006 8:30 pm |
|
|
PCM programmer,
I have spent so much time for it until I recieve your answer. Thank you very much. |
|
|
|