Browsing this Thread:
1 Anonymous Users
|
Re: 有人用pic12f683的高手嗎???
|
|
資深會員
Joined
: 2004/5/14 22:12 最後登入時間
: 2013/8/18 18:49
Group:
註冊會員
Level : 15 HP : 0 / 357 MP : 89 / 21293 EXP : 28
|
#fuses NOWDT,NOPROTECT,NOMCLR,INTRC,HS 將INTRC改成INTRC_IO @@
發表於: 2007/3/6 11:57
|
|
|
有人用pic12f683的高手嗎???
|
|
新會員
Joined
: 2007/3/3 15:40 最後登入時間
: 4/23 11:46
Group:
註冊會員
Level : 1 HP : 0 / 0 MP : 0 / 35 EXP : 2
|
程式如下用CCS寫的 #define(_PCM_) #include<12f683.h> #fuses NOWDT,NOPROTECT,NOMCLR,INTRC,HS #use delay(clock=8000000) #byte OSCCON=0x8F
void main() { OSCCON=0x71; setup_oscillator(OSC_8MHZ |OSC_INTRC); SET_TRIS_A(0xC0); SETUP_ADC_PORTS(AN3_ANALOG); SETUP_COMPARATOR(0x0ff07); while(1) { output_high(Pin_A5); output_high(Pin_A2); delay_us(250); output_low(Pin_A5); output_low(Pin_A2); delay_us(250); } }
不知為什麼A2輸出正確~~ A5就不輸出~~
發表於: 2007/3/6 8:58
|
|
You can view topic.
你 不可以 發起新主題
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.