CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

help me in LCD

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
mohee



Joined: 16 Mar 2004
Posts: 2

View user's profile Send private message Send e-mail

help me in LCD
PostPosted: Wed Mar 17, 2004 8:29 am     Reply with quote

hi Laughing
im new in programming with PCM. so im working in my project and i use LCD and PIC16F877, my problem is to let the cursor move at first char of each word when "next" bottom pressed , and if pressed enter call some function and another bottom "back" make the cursor to back at first char of each word
so please help me Crying or Very sad Crying or Very sad Crying or Very sad
chava



Joined: 07 Sep 2003
Posts: 56

View user's profile Send private message Send e-mail

let me anderstand
PostPosted: Wed Mar 17, 2004 4:10 pm     Reply with quote

Let me anderstand...
your problem is the LCD or the algorithm to do what you want to do?
mystery
Guest







Lcd
PostPosted: Wed Mar 17, 2004 5:07 pm     Reply with quote

If you want to do this action you will have to find or program your
own lcd driver.

If you search on your C drive for "lcd.c", this is a basic lcd driver provided
by ccs.

This ccs driver does not support cursor to flash!!!!!
dyeatman



Joined: 06 Sep 2003
Posts: 1913
Location: Norman, OK

View user's profile Send private message

LCD code
PostPosted: Wed Mar 17, 2004 5:20 pm     Reply with quote

Depending on what display is being used, the character flash has nothing to do with the driver as it is usually initiated by a simple ascii code/character sequence. However, the display may not even support flash at all. They have to look at the display data sheet to find out what is required, or if it is possible....
Guest








Re: let me anderstand
PostPosted: Thu Mar 18, 2004 3:07 am     Reply with quote

my problem is in the algorithm to do what i want to do.
mohee



Joined: 16 Mar 2004
Posts: 2

View user's profile Send private message Send e-mail

Re: let me anderstand
PostPosted: Thu Mar 18, 2004 3:49 am     Reply with quote

my problem in the algorithm as below:
#if defined(__PCM__)
#include <16F877.h>
#fuses XT,NOWDT,NOPROTECT,NOLVP
#use delay(clock=4000000)


#include <lcd.c>

void main() {
char k;

lcd_init();
lcd_putc("Hello Mohee\n");
lcd_putc("Thanks God ");
while(true)
{
if( !input(PIN_A1) )
{
lcd_gotoxy(7,1);
lcd_send_byte(0,0x0F);
}
delay_ms( 2 );
if( !input(PIN_A4) )
output_B(0xff);
delay_ms( 2 );
if( !input(PIN_A1) )
{
lcd_gotoxy(1,2);
lcd_send_byte(0,0x0F);
}
if( !input(PIN_A2) )
lcd_gotoxy(1,2);
output_B(0x0f);
}
}

when i test this code on PIC doesnt work as i expect, i see that the cursor flashing on two char s.
so what is you say in this ...... chava Wink Wink
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group