Author |
Message |
Topic: Small Code Problem |
Chris007
Replies: 5
Views: 4992
|
Forum: General CCS C Discussion Posted: Tue Mar 30, 2010 6:02 pm Subject: Small Code Problem |
Thanks for the examle, my code now looks like this:
#include<16f877a.h>
#fuses xt,noprotect,nowdt
#use delay(clock=4000000)
#include<lcd420.c>
#include<kbd44.c>
... |
Topic: Small Code Problem |
Chris007
Replies: 5
Views: 4992
|
Forum: General CCS C Discussion Posted: Tue Mar 30, 2010 5:32 pm Subject: Small Code Problem |
Hi, thanks so much for your help. I'm kinda getting a lot of errors e.g. retval not declared when there is already a declaration... char retval;
Could you tell me where I could place the code u hav ... |
Topic: Small Code Problem |
Chris007
Replies: 5
Views: 4992
|
Forum: General CCS C Discussion Posted: Tue Mar 30, 2010 5:08 pm Subject: Small Code Problem |
Hi,
I'm having a bit of trouble with this code, basically I want the user to be able to select an option from that given on the screen. The lcd displays the options but its not accepting the input, ... |
Topic: LCD Displays Random Output |
Chris007
Replies: 13
Views: 11979
|
Forum: General CCS C Discussion Posted: Tue Mar 30, 2010 1:32 am Subject: LCD Displays Random Output |
Yea I think the LCD was 'spewing' characters, but the pull down resistors managed to overcome this problem. I've checked the LCD/PIC connections and they are correct
I've put a pull up r ... |
Topic: LCD Displays Random Output |
Chris007
Replies: 13
Views: 11979
|
Forum: General CCS C Discussion Posted: Mon Mar 29, 2010 3:23 pm Subject: LCD Displays Random Output |
I've managed to get everything working now. The pull-down resistors worked!
On start-up, the screen shows "Ready", If I press 0-9, or A-D, the letters show up on the screen accordingly wh ... |
Topic: LCD Displays Random Output |
Chris007
Replies: 13
Views: 11979
|
Forum: General CCS C Discussion Posted: Fri Mar 26, 2010 9:24 am Subject: LCD Displays Random Output |
I've changed to pull down resistor, hasn't solved the problem :(
I removed the keypad from the circuit and powered it. Now random characters are still appearing on the screen even without any input ... |
Topic: LCD Displays Random Output |
Chris007
Replies: 13
Views: 11979
|
Forum: General CCS C Discussion Posted: Fri Mar 26, 2010 3:48 am Subject: LCD Displays Random Output |
Hi Rohit, yea I've tried with and without the semicolon, my original code doesn't have the semicolon anyways. |
Topic: LCD Displays Random Output |
Chris007
Replies: 13
Views: 11979
|
Forum: General CCS C Discussion Posted: Thu Mar 25, 2010 3:50 pm Subject: LCD Displays Random Output |
Ok I've got the resistors in the correct place with 5v and they are all 10k. When I power up, same thing just says "Ready". No action from the keypad, but I know the keypad is 100% working.
... |
Topic: LCD Displays Random Output |
Chris007
Replies: 13
Views: 11979
|
Forum: General CCS C Discussion Posted: Thu Mar 25, 2010 2:06 pm Subject: LCD Displays Random Output |
Right, I see. What I'm missing is the 5v connection.
Also, just to make sure... Physically the resistors are the same right?
Sorry for asking noobish questions |
Topic: LCD Displays Random Output |
Chris007
Replies: 13
Views: 11979
|
Forum: General CCS C Discussion Posted: Thu Mar 25, 2010 1:51 pm Subject: LCD Displays Random Output |
void main()
{
char k=0;
lcd_init();
kbd_init();
lcd_putc("\fReady...\n");
while(1);
.
.
.
}
First, prove that the problem is in the keypad code or hardwa ... |
Topic: LCD Displays Random Output |
Chris007
Replies: 13
Views: 11979
|
Forum: General CCS C Discussion Posted: Thu Mar 25, 2010 12:50 pm Subject: LCD Displays Random Output |
Hi guys, gr8 forum u got here. I've been following and have got lots of help from here. Now I got a small problem and thought maybe you could help me
Parts:
PIC16F877A
20x4 Alphanumeric LCD
4 ... |
|