Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Vertical Scroll LCD 2x16

Status
Not open for further replies.

eril

Newbie level 6
Joined
Aug 22, 2015
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
95
Hi All,
Actually when we use to display some character on LCD is HORIZONTAL, ....can anyone help me how to do it to VERTICAL SCROLL TEXT.

Btw I am use compiler MikroC.

Thanks.
 

It is not supported by HD44780, but you can store 2 lines in different arrays. Second one replacing first one and new data comming to second one. Then you update the screen.
 

It is not supported by HD44780, but you can store 2 lines in different arrays. Second one replacing first one and new data comming to second one. Then you update the screen.

Easyrider83.....,
You mean just replacing first to second one, it mean something like below.
// LCD module connections
sbit LCD_RS at RB2_bit;
sbit LCD_EN at RB3_bit;
sbit LCD_D4 at RB4_bit;
sbit LCD_D5 at RB5_bit;
sbit LCD_D6 at RB6_bit;
sbit LCD_D7 at RB7_bit;
sbit LCD_RS_Direction at TRISB2_bit;
sbit LCD_EN_Direction at TRISB3_bit;
sbit LCD_D4_Direction at TRISB4_bit;
sbit LCD_D5_Direction at TRISB5_bit;
sbit LCD_D6_Direction at TRISB6_bit;
sbit LCD_D7_Direction at TRISB7_bit;

const char msg1[] = "TEST 0";
const char msg2[] = "TEST 1";
const char msg3[] = "TEST 2";
const char msg4[] = "TEST 3";
const char msg5[] = "TEST 4";

const char msg9[] = " ";

void main()
{
TRISA=0xFF;
CMCON=0x07;
TRISB=0x00;


Lcd_Init();
Lcd_Cmd(_LCD_CLEAR);
Lcd_Cmd(_LCD_CURSOR_OFF);
Lcd_Out(1,1,"EDA BOARD");
Delay_ms(500);

Lcd_Out(1,1, CopyConst2Ram(msg, msg9)); //Clean
Delay_ms(150);

Lcd_Out(2,1,CopyConst2Ram(msg, msg1)); //Test 0
Delay_ms(3850);
Lcd_Out(1,1,CopyConst2Ram(msg, msg1)); //Test 1
Delay_ms(1000);
Lcd_Out(1,1, CopyConst2Ram(msg, msg9));

Lcd_Out(2,1,CopyConst2Ram(msg, msg2)); //Test 1 Up to Line 1
Delay_ms(3850);
Lcd_Out(1,1, CopyConst2Ram(msg, msg2)); //Test 2
Delay_ms(1000);
Lcd_Out(1,1, CopyConst2Ram(msg, msg9));

Lcd_Out(2,1,CopyConst2Ram(msg, msg3)); //Test 2 Up to Line 1
Delay_ms(3850);
Lcd_Out(1,1,CopyConst2Ram(msg, msg3)); //Test 3
Delay_ms(1000);
Lcd_Out(1,1, CopyConst2Ram(msg, msg9)); //Clean Test 2

Lcd_Out(2,1,CopyConst2Ram(msg, msg4));
Delay_ms(3850);
Lcd_Out(1,1, CopyConst2Ram(msg, msg4));
Delay_ms(1000);
Lcd_Out(1,1, CopyConst2Ram(msg, msg9));

Lcd_Out(2,1,CopyConst2Ram(msg, msg5));
Delay_ms(3850);
Lcd_Out(1,1, CopyConst2Ram(msg, msg5));
Delay_ms(1000);
Lcd_Out(1,1, CopyConst2Ram(msg, msg9));

Delay_ms(1000);
Lcd_Out(2,1, CopyConst2Ram(msg, msg9));
Delay_ms(1000);

Lcd_Out(2,1, "END PROGRAM");


while(1);
}
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top