130 likes | 295 Views
Second Baseline Correction (BCII). Eduardo Garcia. 19/02/2009. Objectives Second Baseline Correction (BCII) Moving Average Filter Parameter N Round-off Control logic. Objectives. Corrects perturbation created by non-systematic effects during the processing time Double threshold window
E N D
Second Baseline Correction (BCII) Eduardo Garcia 19/02/2009
Objectives • Second Baseline Correction (BCII) • Moving Average Filter • Parameter N • Round-off • Control logic
Objectives • Corrects perturbation created by non-systematic effects during the processing time • Double threshold window • Based on • Moved Average Filter (MAF)
Operation • din - bsl + offset , 0 dout 1023 • 0 , dout < 0 • din - bsl + offset - 1024 , dout > 1023 bsl calculation bsl frozen After Tail Cancellation Filter After Baseline Correction II A fixed threshold can now be applied safely Double threshold BC II • 1. Slow variations of the signal Baseline updated • 2. Fast variations of the signal Baseline value frozen ALTRO BCII (B. Mota)
Moving Average Filter • Baseline: • Transformation: • Example: avgn= (xn-3+xn-2+xn-1+xn) / 4 avg5= (x2+x3+x4+x5) / 4 avgn=avgn-1+(xn-xn-4)/4 sum4-x1+x5
Parameter N: frequency behavior depends on that! • Large N -> low frequency components perturbations • Small N -> high frequency components perturbations N=4 N=16
N=2 N=4 N=16 N=8
MAF Block diagram • Flexible MAF • Multiplexers control lines and register enables with the same two lines taps_en [1:0]: “00” -> 2 taps “10” -> 4 taps “11” -> 8 taps
Control logic • Post-samples control -> config [5:2] pre-charge post sample counter • (evaluate post sample flag) • Pre-samples control -> config [1:0] • There is a baseline initialization of 12 samples, after that the double threshold starts to work