Datasheet

Library Routines
- Lcd_Init
- Lcd_Out
- Lcd_Out_Cp
- Lcd_Chr
- Lcd_Chr_Cp
- Lcd_Cmd
Lcd_Init
241
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroBasic PRO for AVR
CHAPTER 6
Prototype
sub procedure Lcd_Init()
Returns Nothing.
Description Initializes Lcd module.
Requires
Global variables:
- LCD_D7: Data bit 7
- LCD_D6: Data bit 6
- LCD_D5: Data bit 5
- LCD_D4: Data bit 4
- LCD_RS: Register Select (data/instruction) signal pin
- LCD_EN: Enable signal pin
- LCD_D7_Direction: Direction of the Data 7 pin
- LCD_D6_Direction: Direction of the Data 6 pin
- LCD_D5_Direction: Direction of the Data 5 pin
- LCD_D4_Direction: Direction of the Data 4 pin
- LCD_RS_Direction: Direction of the Register Select pin
- LCD_EN_Direction: Direction of the Enable signal pin
must be defined before using this function.
Example
' Lcd module connections
dim
LCD_RS as sbit at PORTD.B2
LCD_EN as sbit at PORTD.B3
LCD_D7 as sbit at PORTD.B4
LCD_D6 as sbit at PORTD.B5
LCD_D5 as sbit at PORTD.B6
LCD_D4 as sbit at PORTD.B7
dim
LCD_RS as sbit at DDRD.B2
LCD_EN as sbit at DDRD.B3
LCD_D7 as sbit at DDRD.B4
LCD_D6 as sbit at DDRD.B5
LCD_D5 as sbit at DDRD.B6
LCD_D4 as sbit at DDRD.B7
' End Lcd module connections
...
Lcd_Init()