im using pic16f877A and 2x16 lcd. i programmed the pic to scroll the text across lcd. it is scrolling perfectly but the problem is that i want that when the text in row 1 of the lcd scrolls, another text shud scroll on the same row . can u plz help.
Code:
int i;
void main()
{
LCD_Config(&PORTD,1,0,2,7,6,5,4); // LCD pins that are connected to PIC at PORTD
LCD_Cmd(LCD_CLEAR);
while(1)
{
for(i =0; i<16; i++)
{
Lcd_Cmd(Lcd_CURSOR_OFF);
Lcd_Cmd(Lcd_Clear);
LCD_Out(1,i,"DINNAR BOX");
delay_ms(700);
LCD_Out(1,i,"FOR HAJJ!");
delay_ms(700);
}
the problem is that i want to scroll the text like news updates scroll in news channels.
in my program, the first text "dinnar box" scrolls across the lcd but another text "for hajj" shuld follow the first text but it doesnt.
Hi,
I think your problem is the first text "dinnar box" and another text "for hajj" are starting in same position.
If you want to let second follow the first, you should move the second text position in lcd, like this:
LCD_Out(1,i-9,"FOR HAJJ!");
i have problem with my code again
i made a program in which, when switch at B0 is pressed it will display count and when switch B0 is off it will display welcome text. the problem is that for my coin counter hardware to run correctly i have to reduce the delay to 20ms in the if statement(the welcome text display ).as i do so the welcome display runs very fast and cant be seen. is there any way to reduce the delay so that it can count coins and display the welcome text...
plz help ...its my project
Hi, this is not an answer but a question as we seam to be doing same thing, I have a problem with PIC16f873 that when I send two Binary string to Port A or Port b as in B'11111111' and load with MOVWF the last 4 bit of Port B oscillate, have you had anything like this??
Hi, muza1988:
I am not very understand your second problem.
But if you mean runing to fast and can't delay in main. You can just let some ting be done in interrupt.
Just connect to int port in your singlechip.
If you have more question, you can email to me: ruixuedz@gmail.com.
I think I can help you.
Hi, as asked for here my code, you will see I have moved onto using the PORTC, but again the output port are oscillating, funny though it do work and print AAAAAA on the LCD, but if you look at the PORT C pin they are oscillating using a DVM???
TIMER1 EQU H'20' ;Timer 1, Used for general delay.
TIMER2 EQU H'21' ;Timer 2, used for delay !
EFFECT EQU H'22'
LCD_E_BIT EQU D'4' ;E_BIT ON LCD
LCD_RS_BIT EQU D'5' ;RS BIT LCD