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 CCS Technical Support

ASCII input by 3x4 kbd then displayed to LCD forming 8 chars

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







ASCII input by 3x4 kbd then displayed to LCD forming 8 chars
PostPosted: Mon Feb 17, 2003 11:09 am     Reply with quote

am looking For a C code to input ACSII with 3x4 keypad then sent to 16F877 then sent to 2 x 16 LCD.
the ACSII from A-Z (same as mobile txt writing method) where the cursor moves to the next position on the LCD after a bottn been idle,
kbd_getc() and LCD_putc() functions are used. Omer
___________________________
This message was ported from CCS's old forum
Original Post ID: 11794
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

Re: ASCII input by 3x4 kbd then displayed to LCD...
PostPosted: Mon Feb 17, 2003 1:51 pm     Reply with quote

:=am looking For a C code to input ACSII with 3x4 keypad then sent to 16F877 then sent to 2 x 16 LCD.
:=the ACSII from A-Z (same as mobile txt writing method) where the cursor moves to the next position on the LCD after a bottn been idle,
:= kbd_getc() and LCD_putc() functions are used. Omer
--------------------------------------------------------

Did you look at the CCS example files ?
If you have version 3.xxx of the compiler, look for
these files:

c:\Program Files\Picc\Examples\EX_LCDKB.C
c:\Program Files\Picc\Drivers\LCD.C
c:\Program Files\Picc\Drivers\KBD.C

If you have vs. 2.xxx of the compiler, all these
files will be in this folder:

c:\Picc\Examples
___________________________
This message was ported from CCS's old forum
Original Post ID: 11804
OMER
Guest







Re: ASCII input by 3x4 kbd then displayed to LCD...
PostPosted: Tue Feb 18, 2003 11:29 am     Reply with quote

am looking For a C code to input ACSII with 3x4 keypad then sent to 16F877 then sent to 2 x 16 LCD.
:=:=the ACSII from A-Z (same as mobile txt writing method) where the cursor moves to the next position on the LCD after a bottn been idle,
:=:= kbd_getc() and LCD_putc() functions are used. Omer
:=--------------------------------------------------------
:=
:=Did you look at the CCS example files ?
:=If you have version 3.xxx of the compiler, look for
:=these files:
:=
:=c:\Program Files\Picc\Examples\EX_LCDKB.C
:=c:\Program Files\Picc\Drivers\LCD.C
:=c:\Program Files\Picc\Drivers\KBD.C
:=
:=If you have vs. 2.xxx of the compiler, all these
:=files will be in this folder:
:=
:=c:\Picc\Examples
///////
Omer Again

the Kbd sends a char of 0-9 & A and B (3x4 only) to the LCD.
but what am looking for is a code that change the apperance of the char on the LCD acording to the number of clicks, and the cursor moves to the next char position on the LCD if no botton been clicked within a certain period. (like typing a txt message using a mobile phone ).

example buttons corresponds to letters
botton 2 gives 2, A, B, and C.
botton 3 gives 3, D, E, and F.
botton 9 gives 9, W, x, y, and Z.
and Etc

the code reads the incoming char from the kbd then output it to the LCD acording to the number of clicks.
please if you think of any way of doing it please e-mail me,
Omer


___________________________
This message was ported from CCS's old forum
Original Post ID: 11835
mrc



Joined: 27 Oct 2004
Posts: 1

View user's profile Send private message

PostPosted: Wed Oct 27, 2004 1:40 am     Reply with quote

Hi. I'm working in a project just like this (3x4 keypad working as a "mobile" keypad, 2x16 LCD and PIC 16F877A).

Did you managed to find any solution? If yes, could you please post the C code?

Thank you for your help.
Will Reeve



Joined: 30 Oct 2003
Posts: 209
Location: Norfolk, England

View user's profile Send private message Send e-mail Visit poster's website MSN Messenger

PostPosted: Wed Oct 27, 2004 2:32 am     Reply with quote

Set a timer (or more likly n x overflows); count the number of button clicks until timer over, updating the charcher on each click; with a case statment on the number of button clicks. When timer finished then fix character and move onto next. Thats how I would do it.

Will
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