emWin driver GUIDRV_7529
Supported hardware
Controllers
This driver works with the Sitronix ST7529 display controller.
Bits per pixel
Supported color depths are 5 bpp (default), 4 bpp and 1bpp.
Interfaces
The driver supports the indirect interface (8 and 16 bit) of the display controller. Parallel, 3-pin SPI or 4-pin SPI access
can be used.
Display data RAM organization

The picture above shows the relation between the display memory and the SEG and COM lines of the LCD.
Additional RAM requirements of the driver
This display driver can be used with or without a display data cache, containing a complete copy of the LCD data RAM.
If a cache is not used, there are no additional RAM requirements. It is optional (but recommended) to use this driver
with a data cache for faster LCDaccess. The amount of memory used by the cache may be calculated as follows:
5bpp mode: Size of RAM (in bytes) = (LCD_XSIZE + 2) / 3 * 3 * LCD_YSIZE
4bpp mode: Size of RAM (in bytes) = ((LCD_XSIZE + 2) / 3 * 3 + 1) / 2 * LCD_YSIZE
1bpp mode: Size of RAM (in bytes) =((LCD_XSIZE + 2) / 3 * 3 + 7) / 8 * LCD_YSIZE
Additional driver functions
None.
Hardware configuration
This driver accesses the hardware with the indirect interface. The following table lists the macros which must be
defined for hardware access:
| Macro | Explanation |
| LCD_WRITE_A0 | Write a byte to LCD controller with A-line low. |
| LCD_WRITE_A1 | Write a byte to LCD controller with A-line high. |
| LCD_WRITEM_A1 | Write multiple bytes to display controller with A-line high. |
| LCD_READM_A1 | Read multiple bytes from display controller with A-line high. Required only if no display data cache is configured. |
| LCD_FIRSTPIXEL0 | If the display size in X is smaller than the number of segment outputs of the display controller, this macro can be used for defining the first visible pixel of the display. It should be used if the first segment lines of the display controller are not connected to the display. |
Additional configuration switches
None.
Special requirements for certain LCD controllers
None.
GUIDRV_7529
Head office Germany
US office 
