Professional Documents
Culture Documents
h> void main ( ) { int x; char a[15]; LCDinit(); LCDclr( ); ADCinit(10); while (1) { x = read_adc(0); to pin 0 of port A // returns the digital value of the analog i/p connected
sprintf(a, "Value = %d ",x); LCDclr (); LCDstring (a, 10); _delay_ms (300); } }