• slider image 442
  • slider image 483
  • slider image 484
  • slider image 485
  • slider image 486
  • slider image 487
  • slider image 488
  • slider image 491
:::


Browsing this Thread:   1 Anonymous Users






Re: 關於FFT的問題
#4
資深會員
資深會員


查看用戶資訊
If using C, just divide the signed value by 2.

If using assembly, dsPIC has some DIV and SHIFT instructions which can keep the sign of the variable.

發表於: 2009/4/20 20:26

Edited by BBL on 2009年04月20日 23:02:33
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 關於FFT的問題
#3
新會員
新會員


查看用戶資訊
Thanks for your answer. BBL

For question3, a 12bit ADC output format can be one of the following:
1. signed fractional sddd dddd dddd 0000
2. unsgined fractional dddd dddd dddd 0000
3. signed integer
4. unsigned integer

If I have my analogue input range from 0.0V to 3.3V and signed fractional is chosen, the ADC output value will be -1 (0.0V) to +1 (3.3V). How can we change the range to what you mentioned in Answer3?

發表於: 2009/4/20 0:40
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 關於FFT的問題
#2
資深會員
資深會員


查看用戶資訊
1. Until all of the 64 point data is ready, the output of the 64-pint FFT has no meaning.
2. I think, if you use FFT continuously, except the 1st FFT, all following FFT doesn't require zero padding.
3. You should make 1.65V to represent 0, 3.3V to represent +0.5, and 0V to represent -0.5V. dsPIC signed fractional format can help.

發表於: 2009/4/19 23:47
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


關於FFT的問題
#1
新會員
新會員


查看用戶資訊
Hi,

I am a newbie in DSP processing. Just want to ask some questions which might be very easy.

In the code example CE108, it mentioned:
"inputsignal_square1khz.c" in the array named sigCmpx[]". This array should be of length, FFT_BLOCK_LENGTH and
type "fractcomplex". So, for a 64-pt FFT, it should contain only 64 data samples and padded initially with 64 zeroes. This array
stores the output of the complex FFT operation and eventually stores the magnitudes of the frequency bins."

1. Why do we need 64 zero paddings? I am not quite understand.

2. Also, if I change the source of input signal from "inputsignal_square1khz.c" to an ADC input, how many samples will I
need in order to perform FFT? Will I need to include the zero padding as well?

3. As the document also mentioned that the amplitude of input signal must be in the range +0.5 to -0.5, if I got a signal from
0 to 3.3V, will I need to scale it down to 0 to 0.5V before I perform the FFT?

Many thanks

發表於: 2009/4/19 22:29
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... ]

教育訓練中心

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