|
|
View previous topic :: View next topic |
Author |
Message |
cambol Guest
|
LCD 16x2 with PIC16F873 |
Posted: Sun Oct 14, 2007 11:08 pm |
|
|
Hello, I just bought lcd 16x2 and i searched example program on internet. As I am a new user, I know nothing about it even conecting pins between lcd and pic16f873.
I am using CCS with MPLAB IDE v7.60, here is exaple program
#inlude<16f873.h>
#fuse HS, NOWDT, NOPROTECT, NOLVP, NOCPD, PUT, BROWNOUT
#use delay (clock = 10000000) // 10MHz
#include<lcd_drv.c>
main() {
set_tris_a(0x00);
set_tris_b(0x00);
set_tris_c(0x00);
initlcd();
clr_lcd;
locate(0,0);
out_st("Welcome");
delay_ms (3000);
clr_lcd;
}
1) when i compile, the program seem did not understand what are " initlcd, clr_lcd, locate(..,..), out_st(.....) ". If anyone know why, please help me what should I do with my softwares, MPLAP or CCS??
2) there are no detail about conecting between PIC and LCD, which pins of LCD should I conect to PIC16f873?
thanks |
|
|
cambol Guest
|
|
Posted: Sun Oct 14, 2007 11:11 pm |
|
|
sorry for wrong typing,
line 6:
#include ---> #include<lcd_drv.c> |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
cambol Guest
|
|
Posted: Sun Oct 14, 2007 11:41 pm |
|
|
Thank you. |
|
|
|
|
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
|