View previous topic :: View next topic |
Author |
Message |
JiggyPepper
Joined: 02 Feb 2012 Posts: 7
|
SERIAL LCD interfacing PIC16F877A (Gibberish display) |
Posted: Tue Feb 21, 2012 7:07 am |
|
|
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. |
|
![](templates/subSilver/images/spacer.gif) |
ezflyr
Joined: 25 Oct 2010 Posts: 1019 Location: Tewksbury, MA
|
|
Posted: Tue Feb 21, 2012 7:35 am |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
|