Author Topic: 128x64 LCD Problem  (Read 6517 times)

0 Members and 1 Guest are viewing this topic.

Offline bogdan2013Topic starter

  • Regular Contributor
  • *
  • Posts: 54
  • Country: ro
  • Always is someone better than you !
128x64 LCD Problem
« on: April 21, 2013, 10:41:38 am »
Hello all ! I made a little software for my GLCD RG12864A and it work well in ISIS Proteus(I used a similar display in simulator : AMPIRE 128x64) . I'm not sure why LCD is not working ...

MCU : Mega32

Pin config :
1. Vss -> GND
2. Vdd -> +5
3. V0 -> POT.
4. D/I -> PORTD , PIN 2
5. RW -> PORTD , PIN 7
6. E -> PORTD , PIN5
7. D0 ... 14. D7 -> PORTC , PIN 0 ... PIN 7
15. CS1 -> PORTD , PIN 3
16. CS2 -> PORTD , PIN 4
17. RESET -> +5
18. Vout - Not connected

P.S. : JTAGEN fuse is disabled .
« Last Edit: April 21, 2013, 07:19:09 pm by bogdan2013 »
 

Offline Bored@Work

  • Super Contributor
  • ***
  • Posts: 3932
  • Country: 00
Re: 128x64 LCD Problem
« Reply #1 on: April 21, 2013, 12:50:52 pm »
Ask Labcenter why the simulation doesn't work http://support.labcenter.co.uk/forums/ .
I delete PMs unread. If you have something to say, say it in public.
For all else: Profile->[Modify Profile]Buddies/Ignore List->Edit Ignore List
 

Offline bogdan2013Topic starter

  • Regular Contributor
  • *
  • Posts: 54
  • Country: ro
  • Always is someone better than you !
Re: 128x64 LCD Problem
« Reply #2 on: April 21, 2013, 12:52:46 pm »
The simulator work , but my LCD not work :(
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 10518
  • Country: nz
Re: 128x64 LCD Problem
« Reply #3 on: April 21, 2013, 01:19:55 pm »
Is this "while" statement supposed to read data returned from the LCD?

Code: [Select]
#define DATA_PORT PORTC
---
while (DATA_PORT >= 0x08){
Enable();
}

If you want to read the inputs you need to use PINC instead of PORTC.
Reading PORTC just returns whatever you last wrote to the output port.
« Last Edit: April 21, 2013, 01:24:52 pm by Psi »
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline Bored@Work

  • Super Contributor
  • ***
  • Posts: 3932
  • Country: 00
Re: 128x64 LCD Problem
« Reply #4 on: April 21, 2013, 01:36:35 pm »
The simulator work , but my LCD not work :(

No, the simulator does not work ok. It should match reality. If something doesn't work in reality then the simulation should not work. If the simulation works it is broken.
I delete PMs unread. If you have something to say, say it in public.
For all else: Profile->[Modify Profile]Buddies/Ignore List->Edit Ignore List
 

Offline bogdan2013Topic starter

  • Regular Contributor
  • *
  • Posts: 54
  • Country: ro
  • Always is someone better than you !
Re: 128x64 LCD Problem
« Reply #5 on: April 21, 2013, 02:37:24 pm »
Still not working ... I will check the software again .
 

Online PA0PBZ

  • Super Contributor
  • ***
  • Posts: 5330
  • Country: nl
Re: 128x64 LCD Problem
« Reply #6 on: April 21, 2013, 06:48:27 pm »

Pin config :
6.       E -> PORTD , PIN3
15. CS1 -> PORTD , PIN 3

Then, in GraphicLCD.c line 14:
#define  E    5

So, some confusion here?

Keyboard error: Press F1 to continue.
 

Offline bogdan2013Topic starter

  • Regular Contributor
  • *
  • Posts: 54
  • Country: ro
  • Always is someone better than you !
Re: 128x64 LCD Problem
« Reply #7 on: April 21, 2013, 06:51:01 pm »
Sorry , enable is to PIN 5 .
 

Offline amyk

  • Super Contributor
  • ***
  • Posts: 8652
Re: 128x64 LCD Problem
« Reply #8 on: April 22, 2013, 10:26:08 am »
The simulator work , but my LCD not work :(

No, the simulator does not work ok. It should match reality. If something doesn't work in reality then the simulation should not work. If the simulation works it is broken.
Maybe because he's using a different LCD in the simulation than he is in reality?

There is no "standard 128x64 LCD". There may be similarities between the command sets of different controllers but the init sequence may differ enough for the code to not be 100% compatible between them.
 

Offline bogdan2013Topic starter

  • Regular Contributor
  • *
  • Posts: 54
  • Country: ro
  • Always is someone better than you !
Re: 128x64 LCD Problem
« Reply #9 on: April 23, 2013, 05:55:55 pm »
Yep , I use a RG12864 LCD , but in simulator is a similar display : AMPIRE 128x64  .
Here is the datasheet : http://www.tme.eu/ch/Document/4c6a62e3da3f0da62c0cec549fd025c8/rg12864a-rgb.pd
Now I'm designing new software .
« Last Edit: April 23, 2013, 06:16:56 pm by bogdan2013 »
 

Offline bogdan2013Topic starter

  • Regular Contributor
  • *
  • Posts: 54
  • Country: ro
  • Always is someone better than you !
Re: 128x64 LCD Problem
« Reply #10 on: April 23, 2013, 08:51:25 pm »
Here's new software . It work something , but I still have some problems : the  "A" is not displayed correctly and problems with set page . I think is from clock .
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf