• slider image 442
  • slider image 477
  • slider image 479
  • slider image 480
  • slider image 481
  • slider image 482
:::


Browsing this Thread:   1 Anonymous Users






Re: 如何用PIC來實現軟體低階濾波器!
#9
版主
版主


查看用戶資訊
跟 Microchip 可以直接買購買,向代理商買或用網路下單直接向Microchip 美國購買。
http://buy.microchip.com/

發表於: 2005/3/14 14:55
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 如何用PIC來實現軟體低階濾波器!
#8
新會員
新會員


查看用戶資訊
SW300001 - Digital Filter Design for dsPIC

這個台灣買不買得到呀?
不過只能用在DSPIC30x的chip上齁?

發表於: 2005/3/12 13:08
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 如何用PIC來實現軟體低階濾波器!
#7
資深會員
資深會員


查看用戶資訊

看看這個,

http://www.ccsinfo.com/forum/viewtopi ... 051f799c0e83944c4cdc87b9a

看看書,上上機,剩下的 ...

有請版主幫忙囉!

發表於: 2004/9/29 22:27
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 如何用PIC來實現軟體低階濾波器!
#6
初級會員
初級會員


查看用戶資訊
首先感謝大大的不借指教,但是小弟還有些問題想請教,那在程式中的B是否可以是程式設計者自行訂義的常數,還有假設第一次進入這個副程式,filtered_data的初始值需要設為什麼?還有如果小弟希望運用整數運算來處理,那麼( 1.0 - b ) * data + b* filtered_data,小弟要如果訂義呢,謝謝各位前輩的指教。

發表於: 2004/9/26 8:45
生活的本身,要具備承擔責任的勇氣,才能活的充實,活的有價值,活的更幸福。
生命的意義在於努力追求目標,在於面對失敗,在於活得積極。
人生中本來就會失去很多東西,但是最重要的
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 如何用PIC來實現軟體低階濾波器!
#5
資深會員
資深會員


查看用戶資訊
1. 不是
2. 他的程式也有點小錯誤,傷腦筋,我沒注意到,抱歉啦

正確版

b = 0.9; // 若設零,則無濾波;數值越大,時間常數就越大,反應越慢,濾波效果也越好

void timer_isr() // 定時執行的中斷,時距 T
{
data = read_analog();
filtered_data = ( 1.0 - b ) * data + b* filtered_data
}

濾波效果與定時中斷的時距 T 有關喔,
時間常數 = -1/log(b)*T ,其中 log 是自然對數

你可以視需要改寫成定點數或整數運算,縮短運算時間

發表於: 2004/9/24 15:02
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 如何用PIC來實現軟體低階濾波器!
#4
初級會員
初級會員


查看用戶資訊
感謝各位前輩的提供,mechwe大大您給小弟的網站上提到是不是說,如果小弟以AD converter為例,是不是說,這一次的輸入必須和上一次輸入相加後除以4後得到的結果就是這一次濾波後的輸入值呢?謝謝大大的指教。

===== Low Pass Filter =====

A really simple low pass filter that approximates a single pole (R-C) analog filter:

Out0 = a * In0 + b * Out1
where a + b = 1.0 (a and b are fractions > 0 and < 1)

This is an IIR filter since it uses past outputs. Basically it averages the new input with last output. The smaller the 'a' term is, the slower the response of the filter. If you use constants divisible by a power of two it is a very fast calculation. A good starting point is to set a = 1/4 and b = 3/4:

Out0 = (In0 + Out1 + Out1 + Out1) / 4;

發表於: 2004/9/24 13:52
生活的本身,要具備承擔責任的勇氣,才能活的充實,活的有價值,活的更幸福。
生命的意義在於努力追求目標,在於面對失敗,在於活得積極。
人生中本來就會失去很多東西,但是最重要的
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 如何用PIC來實現軟體低階濾波器!
#3
資深會員
資深會員


查看用戶資訊

發表於: 2004/9/24 10:01
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 如何用PIC來實現軟體低階濾波器!
#2
高級會員
高級會員


查看用戶資訊
http://www.microchip.com/stellent/idc ... &nodeId=1490&filterID=384
這一個網址可以符合你的需求,你如果有MICROCHIP APPLICATION最大本的那一本可以翻一下裡面也有我忘了是ANxxx你可以參考一下
祝你好運

發表於: 2004/9/24 8:46
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


如何用PIC來實現軟體低階濾波器!
#1
初級會員
初級會員


查看用戶資訊
如果運用PIC 18F OR 16F 來實現軟體低階濾波器,不管是用組合語言或是C語言都可以,希望大家可以一起提出來討論。

發表於: 2004/9/22 19:23
生活的本身,要具備承擔責任的勇氣,才能活的充實,活的有價值,活的更幸福。
生命的意義在於努力追求目標,在於面對失敗,在於活得積極。
人生中本來就會失去很多東西,但是最重要的
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部







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.

[進階搜尋]


:::

Microchip連結

https://www.facebook.com/microchiptechnologytaiwan/
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=13
https://mu.microchip.com/page/tmu
http://elearning.microchip.com.tw/modules/tad_link/index.php?cate_sn=1
https://page.microchip.com/APAC-PrefCenters-TW.html
http://www.microchip.com/
http://www.microchip.com/treelink
http://www.microchipdirect.com/
http://www.microchip.com.cn/newcommunity/index.php?m=Video&a=index&id=103
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=2
http://www.microchip.com.tw/Data_CD/eLearning/index.html
http://www.microchip.com.tw/RTC/RTC_DVD/
https://www.microchip.com/development-tools/
https://www.youtube.com/user/MicrochipTechnology
[ more... ]

教育訓練中心

!開發工具購買
辦法說明 [業界客戶] [教育單位]
----------------------------------
!校園樣品申請
辦法說明 [教師資格] [學生資格]
----------------------------------