after testing the new software I wanted to display somethings on a 4 row LCD. Therefor I wrote the following code:
Code: Select all
// LCD module connections
sbit LCD_RS at PORTD.B2;
sbit LCD_EN at PORTD.B3;
sbit LCD_D4 at PORTD.B4;
sbit LCD_D5 at PORTD.B5;
sbit LCD_D6 at PORTD.B6;
sbit LCD_D7 at PORTD.B7;
sbit LCD_RS_Direction at DDRD.B2;
sbit LCD_EN_Direction at DDRD.B3;
sbit LCD_D4_Direction at DDRD.B4;
sbit LCD_D5_Direction at DDRD.B5;
sbit LCD_D6_Direction at DDRD.B6;
sbit LCD_D7_Direction at DDRD.B7;
// End LCD module connections
void main()
{
Lcd_Init(); // Initialize LCD
Lcd_Cmd(LCD_CLEAR); // Clear LCD
Lcd_Cmd(LCD_CURSOR_OFF); // Turn cursor off
Lcd_Cmd(LCD_FIRST_ROW);
Lcd_Out_CP("Here!");
Lcd_Cmd(LCD_SECOND_ROW);
Lcd_Out_CP("Hallo");
Lcd_Cmd(LCD_THIRD_ROW);
Lcd_Out_CP("Ein weiterer Test!!!");
Lcd_Cmd(LCD_FOURTH_ROW);
Lcd_Out_CP("Das ist die letzte Z");
while(1)
{
}
}
Please help.
Christian
Btw: Are there any limitations in this version?