[PIC®/AVR®/dsPIC®产品]
单片机上电不运行
1666|14
手机看帖
扫描二维码 随时随地手机跟帖 |
评论
hello丶酷狗
回复TA
#pragma config FOSC = INTOSCIO // Oscillator Selection bits (INTOSCIO oscillator: I/O function on RA4/OSC2/CLKOUT pin, I/O function on RA5/OSC1/CLKIN) #pragma config WDTE = ON // Watchdog Timer Enable bit (WDT enabled) #pragma config PWRTE = OFF // Power-up Timer Enable bit (PWRT disabled) #pragma config MCLRE = ON // MCLR Pin Function Select bit (MCLR pin function is MCLR) #pragma config CP = ON // Code Protection bit (Program memory code protection is enabled) #p... | |
| |