CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Help about 128x64 lcd

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Robin



Joined: 23 Feb 2015
Posts: 2

View user's profile Send private message

Help about 128x64 lcd
PostPosted: Mon Feb 23, 2015 12:30 pm     Reply with quote

Hello everyone!

firstly, I would like excuse me for my English. I am French and I have a lot of trouble to write english.


I come to ask for help.

Indeed, after many tests I can't use my LCD

My setup:
PIC18F4550-20MHz Crystal-PICkit2

The lcd:
12864A
EMG12864A-FL-YBS


I just found this little datasheet for lcd: http://www.sharp-electronic.com/downfiles/20131010231332.pdf


Someone would have there an example and library of a program that works?

I already tested glcd, KS0108, Extended_GLCD Drivers , none works for me.


In advance thank you !!!
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Feb 23, 2015 12:46 pm     Reply with quote

Quote:
EMG12864A-FL-YBS

Do you really mean "EGM12864A" ? Probably.

Have you tried this CCS driver ?
//// a KS0108 display controller. The HDM64GS12 is 128 by 64 pixels.
c:\program files\picc\drivers\hdm64gs12.c
temtronic



Joined: 01 Jul 2010
Posts: 9161
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Mon Feb 23, 2015 12:46 pm     Reply with quote

Basic questions
1) have you got your PIC to run a '1Hz LED' program successfully?

If not, choose an unused pin and make a simple program to flash the LED at a 1Hz rate. That PIC has a lot of 'clock' options, so we have to know it does this test.

2) there are about 75 'hits' when you search 'KS0108' on this forum, so you're not the first to use that GLCD. You may have to open/read everyone to see.

3) wiring ? use a 3rd party 'hosting service' and show us your schematic.

4) disable any/all peripherals that are common to the I/O pins the GLCD is attached to.

5) compile in 'release' mode NOT 'debug'.

6) show us your code/compiler version/fuses. it could be something simple...

7) contrast ! how have you wired it up ??

the more info you supply the better we can help.

jay
Robin



Joined: 23 Feb 2015
Posts: 2

View user's profile Send private message

PostPosted: Mon Feb 23, 2015 1:08 pm     Reply with quote

Yes exactly : EGM12864A Sorry :(

HDM64GS12 : I try tomorrow




1 ) Yes , timer, pwm and rs232 work fine and i make a new project for testing the LCD

2) I read a lot of post but my lcd doesn't work

3) wiring ? ohh ... i make a pcb for test 18f4550 but without LCD pinout. so i put some cable directly to the lcd..


4)Yes, i try

5) Ok I try tomorrow

6)
#include <18F4550.h>
#fuses HSPLL,NOWDT,NOPROTECT,NOLVP,USBDIV,PLL5,CPUDIV1
#use delay(clock=48000000)

I try a lot of configuration

7) first : Gnd^^^^^VDD
...................... |
...................... |_pin3

. 2° : the same with pin 18 VEE
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Feb 23, 2015 2:41 pm     Reply with quote

This diagram shows the contrast circuit that you should be using:
http://embedded-lab.com/blog/wp-content/uploads/2011/12/GLCD_InternalBlock1.jpg
Note the trimpot's output (center wiper pin) goes to Vo. The two ends of
the trimpot connect to Vdd and to Vee.

Also the same circuit is shown on page 8 of this KS0108 glcd:
https://www.crystalfontz.com/products/document/100/CFAG12864KYYHTN.pdf
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group