User manual

67
sbit LCD_D1_Direction at TRISD1_bit;
sbit LCD_D2_Direction at TRISD2_bit;
sbit LCD_D3_Direction at TRISD3_bit;
sbit LCD_D4_Direction at TRISD4_bit;
sbit LCD_D5_Direction at TRISD5_bit;
sbit LCD_D6_Direction at TRISD6_bit;
sbit LCD_D7_Direction at TRISD7_bit;
unsigned long s1_value=0,s2_value=0,s3_value=0;
unsigned long Vout, Range,Range_an,Hight;
int count=0,count1=0,txt[12],txt2[12];
int sensor1=1,sensor2=1;
void readSensor(void);
void readSensor3(void);
void calculateHight(void);
void introduction(void);
void displayLCD(int y);
void main()
{
TRISB=0b00000000;
TRISD=0;
TRISA=0xFF;
PORTB=0;
ADC_Init();
lcd_Init();
Lcd_cmd(_LCD_CURSOR_OFF);
introduction();
displayLCD(count1);
adcon1=6;