View previous topic :: View next topic |
Author |
Message |
M0KHZ
Joined: 14 Feb 2008 Posts: 18 Location: Cumbria
|
Mapping pins to LCD.C |
Posted: Thu Feb 14, 2008 1:06 pm |
|
|
Hi Real newby question ....
The hardware for my LCD has been wired as follows:
Pin_C0 = Enable
Pin_C1 = R/W
Pin_C2 = RS
Pin_D0 = D7
Pin_D1 = D6
Pin_D2 = D5
Pin_D3 = D4
The question is how do I map these pins in the LCD.C file? As you can see I really am on the start of my learning curve here!
Regards
Kevin – M0KHZ |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
M0KHZ
Joined: 14 Feb 2008 Posts: 18 Location: Cumbria
|
|
Posted: Thu Feb 14, 2008 1:30 pm |
|
|
Hi Thanks for the quick reply, I've tried this and still no display, mind you I an using virgin hardware ! Homebrew at that, I'm running out of time tonight, so will have to wait till tomorrow evening before I can continue
Thanks again, I'll keep you posted.
Regards
Kevin - M0KHZ |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
M0KHZ
Joined: 14 Feb 2008 Posts: 18 Location: Cumbria
|
|
Posted: Sat Feb 16, 2008 10:52 am |
|
|
Hi Guys
OK, after a few hours going round in circles and failing miserably to get my Osc firing, and after trying 3 different crystals and a whole range of loading capacitors, and changing the PIC (not easy as it was a TQFP pacage!) I’ve (temporarily) given up and have opted to use an external 10Mhz osc I have here in the shack!
The good news is my LCD display is fully functional using the ‘flex_LCD420.c” code.
My hardware pins mapped without any issues, and it just works. Thanks for getting me started on this new venture.
Kevin – M0KHZ |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sat Feb 16, 2008 11:11 am |
|
|
Quote: | my LCD display is fully functional using the ‘flex_LCD420.c” code |
The link that I posted was for a 16x2 LCD. You should have told me
that you needed a driver for a 20x4 lcd. I would have posted a link
to that one. |
|
|
M0KHZ
Joined: 14 Feb 2008 Posts: 18 Location: Cumbria
|
|
Posted: Sat Feb 16, 2008 11:38 am |
|
|
Hi It was no problem, the link you posted had a link to the 4x20 anyway, the code works a treat, thanks again.
The next stage to to structure the code!
I'm thinking state machine, and have an idea to what it should look like, so onwards and upwards!
Regards
Kevin - M0KHZ |
|
|
|