How to use display driver with CCB Bus ???
Koco86
Posts: 6
Hi everyone.
I need communicate with display driver (LC75804W - there is the datasheet: http://www.alldatasheet.com/datasheet-pdf/pdf/40935/SANYO/LC75804W.html)
It have CCB bus, but I don't understand it (how to use CCB).
Please, help me somebody
thanks.
There is my program, but don't work:
'LCD Display driver - CCB interface
'{$STAMP BS2p}
'{$PBASIC 2.5}
i1 VAR Byte 'counter
OutByte VAR Byte 'output buffer
Line VAR Byte 'line in DispDATA
Pointer VAR Byte 'Pointer to data in line
CL PIN 0 'Clock
DI PIN 1 'Data in
D0 PIN 2 'Data out
CE PIN 3 'Chip enable
'Data to LCD driver
DispDATA DATA $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$F0,$00,$04
DATA $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$F0,$00,$01
DATA $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$F0,$00,$02
DATA $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$00,$00,$03
'
Start:
AUXIO
DIRL = $FF
CE = 0
CL = 0
DI = 0
D0 = 0
'
PAUSE 2000
'
FOR Line = 0 TO 3
'
OutByte = $42 'CCB Display Address
GOSUB SendByte 'Send address to CCB bus
'
CE = 1
D0 = 1
CL = 0
PAUSE 1
'
FOR Pointer = 0 TO 11
'
OutByte = $00
READ DispDATA + (Line*12) + Pointer,OutByte 'Read data from DispDATA
GOSUB SendByte 'Send data to CCB bus
'
NEXT
'
CE = 0
D0 = 0
CL = 0
PAUSE 1
'
NEXT
'
CE = 0
D0 = 0
CL = 0
DI = 0
'
STOP
'Send byte to CCB bus
SendByte:
'
FOR i1 = 0 TO 7
'
CL = 0
PAUSE 1
'
DI = OutByte.BIT7
PAUSE 1
'
CL = 1
PAUSE 1
'
OutByte = OutByte << 1
'
NEXT
'
RETURN
I need communicate with display driver (LC75804W - there is the datasheet: http://www.alldatasheet.com/datasheet-pdf/pdf/40935/SANYO/LC75804W.html)
It have CCB bus, but I don't understand it (how to use CCB).
Please, help me somebody
thanks.
There is my program, but don't work:
'LCD Display driver - CCB interface
'{$STAMP BS2p}
'{$PBASIC 2.5}
i1 VAR Byte 'counter
OutByte VAR Byte 'output buffer
Line VAR Byte 'line in DispDATA
Pointer VAR Byte 'Pointer to data in line
CL PIN 0 'Clock
DI PIN 1 'Data in
D0 PIN 2 'Data out
CE PIN 3 'Chip enable
'Data to LCD driver
DispDATA DATA $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$F0,$00,$04
DATA $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$F0,$00,$01
DATA $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$F0,$00,$02
DATA $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$00,$00,$03
'
Start:
AUXIO
DIRL = $FF
CE = 0
CL = 0
DI = 0
D0 = 0
'
PAUSE 2000
'
FOR Line = 0 TO 3
'
OutByte = $42 'CCB Display Address
GOSUB SendByte 'Send address to CCB bus
'
CE = 1
D0 = 1
CL = 0
PAUSE 1
'
FOR Pointer = 0 TO 11
'
OutByte = $00
READ DispDATA + (Line*12) + Pointer,OutByte 'Read data from DispDATA
GOSUB SendByte 'Send data to CCB bus
'
NEXT
'
CE = 0
D0 = 0
CL = 0
PAUSE 1
'
NEXT
'
CE = 0
D0 = 0
CL = 0
DI = 0
'
STOP
'Send byte to CCB bus
SendByte:
'
FOR i1 = 0 TO 7
'
CL = 0
PAUSE 1
'
DI = OutByte.BIT7
PAUSE 1
'
CL = 1
PAUSE 1
'
OutByte = OutByte << 1
'
NEXT
'
RETURN
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Yes, is on an existing LCD. It's front panel from car radio. There is only LCD and this chip (LC75804W). I need all LCD segments turn on.
What another chip I can use to communicate with this one?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com