void main(){
trisb=0x00;
trisa=0xFF;
while(1){
if(porta.f0==1){
portb.f0=1;
delay_ms(2000);
portb.f0=0;
portb.f1=1;
}
}
}
Q:I want to stop portb.f0 competely after 2 seconds although the switch on .How?
Thank you
PIC is a family of
PIC is a family of microcontrollers made by Microchip Technology, derived from the PIC1650 originally developed by General Instrument's Microelectronics Division. The name PIC initially referred to Peripheral Interface Controller, and is currently expanded as Programmable Intelligent Computer.
Debashis Das
PermalinkTry disabling all the peripherals associated with that specific pin.
- Log in or register to post comments
Joined December 02, 2019 117Monday at 10:02 PM