Download uC/GUI user manual

Transcript
331
Display data RAM organization
Byte 0
COM 0
D
B
7
Byte 1
S
E
G
0
S S
E E
G G
1 2
S S S S S
E E E E E
G G G G G
3 4 5 6 7
D
B
6
D
B
5
D
B
3
D
B
4
D
B
2
D
B
1
...
Byte n
S
E
G
n
D
B
0
COM 1
.
.
.
COM n
The picture above shows the relation between the display memory and the SEG and
COM lines of the LCD.
Additional RAM-requirement
This LCD driver may be used with or without a display data cache, containing a complete copy of the contents of the LCD data RAM. If a cache is not used, there are no
additional RAM requirements.
It is recommended to use this driver with a data cache for faster LCD-access. The
amount of memory used by the cache may be calculated as follows:
Size of RAM (in bytes) = (LCD_XSIZE + 7) / 8 * LCD_YSIZE
Additional driver functions
None.
Hardware configuration
This driver accesses the hardware with a simple bus interface as described in Chapter
20: "Low-Level Configuration". The following table lists the macros which must be
defined for hardware access:
Macro
LCD_INIT_CONTROLLER
LCD_READ_A0
LCD_READ_A1
LCD_WRITE_A0
LCD_WRITE_A1
Explanation
Initialization sequence for the LCD controller.
Read a byte from LCD controller with A-line low.
Read a byte from LCD controller with A-line high.
Write a byte to LCD controller with A-line low.
Write a byte to LCD controller with A-line high.
Additional configuration switches
None.
User's & reference manual for µC/GUI
© 2002 Micrium Technologies Corporation