This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Starterware/MSP430F5172: Driving OLED with 10-bit SPI transfer using MSP430F5172

Part Number: MSP430F5172

Tool/software: Starterware

Team,

On behalf of our customer:

------

I’m attempting to drive an OLED display over SPI. The display requires a 10 bit transfer consisting of 2 command bits and8 data bits. I was wondering if you had any insight on how to accomplish that? I attached the datasheet for the display, page 13 shows the serial communication structure.

NHD-0216KZW-AB5.pdf

-----

Our first suggestion was to reach out to the OLED manufacturer to see if they have any reference drivers supporting their displays.


Second, there are lots of online forum-type examples to review.  Could be helpful.

Also wanted to see if our MSP team has experience with this 10-bit mechanism on OLEDs?  Since while our MSPs use an 8-bit framing mechanism, in theory, a 16-bit framing mechanism could still be implemented, but would require more from scratch work and development.  Let me know if anyone has any input?

Thank you,

CY

  • Apologies for the delayed response. Moving this thread to the MSP430 forum for assistance.
  • Hi Chris,

    Serial communication with OLED displays is quite relaxed, as shown in the table on page 14. Bit-banging SPI through a software solution is an option, but typically not recommended if an (e)USCI peripheral can be used. You could also choose to send 3 8-bit frames, where the last four to six bits (depending on instruction or data transmission) are blank values that are ignored by the OLED display. Another option is a hybrid of the two, where the command bits are bit-banged and the 8 data bits are controlled through the communication peripheral, but you will have to ensure that SCL is properly handled during the transition.

    I'm sure the MSP team has some past experience with 10-bit framing mechanisms but no particular instances come to mind. Hopefully some of the online examples will help give you an idea of the best way to accomplish this task.

    Regards,
    Ryan
  • Thanks Ryan,

    Customer got it working over the holidays and we appreciate the input you provided over the forums. I think we're good to go on this one.

    Regards,
    Chris

**Attention** This is a public forum