Shop OBEX P1 Docs P2 Docs Learn Events
How to use display driver with CCB Bus ??? — Parallax Forums

How to use display driver with CCB Bus ???

Koco86Koco86 Posts: 6
edited 2006-06-19 16:25 in BASIC Stamp
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 sad.gif
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 SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-06-19 14:36
    Is this chip on an existing LCD?· Normally you wouldn't communicate with this chip directly.· This is the pixel driver for an LCD.· Normally you would be tlaking to another controller chip which communicates with this one.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • Koco86Koco86 Posts: 6
    edited 2006-06-19 15:13
    Thanks, for your interest.

    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 SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-06-19 15:35
    Since this is from a car stereo most likely the other chip is on the main board.· I guess you will have to try and talk to it directly.· Not sure if you will be able to or not.· Does the display power up correctly?· I wonder if you're able to supply all the voltages necessary for it to operate (some require negative voltages).· Also, just to be sure, is the display LCD or VFD?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • Koco86Koco86 Posts: 6
    edited 2006-06-19 16:22
    It's VFD. Power up is correct. I check all electronic, it's ok. I have no problem with power supply and all necessary voltages, there is no negative voltages. PCB with display and chip work with 5V(I have schematic diagram from manufacturer of this PCB). Direct communication between BS and this display driver LC758xx works (I seen realy working device), but not in my case sad.gif ,My colleague have problem like this, but with LC7584W (smaller brother of this one [noparse]:)[/noparse] ), and he fix it. Problem is, that he don't work here any more, and he don't made any documentation about this problem.
  • Koco86Koco86 Posts: 6
    edited 2006-06-19 16:25
    There is problem in my program, but I don't known where is bug.
Sign In or Register to comment.