View previous topic :: View next topic |
Author |
Message |
OMER Guest
|
ASCII input by 3x4 kbd then displayed to LCD forming 8 chars |
Posted: Mon Feb 17, 2003 11:09 am |
|
|
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
|
Re: ASCII input by 3x4 kbd then displayed to LCD... |
Posted: Mon Feb 17, 2003 1:51 pm |
|
|
:=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... |
Posted: Tue Feb 18, 2003 11:29 am |
|
|
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
|
|
Posted: Wed Oct 27, 2004 1:40 am |
|
|
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
|
|
Posted: Wed Oct 27, 2004 2:32 am |
|
|
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 |
|
|
|