问答

汇集网友智慧,解决技术难题

小木匠大瓜

TA的家园币:94  

  • 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;}这个程序闪灯不生效

    SC ID ig tc 点灯 pic16

    2024-07-16 0