Browsing this Thread:
1 Anonymous Users
|
CCP 中的Capture 功能請教
|
|
新會員
Joined
: 2004/5/17 11:39 最後登入時間
: 2004/8/24 15:28
Group:
註冊會員
Level : 1 HP : 0 / 0 MP : 0 / 40 EXP : 2
|
我的設定如下 結果是有出來 可是當設定 CCP1CON= B'00000111'(every 16th rising edge) or B'00000110'(every 4th rising edge) 中斷就亂跳 並不會如我想像'n'週才出現一次 是否還必須增加什麼
Inturrupt: BSF OUTPUT CALL delay_1ms
BCF OUTPUT BCF PIR1,CCP1IF retfie FAST ;******************************************** START: BSF TRISC,2 ;for CCP1(Input) BCF TRISC,3 ;Output(Led) MOVLW B'00000101' MOVWF CCP1CON BCF PIR1,CCP1IF BCF PIE1,CCP1IE BSF INTCON,GIE,A BSF INTCON,PEIE,A BSF PIE1,CCP1IE
Mainline: BCF OUTPUT Bra Mainline
發表於: 2005/6/2 0:19
|
|
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.