Help-- S0108 GLCD Not Initializing

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
K1JOS
 
Posts: 13
Joined: Sat May 24, 2014 8:38 am

Help-- S0108 GLCD Not Initializing

Post by K1JOS »

I am new to Arduino but have some basic-moderate experience programming PIC's. I have a Uno and a 128x64 generic (WIDE-HK) KS0108 3 chip monochrome LCD (it matches the Pinout B shown in the GLCD support docs). I extracted the GLCD version 3 library (keeping its sub folder structure same) into the Arduino library folder. I then uploaded to the Uno the GLCDdiags and opened the Serial Monitor. I get the following initialization error shown below. I double checked the harness wiring from the display to the UNO and then used a DVM to confirm the continuity from each display pin to the corresponding Uno pin to make sure no wire issues. The display lights and shows 4 large vertical sections each having an alternating color (1st=blue, 2nd=white, 3rd=blue, 4th=white) and within each vertical band there is random pixels on and off. I hit reset a few times but returns with same pattern and error on Serial Monitor. I also tried switching CSEL1 and CSEL2 but this gave me no pixels. Any advice/help appreciated, thanks Jerry


Serial initialized
--------------------------------------------------------------------
Reported Arduino Revision: 1.5
--------------------------------------------------------------------
GLCD Lib Configuration: glcd ver: 3 glcd_Device ver: 1 gText ver: 1
GLCD Lib build date: Mon Dec 5 01:50:07 CST 2011
GLCD Lib build number: 442
Panel Configuration:ks0108
Pin Configuration:ks0108-Arduino
--------------------------------------------------------------------
GLCD:ks0108 DisplayWidth:128 DisplayHeight:64
Chips:2 ChipWidth:64 ChipHeight:64
CSEL1:14(PIN_C0) CSEL2:15(PIN_C1)
RW:16(PIN_C2) DI:17(PIN_C3) EN:18(PIN_C4)
D0:8(PIN_B0) D1:9(PIN_B1) D2:10(PIN_B2) D3:11(PIN_B3)
D4:4(PIN_D4) D5:5(PIN_D5) D6:6(PIN_D6) D7:7(PIN_D7)
Delays: tDDR:320 tAS:140 tDSW:200 tWH:450 tWL:450
ChipSelects: CHIP0:(14,0x1, 15,0x0) CHIP1:(14,0x0, 15,0x1)
Data mode:
d0-d3:nibble mode-Non-Atomic
d4-d7:nibble mode-Non-Atomic
--------------------------------------------------------------------
Diag Loop: 1
Initializing GLCD
GLCD initialization Failed: RESET wait Timeout (status code: 2)
--------------------------------------------------------------------

User avatar
K1JOS
 
Posts: 13
Joined: Sat May 24, 2014 8:38 am

Re: Help-- S0108 GLCD Not Initializing

Post by K1JOS »

I said the WIDE-HK is a 3 chip but I am not sure as the IC's are covered with black epoxy. It has three IC's. two being identical in size and third larger.

jerry

User avatar
Franklin97355
 
Posts: 23940
Joined: Mon Apr 21, 2008 2:33 pm

Re: Help-- S0108 GLCD Not Initializing

Post by Franklin97355 »

Have you checked the shop where you got the display for info on using it with the Arduino? Do you have a link to the datasheet?

User avatar
K1JOS
 
Posts: 13
Joined: Sat May 24, 2014 8:38 am

Re: Help-- S0108 GLCD Not Initializing

Post by K1JOS »

Here is the link: http://www.wide.hk/pdf/YMG12864-1.pdf

Here are the pins
NO SYM LEVEL FUNCTION
1 VSS - 0V
2 VDD - +5V
3 VO - CONTRAST ADJ.
4 D/I H/L H:DATA, L:INSTRUCTION CODE
5 R/W H/L H:READ(LCD MPU) L:WRITE(MPU LCD)
6 E H.H -> L ENABLE SIGNAL
7 DB0 H/L DATA BIT0
8 DB1 H/L DATA BIT1
9 DB2 H/L DATA BIT2
10 DB3 H/L DATA BIT3
11 DB4 H/L DATA BIT4
12 DB5 H/L DATA BIT5
13 DB6 H/L DATA BIT6
14 DB7 H/L DATA BIT7
15 CS1 H CHIP SELECT SIGNAL FOR IC1
16 CS2 H CHIP SELECT SIGNAL FOR IC2
17 RST L RESET SIGNAL
18 VEE -5.0V NEGATIVE VOLTAGE OUTPUT (-5.0V)
19 A(+) 5.0V BACKLIGHT(+)
20 K(-) 0V BACKLIGHT(-)

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”