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.

[SOLVED] PIC18F25K22 + MikroC and JHD12864E(graphic LCD) problem

Status
Not open for further replies.

ltsharma

Advanced Member level 4
Full Member level 1
Joined
May 26, 2013
Messages
110
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,306
Location
banglore
Activity points
2,003
Hello,

I bought a new JHD12864E graphic LCD and PIC18f25k22 microcontroller + 4MHZ crystal,

i used Mikroc's GLCD example with changing of Rx to LATx
and ANSEL to ANSELA/B/C for this PIC,

compiled perfectly, in Proteus running perfect (with AMPIRE 128X64)

When on hardware connection

problem is when GLCD's VCC pin is kept connected there is nothing on display. if i removed VCC pin of GLCD for some seconds and connect back, it shows received data on display for few seconds and one side vanishes, again its not receives any new signals (data), have to disconnect and connect VCC back.

(Watch with caption)

 

Change this

Code C - [expand]
1
char GLCD_DataPort at PORTC;

to

Code C - [expand]
1
char GLCD_DataPort at LATC;

and see. If doesn't work then add

Code C - [expand]
1
TRISB = 0x00; TRISC = 0x00;



I don't have Proteus 8. so, post proteus 7.x format file. GLCD maybe defective. Try with another GLCD.
 
i did what u said,

output is

Proteus o/p
glcd.PNG

hardware o/p

glcd real.png

Proteus 7 dont having pic18f18k22
 
Last edited:

no change,

same result

HEYYYY...

i put image its came perfect
 

FOSC means Config bits?

used 4mhz crystal with no pll

and another one, if i did

Code:
char GLCD_DataPort at PORTC;

Proteus output is good, but not works on hardware

- - - Updated - - -

WOHHHHHHHHHHHH its worked in hardware also,,,,

ONLY the small silly problem since,

needed to put

Code:
TRISB = 0x00; TRISC = 0x00;

THANX a lot jayanth, im struggling from last one month,

SORRY for disturbing you peoples
jayanth.devarayanadurga & tpetar
 

Attachments

  • GLCD test.rar
    37 KB · Views: 119
Last edited:

Hello ,

Form where do you get this section

const code char arun[1024] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 7, 63, 248, 193, 63, 31, 249, 192, 61, 3, 1, 255, 255, 17, 57, 1, 131, 1, 255, 255, 1, 0, 128, 192, 0, 124, 254, 131, 1, 1, 2, 135, 0, 0, 124, 254, 131, 1, 1, 131, 254, 124, 0, 1, 255, 15, 126, 248, 192, 56, 7, 255, 255, 1, 1, 255, 255, 17, 57, 1, 131, 0, 206, 159, 25, 49, 242, 231, 0, 0, 0, 0, 1, 7, 31, 248, 224, 25, 7, 1, 0, 124, 254, 131, 1, 1, 131, 254, 124, 0, 1, 255, 255, 1, 0, 1, 255, 1, 0, 143, 191, 0, 0, 143, 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 1, 193, 224, 225, 225, 193, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 192, 240, 252, 255, 255, 127, 31, 127, 255, 255, 252, 240, 192, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 112, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 252, 255, 255, 127, 31, 7, 1, 0, 0, 0, 1, 7, 31, 127, 127, 255, 252, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 3, 3, 7, 7, 15, 15, 31, 31, 63, 62, 126, 252, 252, 248, 248, 240, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 96, 240, 248, 248, 252, 252, 126, 62, 63, 31, 31, 15, 15, 7, 7, 3, 3, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 224, 252, 255, 255, 255, 255, 207, 225, 224, 224, 240, 240, 248, 248, 252, 124, 126, 62, 126, 124, 252, 248, 248, 240, 240, 240, 224, 225, 199, 255, 255, 255, 255, 252, 224, 128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30, 63, 63, 63, 31, 31, 15, 15, 7, 7, 3, 3, 3, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 3, 3, 3, 7, 7, 15, 15, 31, 31, 63, 63, 63, 30, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
};
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top