PDA

View Full Version : PIC-LCD3310 Pin Outs for PicBasic(pro)



douglas.mauro
- 12th March 2009, 13:29
I've been playing around with the PIC-LCD3310 from SparkFun/Olimex
( http://www.olimex.com/dev/pic-lcd3310.html )

I can't figure out the LCD pin-outs for picbasic(pro). I found the names/pins within the C sample code but I can't seem to (guess) what they mean for pbp.

From the schematic here are the pins I have to work with...
http://www.olimex.com/dev/images/PIC/PIC-LCD3310-REV-A-sch.gif

VDD(1)
SCK1(2) -> SCK
MOSI1(3) -> SDIN
D/#C(4) -> D/#C
#SS1(5) -> #SCE
GND(6)
VOUT(7)
#RES(8) -> #RES

Looking on the web/forums I find no xref to these names and what I need within PicBasic(pro).
( http://www.melabs.com/downloads/pbpm108.pdf )

‘ Set LCD Data port
DEFINE LCD_DREG PORTA
‘ Set starting Data bit (0 or 4) if 4-bit bus
DEFINE LCD_DBIT 0
‘ Set LCD Register Select port
DEFINE LCD_RSREG PORTA
‘ Set LCD Register Select bit
DEFINE LCD_RSBIT 4
‘ Set LCD Enable port
DEFINE LCD_EREG PORTB
‘ Set LCD Enable bit
DEFINE LCD_EBIT 3
‘ Set LCD bus size (4 or 8 bits)
DEFINE LCD_BITS 4
‘ Set number of lines on LCD
DEFINE LCD_LINES 2
‘ Set command delay time in us
DEFINE LCD_COMMANDUS 1500
‘ Set data delay time in us
DEFINE LCD_DATAUS 44

I found all these great examples/tutorials/etc but NON seem to use a common name. (end rant)

Gusse
- 12th March 2009, 15:21
Have you read Using Nokia LCD (http://www.picbasic.co.uk/forum/showthread.php?t=327)? There is more info and some codes for 3310 LCD.

BR,
-Gusse-

douglas.mauro
- 12th March 2009, 19:16
Yes I did thank you but I can't seem to find a xref for the names of the pins within the PIC_3310 board and the picbasic(pro) commands LCD_DREG_***

Byte_Butcher
- 12th March 2009, 19:41
Well, the LCDOUT command in PBP is for a parallel LCD (either 4 or 8 data lines)
and your Nokia LCD appears to be a SERIAL device... (1 data line and a clock)

Gusse
- 13th March 2009, 07:17
3310 is using serial interface (1 Data and Clk) as Byte_Butcher mentioned. You have to use SHIFTOUT -command to transfere data to LCD.
Here (http://www.picbasic.co.uk/forum/showthread.php?t=10416) you can find one 3310 LCD example.

Controllers used in 3310 or variants (8210...) are: PDC8544 (Philips), KS0712 (Samsung) or SED15A2D01 (Seiko-Epson). All are commands wise compatible.

5.39. LCDOUT
"PBP supports LCD modules with a Hitachi 44780 controller or equivalent."

BR,
-Gusse-