Академический Документы
Профессиональный Документы
Культура Документы
while(1){
//////////////////////////////////////////////////pRIMERA VARIABLE//////////////
////////////////////////////////////////////// ME DEJA VARIAR EL POTENCIOMETRO
ADCINT=ADC_Read(0);
/////////////valor entero a string
IntToStr(ADCINT,ADCSTR);
LCD_Out(2,5,ADCSTR);
///////////////////////
LCD_Out(2,1,"ADC");
///////////////////////
////////////////////////////////////////////////////////////////////////////////
cal=Keypad_Key_Press();
IntToStr(cal,ADCST);
delay_ms(100);
///////////////////////////////
if(portd.f0==1 && portd.f5==1){
LCD_Out(1,7,"4");
}
if(portd.f1==1 && portd.f5==1){
LCD_Out(1,7,"5");
}
if(portd.f2==1 && portd.f5==1){
LCD_Out(1,7,"6");
}
if(portd.f3==1 && portd.f5==1){
LCD_Out(1,7,"*");
}
///////////////////////////////
if(portd.f0==1 && portd.f6==1){
LCD_Out(1,7,"1");
}
if(portd.f1==1 && portd.f6==1){
LCD_Out(1,7,"2");
}
if(portd.f2==1 && portd.f6==1){
LCD_Out(1,7,"3");
}
if(portd.f3==1 && portd.f6==1){
LCD_Out(1,7,"-");
}
///////////////////////////////
if(portd.f0==1 && portd.f7==1){
LCD_Out(1,7,"ON");
}
if(portd.f1==1 && portd.f7==1){
LCD_Out(1,7,"0");
}
if(portd.f2==1 && portd.f7==1){
LCD_Out(1,7,"=");
}
if(portd.f3==1 && portd.f7==1){
LCD_Out(1,7,"+");
}
///////////////////////////////
}
}