EmbeddedRelated.com
Forums

Interfacing a QVGA Display with MSP430

Started by John September 30, 2012
The longest part of a screen repaint is the clear. And since White or Black are all the same data value in 18bit or 16bit color you don't have to change the data value on the output port when doing a clear.

So to clear the screen to all white before writing the new data, first output a 0xFF on the data port and use a separate routine to just toggle the write pin twice (16bit color) or three times for each 18bit color pixel. Just continue toggling the write line for each additional pixel. That will decrease the clear time by at least a half.

Beginning Microcontrollers with the MSP430

Very good point nfjensen,

John.
________________________________
From: nfjensen123
To: m...
Sent: Thursday, October 4, 2012 8:25 AM
Subject: [msp430] Re: Interfacing a QVGA Display with MSP430


 

The longest part of a screen repaint is the clear. And since White or Black are all the same data value in 18bit or 16bit color you don't have to change the data value on the output port when doing a clear.

So to clear the screen to all white before writing the new data, first output a 0xFF on the data port and use a separate routine to just toggle the write pin twice (16bit color) or three times for each 18bit color pixel. Just continue toggling the write line for each additional pixel. That will decrease the clear time by at least a half.