LS020 8bit, 16bit and 24-bit HOST modes

Info about Siemens S65 LCD (LS020), LS020 programming info, using examples

LS020 8bit, 16bit and 24-bit HOST modes

Postby Juras » Mon Jul 27, 2009 0:21

The controller of the LS020 has different host modes. To select a host mode you need use the RE8h register. For example, to select 8-bit host mode without BGR function write 0x00 to the RE8h:
Code: Select all
lcd_wrcmd16(0xE800); // Set 8-bit host-mode, color format: RRRGGGBB


Here is a list of possible host-modes I have found:
24-bit formats:
0x10: xxB5B4-B3B2B1B0, R3R2R1R0-G5G4G3G2, xxxx-xxR5R4.
0x50: xxR5R4-R3R2R1R0, B3B2B1B0-G5G4G3G2, xxxx-xxB5B4.
0x20: xxB5B4-B3B2B1B0, xxG5G4-G3G2G1G0, xxR5R4-R3R2R1R0.
0x60: xxR5R4-R3R2R1R0, xxG5G4-G3G2G1G0, xxB5B4-B3B2B1B0.
0x30: R5R4R3R2-R1R0xx, G5G4G3G2-G1G0xx, B5B4B3B2-B1B0xx.
0x70: B5B4B3B2-B1B0xx, G5G4G3G2-G1G0xx, R5R4R3R2-R1R0xx.

16-bit formats:
0x08: G2G1G0B5-B4B3B2B1, R5R4R3R2-R1G5G4G3
0x48: G2G1G0R5-R4R3R2R1, B5B4B3B2-B1G5G4G3
0x0C: R5R4R3R2-R1G5G4G3, G2G1G0B5-B4B3B2B1

8-bit formats:
0x00: RRRGGGBB
0x40: BBGGGRRR

The 24 bit-mode (0x30 or 0x70) may be helpful when writing RGB-data from a BMP-image directly to LCD without color conversions.
Image
Image
User avatar
Juras
Site Admin
 
Posts: 126
Joined: Sun May 18, 2008 23:34
Location: BEL

Return to Using Siemens S65 LCD

Who is online

Users browsing this forum: No registered users and 1 guest


cron