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 CCS Technical Support

SERIAL LCD interfacing PIC16F877A (Gibberish display)

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



Joined: 02 Feb 2012
Posts: 7

View user's profile Send private message

SERIAL LCD interfacing PIC16F877A (Gibberish display)
PostPosted: Tue Feb 21, 2012 7:07 am     Reply with quote

Specs:
1) PIC16F877A
2) MPLAB IDE
3) CCS C
4) Serial 4x20 LCD
Supply is 9V with common ground with the microcontroller.


Main initialization:

Code:

#include <16F877a.h>
#fuses HS,NOWDT, NOPROTECT,NOLVP
#use delay(clock=20000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv =PIN_C7)



So here's the story, I'm trying to integrate a serial LCD display in my system.

but it seems a simple printf is ineffective.
Code:


 void main() {
 printf( "hello.");
 }


This displays blocks and gibberish into my LCD. So I'm thinking that the lcd may require ASCII commands? Am I on the right track? Any general help will be much appreciated.
ezflyr



Joined: 25 Oct 2010
Posts: 1019
Location: Tewksbury, MA

View user's profile Send private message

PostPosted: Tue Feb 21, 2012 7:35 am     Reply with quote

Hi,

Is this question a joke? How do we know what your serial display requires? Did you even read its datasheet? What does it say about communicating with the display? A pattern is emerging here....

John
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