led_pic_flash
代码说明:
#include //#include //#include "pic16f877.h" //#include "pic18f4539.h" //#include "pic18f452.h" //htc.h //========================================================== void delay(unsigned int value) { while(value>0) value--; } //========================================================== //================================================ //#pragma config FOSC = HS, WDTE = OFF, CP = OFF, PWRTE = OFF //__CONFIG(FOSC_HS & WDTE_OFF & DEBUG_OFF ); //__CONFIG(HS & WDTE_OFF & DEBUG_OFF ); #pragma config OSC = HS,WDT =OFF #pragma config PWRT = OFF //#pragma config OSC = HSPLL #pragma config WDT = OFF #pragma config LVP = OFF void main(void) { //CLEARBIT(TRISD,0xff); //SETBIT(PORTD,0xff); TRISB=0x00
下载说明:请别用迅雷下载,失败请重下,重下不扣分!