how to make pic16f690 run because I put the program but when I put it in vcc and ground not work please show me
unsigned int x;
unsigned int y;
float adjpot;
float pospot;
void main() {
//ANSEL=0X4;
TRISA=0XFF;
//ANSELH=0;
TRISB=0;
do{
x= adc_read(0);
adjpot=5.0*x/1023;
y=adc_read(1);
pospot=5.0*y/1023;
if(pospot>adjpot){
portb.f4=1;
portb.f5=0;
portb.f6=1;
portb.f7=0;
}
if(pospot< adjpot){
portb.f4=0;
portb.f5=1;
portb.f6=0;
portb.f7=1;
}
if(pospot==adjpot){
portb=0;
}
}while(1);
}
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
U | pic16f690 - LCD works in proteus but not on breadboard | Microcontrollers | 7 | |
![]() |
Help with PIC16f690 and pin address -- CCS C compiler | Microcontrollers | 7 | |
![]() |
Help with PWM and servo with Pic16F690 | Microcontrollers | 13 | |
C | Timer 2 PIC16F690 | Homework Help | 8 | |
![]() |
Question Regarding Pic16F690. | Homework Help | 1 |