View previous topic :: View next topic |
Author |
Message |
s.achilless
Joined: 21 Feb 2009 Posts: 2
|
PIC16877A + LCD Problems |
Posted: Sat Feb 21, 2009 9:18 am |
|
|
Hello everbody,
Can anyone help me about this code ? I am new on the pic programming.
I compile the code below and upload it into Pic16f877a but the lcd did not display anything ? where am i wrong ?
I use ex-b kit int www.expkits.com/?s=ex1-b.htm
Code: |
#include <16F877A.h>
#fuses HS, NOWDT, NOPROTECT
#use delay(clock=2000000)
#include <lcd.c>
// in ldc.c, i already uncomment //#define use_portb_lcd TRUE
void main(void) {
lcd_init();
while (TRUE)
{
lcd_gotoxy(1,1);
lcd_putc ("\f Hello \ ");
delay_ms(500);
}
} |
|
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sat Feb 21, 2009 1:00 pm |
|
|
Quote: | #include <16F877A.h>
#fuses HS, NOWDT, NOPROTECT
#use delay(clock=2000000) |
This is only set for 2 MHz. Almost certainly, it should be 20 MHz.
Also, add the NOLVP fuse. |
|
![](templates/subSilver/images/spacer.gif) |
s.achilless
Joined: 21 Feb 2009 Posts: 2
|
|
Posted: Sat Feb 21, 2009 1:15 pm |
|
|
I set clock 20.000.000 and also fuse NOLVP but there is still no changes ? :( |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
![](templates/subSilver/images/spacer.gif) |
|