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!!!! glcd problem in pic18f452

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



Joined: 08 Nov 2012
Posts: 5
Location: India

View user's profile Send private message

HELP!!!! glcd problem in pic18f452
PostPosted: Wed Nov 21, 2012 11:28 pm     Reply with quote

I am using jhd24064c glcd (t6963c controller).
Datasheet for glcd jhd24064c:
http://img09.b2b.hc360.com/pic-9/handbook-pic-1/9-1-1275991.pdf

http://www.ccsinfo.com/forum/viewtopic.php?t=49389&highlight=t6963c+pic16f877a
glcd code is working with pic16f877a.

Hardware connection:

C0 ---WRITE
C1----READ
C2----CE
C3----CD
C4----RST

PORT D - DATA

When I am trying to implement the same code (with alternate port address) in pic18f452, glcd not display. But its working in Proteus simulation.

Plz help me ! I don't know why it's not displayng.
temtronic



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

View user's profile Send private message

PostPosted: Thu Nov 22, 2012 6:36 am     Reply with quote

1) Please read the very first post PIC101......

2) "with alternate port address". Which port? Have you disabled every onboard peripheral on that port.

3) code written for one PIC series will not 'instantly' work for another. 16 series is far different than the 18 series with respect to pin usages, register addresses, fuses, etc.

The code will have to be modified for use on the 18F452.

hth
jay
Ttelmah



Joined: 11 Mar 2010
Posts: 19403

View user's profile Send private message

PostPosted: Thu Nov 22, 2012 10:01 am     Reply with quote

As a separate comment though, before trying to get the GLCD driver working have you fully verified the PIC18, is actually running, and running at the right frequency:

Simple 'flash an LED program, and verify the LED does flash, and at the speed expected.

PIC's require their oscillators to work, and things like LCD code, require that they are running at the right frequency. Proteus, will accept what you tell it is the oscillator frequency, even if it is impossible, and will make the power connections without showing them. Errors in either of these will stop a real PIC working.

Best Wishes
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