Re: PIC24FJ32偵測Duty
|
||||
---|---|---|---|---|
版主
|
WritrTimer1(0) 是將 Timer1 歸零。因為輸入的Pulse 由1~0時會產生中斷將 Timer1 的值讀走後再歸零,以便下一個 Pulse 的 Hi Duty 計時。
發表於: 2008/3/24 9:35
|
|||
|
Re: PIC24FJ32偵測Duty
|
||||
---|---|---|---|---|
初級會員
|
不好意思.....
參考範例的WriteTimer1(0) 是要針對什麼東西寫0進去.... 這部份看不太懂........
發表於: 2008/3/21 18:42
|
|||
|
Re: PIC24FJ32偵測Duty
|
||||
---|---|---|---|---|
初級會員
|
太感謝各位大大...
小弟先K過一遍....有問題再請教大大們..... Thanks....Thanks
發表於: 2008/3/20 17:36
|
|||
|
Re: PIC24FJ32偵測Duty
|
||||
---|---|---|---|---|
管理員
|
Hi,
dsPIC30F Module Training 有關 Timers 的部份已經加入 ! 在 "檔案下載" 的講義及教材分類中: http://www.microchip.com.tw/modules/m ... ds/visit.php?cid=4&lid=77
發表於: 2008/3/20 17:08
|
|||
|
Re: PIC24FJ32偵測Duty
|
||||
---|---|---|---|---|
版主
|
可以用 Timer1的 gate Time function 來量取 Hi-Cycle 的時間。詳細的範例與說明可以參考 dsPIC30F Peripheral Module - Timer 裡的練習二,量取脈衝的寬度時間。
發表於: 2008/3/20 16:03
|
|||
|
PIC24FJ32偵測Duty
|
||||
---|---|---|---|---|
初級會員
|
小弟目前用pic24 ic 使用capture的功能偵測到了週期也就是頻率,可是小弟還想要偵測非對稱波形各duty會有多少.....小弟已經把ICM2:ICM0上升下降邊緣捕捉方式都試過了......就是不行請問大大們...小弟還有何方式可以作....
發表於: 2008/3/20 14:31
|
|||
|