-
PIC16(L)F1938/9 点灯程序不生效
/**File:main.c*Author:Administrator**/#pragmaconfigFOSC=INTOSC,WDTE=OFF,PWRTE=OFF,MCLRE=ON#includevoidDelay_50us(unsignedintn){unsignedchari;while(n--){for(i=0;i<104;i++);}}voidDelay_ms(unsignedintn){while(n--){Delay_50us(20);}}voidmain(void){TRISCbits.TRISC0=0;LATCbits.LATC0=1;while(1){LATCbits.LATC0=0;Delay_ms(500);LATCbits.LATC0=1;Delay_ms(500);}return;}这个程序闪灯不生效
2024-07-16 0