Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

HOW to read Temperature sensor and print the result in LCD using pic16f77a

program



#define LCD_TYPE 1
#include
int16 a;
void main()
{
   lcd_init();



   setup_adc_ports(ALL_ANALOG);
   setup_adc(ADC_CLOCK_INTERNAL);
   set_adc_channel( 0 );
   while(1)
   {
   lcd_putc("\f");
   a=read_adc();
   delay_ms(10);
   printf(lcd_putc,"val :%Ld",a);
   delay_ms(50);
  
   }

   // TODO: USER CODE!!

}


This post first appeared on Compizspec.blogspot.com, please read the originial post: here

Share the post

HOW to read Temperature sensor and print the result in LCD using pic16f77a

×

Subscribe to Compizspec.blogspot.com

Get updates delivered right to your inbox!

Thank you for your subscription

×