Shop OBEX P1 Docs P2 Docs Learn Events
BS2 and PCF8558 LCD controller (ericsson mobile phone) — Parallax Forums

BS2 and PCF8558 LCD controller (ericsson mobile phone)

jokerswildjokerswild Posts: 31
edited 2006-03-29 06:42 in BASIC Stamp
Hi,
I have a graphics LCD from an A1018s ericsson mobile·phone and was wondering if anyone has had luck in interfacing this with a BS2? I believe the LCD is controlled by the Philips PCF8558 and have read the datasheet for this IC but I would like to see someones PBasic code as I am relatively new to this. I don't have any experience in I2C protocol.
·
Thanks anyone who can help!

Comments

  • GadgetmanGadgetman Posts: 2,436
    edited 2006-03-23 11:34
    Could you please link to where you found the Datasheet?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Don't visit my new website...
  • jokerswildjokerswild Posts: 31
    edited 2006-03-24 04:19
    This is the link for the product page, datasheet link is at the bottom of this page.

    http://www.semiconductors.philips.com/pip/PCF8558.html



    Datasheet link.

    http://www.semiconductors.philips.com/acrobat/datasheets/PCF8558_2.pdf
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2006-03-24 16:08
    Member BPM has perhaps done something similar (?) -- http://forums.parallax.com/showthread.php?p=556815
  • GadgetmanGadgetman Posts: 2,436
    edited 2006-03-24 20:24
    That thing is a greaphic LCD controller, and with 'vertical' mapping of the Bytes on the LCD.

    If you want to output text on it, you'll first have to create bitmaps of the characters, then dump them to the controller, using I2C commands. (I don't use I2C myself, so can't help with that point)

    It's a big help if you have a BS2p/BS2pe/BS2px model as these have I2C commands built-in, and doesn't have to 'bit-bang'.
    They also have multiple PROGRAM and DATA banks of 2KB each, which means they have enough room for a decent character-map or two.

    Doing any graphics, though is a bit more difficult as there are no commands in the chip for it.
    horisontal and vertical lines, filling and anything mapped into 8x8 pixels should be easy enough, but diagonals and circles will be a lot of work.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Don't visit my new website...
  • jokerswildjokerswild Posts: 31
    edited 2006-03-25 12:58
    Thanks for the info.

    I'm going to use the display to show two different sized text. I worked out i need a minimum of 62 unique characters which i can handle programming but·i'm not sure if the standard BS2 will be able to handle 62 8x5 characters. Also i dont know how to use I2C, yet??

    Basically i'm making a small display for my motorbike to·show·selected gear,·odometer, hour meter etc.

    Post Edited (jokerswild) : 3/25/2006 1:08:46 PM GMT
  • Bruce BatesBruce Bates Posts: 3,045
    edited 2006-03-25 13:29
    jokerswild -

    If I were approaching a project like this, I'd probably opt for an LCD display like this SEETRON G12032 text and graphics display which Parallax offers:
    http://www.parallax.com/detail.asp?product_id=27936

    That would permit multiple fonts on multiple lines, as well as custom graphics, with no worries about whether you have sufficient space in or on the PBASIC Stamp, since the special characters and graphics are kept onboard the LCD in non-volatile memory. A small, simple PBASIC program could be used to create these necessary special characters and graphics, and pre-load them onto the LCD, for later use by the operational program.

    Here is more information on that LCD from the manufacturer's web site, including some applications notes and examples:
    http://www.seetron.com/sgx120_1.htm

    and

    http://www.seetron.com/lcd_andex.htm

    Regards,

    Bruce Bates

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    <!--StartFragment -->

    Post Edited (Bruce Bates) : 3/25/2006 1:56:41 PM GMT
  • jokerswildjokerswild Posts: 31
    edited 2006-03-29 05:29
    Can anyone give me a link for docs or a few hints·on how to use i2c·protocol with standard bs2-ic? I want to see if it works before buying a·bs2p.
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2006-03-29 06:12
    Yes, it works.· I've written about it in Nuts & Volts magazine, and in StampWorks (articles and book can be downloaded from our web site).· I've attached a sample program to show you what it takes.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • jokerswildjokerswild Posts: 31
    edited 2006-03-29 06:42
    Thanks Jon!

    I had some time at lunch today and found a couple of other posts where you have given help on this subject too.

    Thanks again.
Sign In or Register to comment.