Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - mouser

Pages: [1]
OLEDs / SPI padding for NHD-0420DZW display
« on: September 15, 2014, 09:39:49 AM »
I'm trying to determine if the NHD-0420DZW is an appropriate display for a design I'm working on.  The MCU I'll be controlling the display with has an 8-bit hardware SPI engine, so writing out the 10-bit commands the display expects will either require me to prepend the RW and RS bits with six zeros and then write the command byte normally, or to write an initial byte that contains the RW and RS bits followed by the first six bits of the command, then a second byte with the last two bits of the command followed by six zeros.    The data sheet makes no comment on which of these methods will work.   Either way, when using a standard hardware SPI engine, the CS line is going to be low while padding bits are clocked into the display, either before or after the command word.  So my questions are:

1)  Does your display support padding like this?
2)  If so, should I pad bits before or after the command word?
3)  Will this have any affect on multi-word writes (e.g. when writing multiple characters into CGRAM or DDRAM, will the padding bits result in a strange character being appended to the display)?

Pages: [1]