Browsing this Thread:
1 Anonymous Users
|
新手問題,幫我看看PIC16F77 CCP capture mode 的使用???
|
|
新會員
Joined
: 2005/9/20 18:06 最後登入時間
: 2005/9/22 14:07
Group:
註冊會員
Level : 1 HP : 0 / 0 MP : 0 / 0 EXP : 0
|
請問一下ccp 的capture mode 的使用需做那些設定? 除了下面之外 // Capture mode setting CCP1M3 = 0; // Event is defined as every falling edge CCP1M2 = 1; CCP1M1 = 0; CCP1M0 = 0; TRISC2 = INPUT; // Timer 1 setting T1CKPS1= 1; // Prescale value 1:1 T1CKPS0= 1; T1OSCEN= 1; // Oscillator disable TMR1CS = 0; // internal clock TMR1ON = 1; // ENABLE Timer 1
CCP1IE = 1; // ENABLE CCP Capture mode interrupt PEIE = 1; GIE = 1;
發表於: 2005/9/22 14:14
|
|
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.