什么是正确的采样频率值?

时间:2015-03-28 10:30:55

标签: filtering microcontroller frequency pic sampling

在给定的code中,什么是正确的采样频率(采样率)?是8kHz吗?我找不到它。

1 个答案:

答案 0 :(得分:0)

此评论建议8kHz

.equ        TIMECONST, #32000   ;Use 32000 samples (4 seconds) as constant to find peak

代码的这一部分具体说" 8KS / s"

;Setup Timer 1 for sampling delay: Tcy = 16MHz (64MHz Clock) 
    mov     #0x8000,w1      ;8KS/s at Tcy=16MHz
    mov     w1,T1CON        ;1:1, Int Clk, ON
    mov     #2000,W1        ;Load PR1 for delay, 8KS/s Sample Rate @16MHz Internal
    mov     w1,PR1