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 support@ccsinfo.com

LCD 16x2 with PIC16F873

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







LCD 16x2 with PIC16F873
PostPosted: Sun Oct 14, 2007 11:08 pm     Reply with quote

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







PostPosted: Sun Oct 14, 2007 11:11 pm     Reply with quote

sorry for wrong typing,

line 6:

#include ---> #include<lcd_drv.c>
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Oct 14, 2007 11:16 pm     Reply with quote

See my post in this thread. It has links to the LCD driver that you
should use, and a link to a schematic.
http://www.ccsinfo.com/forum/viewtopic.php?t=32053
cambol
Guest







PostPosted: Sun Oct 14, 2007 11:41 pm     Reply with quote

Thank you.
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