Action
Initializes the LCD display.
Syntax
INITLCD
Remarks
The LCD display is initialized automatic at start up when LCD statements are used by your code.
This is done by a call to _LCD_INIT.
If you include the INITLCD statement in your code, the automatic call is disabled and the _LCD_INIT is called at the place in your code where you put the INITLCD statement. (initlcd is translated into a call to _init_lcd).
Why is this useful?
| • | In an environments with static electricity, the display can give strange output. |
You can initialize the display then once in a while. When the display is initialized, the display content is cleared also.
| • | The LCD routines depend on the fact that the WR pin of the LCD is connected to ground. But when you connect it to a port pin, you must first set the logic level to 0 and after that you can initialize the display by using INITLCD |
| • | Xmega chips need a stable oscillator. This is done with some CONFIG statements. The INITLCD should be placed after these commands. |
| • | So in short you have more control when the LCD is initialized. |
The CONFIG LCDPIN has an option to use the WR pin, and use the busy flag of the display. If you have enough pins, this is the best mode.
ASM
The generated ASM code :
Rcall _Init_LCD
See also
Example
NONE