This shows you the differences between two versions of the page.
resources:tools-software:sigmastudio:toolbox:basicdsp:valuecrossdetection [21 Jun 2012 20:58] – created Brett Gildersleeve | resources:tools-software:sigmastudio:toolbox:basicdsp:valuecrossdetection [22 Jun 2012 16:03] (current) – Added content William Jahn | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | <WRAP center round todo 60%> | + | ======Value Cross Detection====== |
- | Under Construction | + | |
- | </WRAP> | + | [[resources: |
+ | \\ | ||
+ | -------------------------------------------------------------------------------------------------------- | ||
+ | |The Value Cross Detection outputs a pulse every time the input signal has crossed the value specified in the cell. As a default this cell acts as a zero-cross detector, but it can compare the signal to any threshold value.|{{valuepic1.png}}| | ||
+ | |||
+ | ===Input Pins=== | ||
+ | ^Name^Format [int/dec] - [control/ | ||
+ | |Pin 0: Input Signal|dec - audio|Input Signal to monitor| | ||
+ | |||
+ | ===Output Pins=== | ||
+ | ^Name^Format [int/dec] - [control/ | ||
+ | |Pin 0: Pulse Output|decimal - control|Pulse output in 5.23 format| | ||
+ | |||
+ | ===GUI Control=== | ||
+ | ^GUI Control Name^Default Value^Range^Function Description^ | ||
+ | |Value Threshold|0|-15, | ||
+ | |||
+ | ===DSP parameter Information=== | ||
+ | ^GUI Control Name^Compiler Name^Function Description^ | ||
+ | |Value Threshold|CrossValueCrossAlg1|When the value threshold is changed, it is written directly to the DSP| | ||
+ | |||
+ | ===Algorithm Description=== | ||
+ | The Input signal is compared to the Value Threshold. Each time the input signal crosses this value (whether rising or falling) the output of the cell goes high. Otherwise the output of the cell is low. Below is a sample of the algorithm doing zero-cross detection, which is the default state of the block.\\ | ||
+ | \\ | ||
+ | {{valuepic2.png}}\\ | ||
+ | \\ | ||
+ | |||
+ | ===Example=== | ||
+ | In some applications it is useful not just to know when there is a value cross, but also count the number of times that this happens during a specified time. Using the Value-Cross Detection block along with the [[resources: | ||
+ | \\ | ||
+ | {{valuepic3.png}}\\ | ||
+ | \\ | ||
+ | |||
+ | ===Algorithm Details=== | ||
+ | |Toolbox Path|Basic DSP - Logic - Value Cross Detection| | ||
+ | |Cores Supported|AD1940 \\ ADAU170x \\ ADAU144x \\ ADAU176x \\ ADAU178x| | ||
+ | |"Grow Algorithm" | ||
+ | |"Add Algorithm" | ||
+ | |Subroutine/ | ||
+ | |Program RAM|15*| | ||
+ | |Data RAM|3*| | ||
+ | |Parameter RAM|1*| | ||
+ | *Numbers are based on one instance of the algorithm with no additional " | ||
+ | |||
+ | ===Algorithm Addition Information=== | ||
+ | |Description|When you add an algorithm, a new set of input/ | ||
+ | |Program RAM Repetition|15 per add|| | ||
+ | |Data RAM Repetition|3 per add|| | ||
+ | |Parameter RAM Repetition|1 per add|| | ||
+ | |||
+ | |||