13.12.2012 Views

emWin - SEGGER Microcontroller

emWin - SEGGER Microcontroller

emWin - SEGGER Microcontroller

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Hardware configuration<br />

This driver accesses the hardware using the indirect interface as described in the<br />

chapter “Configuration” on page 1025. The following table lists the macros which<br />

must be defined for hardware access:<br />

Macro Description<br />

LCD_READ_A0<br />

Read a byte from LCD controller with A-line low. (Used only if working without<br />

cache)<br />

LCD_READ_A1<br />

Read a byte from LCD controller with A-line high. (Used only if working without<br />

cache)<br />

LCD_WRITE_A0 Write a byte to LCD controller with A-line low.<br />

LCD_WRITE_A1 Write a byte to LCD controller with A-line high.<br />

LCD_WRITEM_A1 Write multiple bytes to LCD controller with A-line high.<br />

Display orientation<br />

The supported display controllers supports hardware mirroring of x/y axis. It is recommended<br />

to use these functions instead of the display orientation macros of<br />

<strong>emWin</strong>. If mirroring of the X axis is needed, the command 0xA1 (ADC select reverse)<br />

should be used in the initialization macro. This causes the display controller to<br />

reverse the assignment of column address to segment output. If the display size in X<br />

is smaller than the number of segment outputs of the display controller, the macro<br />

LCD_FIRSTSEG0 can be used to add an offset to the column address to make sure,<br />

the right RAM address of the LCD controller is accessed.<br />

If mirroring of the Y axis is needed the command 0xC8 (SHL select revers) should be<br />

used in the initialization macro and the macro LCD_FIRSTCOM0 should be used to<br />

define the offset needed to access the right RAM address of the display controller.<br />

Additional configuration switches<br />

The following table shows optional configuration switches available for this driver:<br />

Macro Description<br />

This macro can be used to define the first common address to be used in the data<br />

LCD_FIRSTCOM0 RAM of the display controller. The value can be determined experimentally or<br />

taken from the display documentation.<br />

This macro can be used to define the first segment address to be used<br />

LCD_FIRSTSEG0 in the data RAM of the display controller. The value can be determined<br />

experimentally or taken from the display documentation.<br />

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

983

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

Saved successfully!

Ooh no, something went wrong!