Memory in Framebuffer with 18-bit per Pixel

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Memory in Framebuffer with 18-bit per Pixel

551 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Martin84 on Wed Jul 31 00:40:38 MST 2013
Hi,

I'm using an 18-bit TFT and I wanna calculate the memory that one frame will need. The resolution is 640x480, so I calculate as follows: 640*480*18bit = 5529600 bits -> 5529600 / 8 = 691200 Bytes = 691kB.

Is the calculation with 18-bit correct or do i have to use 32-bit?

Regards,

Martin
Labels (1)
0 Kudos
2 Replies

491 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Martin84 on Wed Jul 31 02:58:48 MST 2013
Ok thank you :-)

Regards,

Martin
0 Kudos

491 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Wouter on Wed Jul 31 01:01:37 MST 2013
Hi Martin,

You would need to use 32bpp framebuffer for 18-bit RGB.
I'd recommend to switch to 5:6:5 (16-bit) mode. This will save memory, but more importantly reduce the bus bandwidth used by the LCD controller.
You can wire your display for 18-bit mode, and always decide in SW to use 16-bit or 18-bit mode.

Regards,
Wouter
0 Kudos