graphic lcd with ks108
AHMET AKSU
Posts: 62
·
·· I want to use 128*64 lcd with ks108 chip.I·tried the ks108 object which writen by Erik Friesen.when I heve powered the prop .I can see something on lcd but the text on lcd moving
· and·I cant read the text clearly.the code shows the modified section of ks108 object.
CON
_clkmode = xtal1 + pll16x
_xinfreq = 5_000_000
mask=1······
IOpins· =· %00000000_11111111_00000000_00111111· 'set output pins
DI····· =· 0
RW····· =· 4
Ena···· =· 1
DB0pin· =· 16 'For reversed pins set to db7 and make active first two lines of #writebyte·
db0_db7 =· %11111111<<DB0pin
CS1···· =· 2
CS2···· =· 3
RST···· =· 5
Post Edited (AHMET AKSU) : 12/8/2007 5:23:21 PM GMT
·· I want to use 128*64 lcd with ks108 chip.I·tried the ks108 object which writen by Erik Friesen.when I heve powered the prop .I can see something on lcd but the text on lcd moving
· and·I cant read the text clearly.the code shows the modified section of ks108 object.
CON
_clkmode = xtal1 + pll16x
_xinfreq = 5_000_000
mask=1······
IOpins· =· %00000000_11111111_00000000_00111111· 'set output pins
DI····· =· 0
RW····· =· 4
Ena···· =· 1
DB0pin· =· 16 'For reversed pins set to db7 and make active first two lines of #writebyte·
db0_db7 =· %11111111<<DB0pin
CS1···· =· 2
CS2···· =· 3
RST···· =· 5
Post Edited (AHMET AKSU) : 12/8/2007 5:23:21 PM GMT
Comments
and then its working now.I m asking that : how can I add a delay to ks108.spin ???
I set my pins a little different...as shown below. I went and checked all the signals and everything goes High and Low at the correct pin...but when I run the program...nothing happens.....
Here is my code and pin layout.....
mask=1
IOpins = %11011111_11111111_10000000_00000000 '%11000000_00000000_00001111_11111111 'set output pins
DI = 25
RW = 26
Ena = 27
DB0pin = 15 'For reversed pins set to db7 and make active first two lines of #writebyte
db0_db7 = %11111111<<DB0pin
CS1 = 23
CS2 = 24
RST = 28
''* ┌─────────────┐ ┌──────────┐ *
''* │Pin1 VSS ┣───────┴─Grnd 100uf cap? (or stable supply) *
''* │ VDD ┣───────────────┬──┴──── 5 volts *
''* │ Vo ┣────────────── 20K contrast *
''* │ D/I ┣──── 25 │ *
''* │ R/W ┣──── 26 │ *
''* │ E ┣──── 27 │ *
''* │ DB0 ┣──── 15 │ *
''* │ DB1 ┣──── 16 │ *
''* │ DB2 ┣──── 17 │ *
''* │ DB3 ┣──── 18 │ *
''* │ DB4 ┣──── 19 │ *
''* │ DB5 ┣──── 20 │ *
''* │ DB6 ┣──── 21 │ *
''* │ DB7 ┣──── 22 │ *
''* │ CS1 ┣──── 23 │ *
''* │ CS2 ┣──── 24 │ *
''* │ RES ┣──── 5Volts │ *
''* │ VEE ┣───────────────┘ *
''* │ K ┣────── - LED *
''* │Pin 20 Anode ┣────── + LED *
''* └─────────────┘ *
''*