harisali
Newbie level 1
![Newbie level 1](/styles/images/ranks/alevel1.gif)
hi there ..
i have a problem to display a lcd using 16f877a
im new in here .. please help me
i attach along with my circuit and coding
![Capture.JPG Capture.JPG](https://www.edaboard.com/data/attachments/52/52449-bf8cd76d21295451d3541d3622fe073f.jpg)
![Capture2.JPG Capture2.JPG](https://www.edaboard.com/data/attachments/52/52450-967c7717fca37247c17c244c4edcd05a.jpg)
i have a problem to display a lcd using 16f877a
im new in here .. please help me
i attach along with my circuit and coding
![Capture.JPG Capture.JPG](https://www.edaboard.com/data/attachments/52/52449-bf8cd76d21295451d3541d3622fe073f.jpg)
![Capture2.JPG Capture2.JPG](https://www.edaboard.com/data/attachments/52/52450-967c7717fca37247c17c244c4edcd05a.jpg)
PHP:
#include <16F877A.h>
#device adc=8
#fuses HS,NOWDT, NOPROTECT, PUT
#use delay(clock = 20 000 000)
#include <lcd.c>
void main (void)
{
float photo;
setup_adc(ADC_CLOCK_INTERNAL);
setup_adc_ports(ALL_ANALOG);
lcd_init();
while (1)
{
lcd_putc ("\f");
set_adc_channel(0);
delay_us(20);
photo = read_adc();
photo = (photo*.0197)/5*100;
lcd_putc("LIGHT METER");
Printf (lcd_putc);
lcd_putc("\n");
lcd_putc("Light= ");
printf (lcd_putc, "%2.2f", photo);
delay_ms(100);
}
}