Author |
Message |
Topic: LCD+ADC ON PIC16F877a WORK FINE SIMULATION, BUT NOT IN BOARD |
nachgot
Replies: 15
Views: 25140
|
Forum: General CCS C Discussion Posted: Fri May 28, 2010 2:35 pm Subject: LCD+ADC ON PIC16F877a WORK FINE SIMULATION, BUT NOT IN BOARD |
#define LCD_DB4 PIN_D4
#define LCD_DB5 PIN_D5
#define LCD_DB6 PIN_D6
#define LCD_DB7 PIN_D7
#define LCD_E PIN_D1
#define LCD_RS PIN_D0
//#define LCD_RW PIN_A2
// If ... |
Topic: LCD+ADC ON PIC16F877a WORK FINE SIMULATION, BUT NOT IN BOARD |
nachgot
Replies: 15
Views: 25140
|
Forum: General CCS C Discussion Posted: Thu May 27, 2010 9:15 pm Subject: LCD+ADC ON PIC16F877a WORK FINE SIMULATION, BUT NOT IN BOARD |
Look again at the bias connection. If you apply power to an LCD of this sort, with _nothing_ sent to it from a processor, it'll normally wake up displaying one line of black squares. If these are not ... |
Topic: LCD+ADC ON PIC16F877a WORK FINE SIMULATION, BUT NOT IN BOARD |
nachgot
Replies: 15
Views: 25140
|
Forum: General CCS C Discussion Posted: Thu May 27, 2010 2:23 pm Subject: LCD+ADC ON PIC16F877a WORK FINE SIMULATION, BUT NOT IN BOARD |
If i turn on the circuit, the lcd will turn on the backlight, and doesn't appear nothing...
Yes, i have set my LCD correctly...
RD4 -> D4
RD5 -> D5
RD6 -> D6
RD7 -> D7
RD0 -> RS
... |
Topic: LCD+ADC ON PIC16F877a WORK FINE SIMULATION, BUT NOT IN BOARD |
nachgot
Replies: 15
Views: 25140
|
Forum: General CCS C Discussion Posted: Thu May 27, 2010 6:21 am Subject: LCD+ADC ON PIC16F877a WORK FINE SIMULATION, BUT NOT IN BOARD |
The connections between LCD and PIC, are all ok.
I used other port of PIC, with a LED, to test the clock too...And the led is blinking.
The contrast, i used a 10K potentiometer, and the LCD does not ... |
Topic: LCD+ADC ON PIC16F877a WORK FINE SIMULATION, BUT NOT IN BOARD |
nachgot
Replies: 15
Views: 25140
|
Forum: General CCS C Discussion Posted: Wed May 26, 2010 1:40 pm Subject: library |
This code works fine in my simulation in Proteus.
But in my protoboard, doesn't work...
My LCD use a KS0066U microcontroller, and i use a PIC 16F877A for project.
The LCD power up, but not a ... |
Topic: LCD+ADC ON PIC16F877a WORK FINE SIMULATION, BUT NOT IN BOARD |
nachgot
Replies: 15
Views: 25140
|
Forum: General CCS C Discussion Posted: Tue May 25, 2010 3:13 pm Subject: RESOLVED! |
Here is a sample program to read the ADC and display the voltage
on the LCD:
http://www.ccsinfo.com/forum/viewtopic.php?t=32168&start=1
Here is the Flex lcd driver used by the program above:
... |
Topic: LCD+ADC ON PIC16F877a WORK FINE SIMULATION, BUT NOT IN BOARD |
nachgot
Replies: 15
Views: 25140
|
Forum: General CCS C Discussion Posted: Tue May 25, 2010 2:44 pm Subject: LCD+ADC ON PIC16F877a WORK FINE SIMULATION, BUT NOT IN BOARD |
hi, I need a help with my PIC program.
The program read ADC channel, and i need to send the value to lcd, what i can view the value on lcd?
This is my main code:
#include <16f877a.h>
# ... |
|