摘要:
View Code 1 TIM0 查询法使LED一秒闪烁,未使用预分频 2 #include<pic.h> 3 #define uint unsigned int 4 #define uchar unsigned char 5 #define input RA3 6 #define clk RA5 7 #define cs_led RE0 8 __CONFIG(0x3B31); 9 10 void init(); 11 void delay(uint); 12 void write_164(uchar); 13 uint intnum1,intnum2; 14 ... 阅读全文