13.12.2012 Views

emWin - SEGGER Microcontroller

emWin - SEGGER Microcontroller

emWin - SEGGER Microcontroller

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Display data RAM organization<br />

COM 0<br />

COM 1<br />

.<br />

.<br />

.<br />

COM n<br />

1 bit / pixel<br />

D<br />

B<br />

7<br />

P0<br />

2 bit / pixel P0<br />

The picture above shows the relation between the display memory and the SEG and<br />

COM lines of the display.<br />

RAM requirements<br />

This display driver may be used with or without a display data cache, containing a<br />

complete copy of the LCD data RAM. If a cache is not used, there are no additional<br />

RAM requirements.<br />

It is recommended to use this driver with a data cache for faster LCD-access. The<br />

amount of memory used by the cache may be calculated as follows:<br />

Size of RAM (in bytes) = BitsPerPixel * (LCD_XSIZE + 7) / 8 * LCD_YSIZE<br />

Additional run-time configuration<br />

The table below shows the available run-time configuration routines of this driver:<br />

Routine Description<br />

GUIDRV_SLin_Config Passes a pointer to a CONFIG_SLIN structure to the driver.<br />

GUIDRV_SLin_SetBus8<br />

Tells the driver to use the 8 bit indirect interface and passes pointer<br />

to a GUI_PORT_API structure to the driver.<br />

GUIDRV_SLin_SetS1D13700 Tells the driver to use an Epson S1D13700 controller.<br />

GUIDRV_SLin_SetSSD1848 Tells the driver to use a Solomon SSD1848 controller.<br />

GUIDRV_SLin_SetT6963 Tells the driver to use a Toshiba T6963 controller.<br />

GUIDRV_SLin_SetUC1617 Tells the driver to use an Ultrachip UC1617 controller.<br />

GUIDRV_SLin_Config()<br />

Description<br />

Passes a pointer to a CONFIG_SLIN structure to the driver.<br />

Prototype<br />

D<br />

B<br />

6<br />

P1<br />

D<br />

B<br />

5<br />

P2<br />

P1<br />

D<br />

B<br />

4<br />

P3<br />

D<br />

B<br />

3<br />

P4<br />

P2<br />

D<br />

B<br />

2<br />

P5<br />

D<br />

B<br />

1<br />

P6<br />

P3<br />

D<br />

B<br />

0<br />

P7<br />

Byte 0 Byte 1 . . .<br />

Byte n<br />

void GUIDRV_SLin_Config(GUI_DEVICE * pDevice, CONFIG_SLIN * pConfig);<br />

Parameter Description<br />

pDevice Pointer to the driver device.<br />

pConfig Pointer to a CONFIG_SLIN structure described below.<br />

UM03001 User & Reference Guide for <strong>emWin</strong> V5.18 © 1997 - 2012 <strong>SEGGER</strong> <strong>Microcontroller</strong> GmbH & Co. KG<br />

Pn<br />

Pn<br />

959

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!