PDA

View Full Version : again with weired lcd



malwww
- 18th May 2009, 10:49
i've got this lcd they use it for car radio i want to use it with pic 16f84,and i want to know witch data and how can i send data and clock bcz it works with shiftout and i didnt understand the datasheet of that IC they use in the lcd here the schema,please help me just what i neet to send how long data and clock and the mode in shiftout,thank you'other things the wire it has vcc,gnd,sclck,sdat, it works in its device,it doesnt need other wires like rst ,

bogdan
- 18th May 2009, 23:41
why you didn't use pic16f9** ? they have dumb lcd driver built in...

malwww
- 20th May 2009, 04:09
hi bogdan
not found any pic or atmel in my country to buy and we r not alowed to send money out of morocco to buy things i had my friend bought me 2 of 16f84 from spain.last year and i just started to learn pbp, thats way im trying to use this lcd if u haveany ideas how to send data to it,it needs shiftout ,

bogdan
- 20th May 2009, 12:09
check your pm

malwww
- 27th May 2009, 02:55
sorry bogdan i dont understand what u mean by pm

bogdan
- 27th May 2009, 23:26
private messages

malwww
- 14th June 2009, 16:05
i've got this lcd they use it for car radio i want to use it with pic 16f84,and i want to know witch data and how can i send data and clock bcz it works with shiftout and i didnt understand the datasheet of that IC they use in the lcd here the schema,please help me just what i neet to send how long data and clock and the mode in shiftout,thank you'other things the wire it has vcc,gnd,sclck,sdat, it works in its device,it doesnt need other wires like rst ,

i wrote this code and im confused witch address i use i didnt understand the datasheet exactly the commands anyone can help me
' I2CREAD and I2WRITE Commands

Include "modedefs.bas"
DEFINE SHIFT_PAUSEUS 1000

SDO VAR PortB.0
SCLK var PortB.1
DPIN var PORTA.0
CPIN var PORTA.1
B0 var byte
B1 var bit
B2 var byte
B3 var byte
B4 var byte


portB = 0
TRISB = 0
loop:
pause 100
For B2 = 0 To 9

lookup b2,[252,96,218,242,102,182,190,224,254,246],b0
I2CWRITE DPIN,CPIN,%01110000,address?,[ b0]
Pause 20
Next B2
Goto loop

end