Master SPI interface to LCD/OLED??


Closed Thread
Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 2009
    Location
    Colorado
    Posts
    378

    Question Master SPI interface to LCD/OLED??

    I am looking for PICBasic Pro approaches to use a Master SPI interface to an LCD or the new technology OLED displays that are operating as a SPI SLave. Can any one give me any URL links or ideas? I have searched everywhere and even thought there are many SPI interfaced LCDs and OLEDs out there, the only programming tips seem to all be in assembly. I want to program the interface in PICBASIC Pro using the SSP module in a PIC 16F690.

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    There's this from Melanie ...

    http://www.picbasic.co.uk/forum/show...42&postcount=6
    <br>
    DT

  3. #3
    Join Date
    Mar 2009
    Location
    Colorado
    Posts
    378


    Did you find this post helpful? Yes | No

    Default Any associated PICBasic code?

    Quote Originally Posted by Darrel Taylor View Post
    Thanks, Darrel. This is really a way to interface to the LCD with only two wires using the SHIFT statement. I have the pins to do a standard SPI or I2C interface without this extra chip required in Melanie's approach. What I am really looking for are SPI or I2C code samples for interfacing to an LCD or better yet to one of the new technology OLEDs.
    Any ideas or places I can go?

  4. #4
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Unless you have an LCD that has a built-in SPI or I2C interface, then you need that chip, an I/O expansion port or something to interface to a parallel LCD.

    If you do have a display with built-in synchronous interface(s), then we'd need to know which one it is. Because I don't think there's any kind of standard for that.

    At any rate, with PBP 2.60's new ARRAYWRITE command.
    Sending data to SPI, whether it's SHIFTOUT or the MSSP, just got a whole lot easier.
    And I doubt any example you find on the net will include the new commands.

    Best to write it from scratch.
    <br>
    DT

  5. #5
    Join Date
    Mar 2009
    Location
    Colorado
    Posts
    378


    Did you find this post helpful? Yes | No

    Default Thanks for reply!

    Quote Originally Posted by Darrel Taylor View Post
    Unless you have an LCD that has a built-in SPI or I2C interface, then you need that chip, an I/O expansion port or something to interface to a parallel LCD.

    At any rate, with PBP 2.60's new ARRAYWRITE command.
    Sending data to SPI, whether it's SHIFTOUT or the MSSP, just got a whole lot easier.
    And I doubt any example you find on the net will include the new commands.

    Best to write it from scratch.
    <br>
    Thanks for reply, Darrel. I am using a 16F690 which has dedicated pins that can be configured to support the SSP module that includes the interface to either SPI or I2C. So I don't need the chip or I/O expansion.
    The OLED display I am looking at ( see http://taiwan01.rs-online.com/mobile...duct&R=0554223 )has either SPI or I2C interfaces built-in. I am choosing SPI because I only have a single MASTER to single SLAVE interface and the SPI provides a lot faster interface than I2C.
    I presume that the PBP 2.60 (which I just upgraded to) command ARRAYWRITE will permit me to use this SPI interface on an OLED as well as to an LCD as you implied. If you do become aware of any examples that use the new ARRAYWRITE command, even if only with LCD, I would really appreciate hearing about it. In fact, can you please explain to me why this ARRAYWRITE command makes it so much easier to send data as opposed to using SHIFTOUT or MSSP??

  6. #6
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by jellis00 View Post
    The OLED display I am looking at ( see http://taiwan01.rs-online.com/mobile...duct&R=0554223 )has either SPI or I2C interfaces built-in. ...
    In fact, can you please explain to me why this ARRAYWRITE command makes it so much easier to send data as opposed to using SHIFTOUT or MSSP??
    Well actually, now that I see you are talking about a 64x48 bitmapped display, nothing I said has any relevance.

    Whoops
    <br>
    DT

  7. #7
    Join Date
    Mar 2009
    Location
    Colorado
    Posts
    378


    Did you find this post helpful? Yes | No

    Default Any other suggestions.

    [QUOTE=Darrel Taylor;78598]Well actually, now that I see you are talking about a 64x48 bitmapped display, nothing I said has any relevance.

    Whoops
    <br>[/QUOTE
    Thanks Darrel. Even though it is a bit-mapped display as you point out, can you give me any referrals or suggestions as to how I should program its SPI interface to generate displayed messages?
    And I would still like to undertand the advantages of using the ne ARRRAYWRITE command to interface to LCD displays since I am also using them in some of my applications. Woulld therefore appreciate any referrals or suggestions on that topic as well.

  8. #8
    Join Date
    Dec 2007
    Location
    Finland
    Posts
    191


    Did you find this post helpful? Yes | No

    Post

    Here is quite much stuff for Nokia LCD (SPI - shiftout). I hope it will help you.
    Do you have datasheet for that OLED display? You'll need that before you can start coding.

    BR,
    -Gusse-

Similar Threads

  1. need help for APR6008 SPI interface
    By vu2iia in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 30th June 2009, 03:19
  2. Weird SPI interface: VIH to VIHH for CS?
    By achilles03 in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 30th January 2009, 17:25
  3. Using SPI with External Interrupts
    By shaiqbashir in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 29th June 2008, 04:08
  4. 16-bit SPI problem
    By shaiqbashir in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 19th June 2008, 15:42
  5. How to configure SPI in PICBASIC PRO?
    By moogle in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 15th April 2007, 18:31

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts