SPRUJ79 November 2024 F29H850TU , F29H859TU-Q1
WADI block can measure the pulse width, frequency, dead band, and phase overlap. WADI block can be configured for single measurements or be configured to instead calculate an aggregated measurement and take the average or find the peak value of the measurements.
Each WADI block can be configured to measure either pulse width of a signal or the frequency (edge counts) of a signal. Configuration for measuring both pulse width and frequency on one signal cannot be done. However configuration to measure frequency on one signal, and pulse width on another signal is allowed.
Single signal measurements can be done with out any signal to signal comparison. There is flexibility to perform signal to signal measurements on top of single signal measurements.
For example, you can measure the pulse width in addition with a signal to signal measurement of dead band and phase overlap. The following scenarios show the possible simultaneous measurements that can be done depending on what is needed to be measured.
For simultaneous measurements, here are the three configuration scenarios that are feasible with each WADI block. Dead band and phase overlap measurements are possible in all scenarios since an internal independent counter is used for them. The following scenarios go through what can be measured on SIG1 and SIG2 independently, and what can be done when performing a SIG1 to SIG2 comparison.
Scenario 1 (Pulse width and frequency measurement):
One WADI block can be used to measure SIG1’s pulse width and measure SIG2’s frequency independently. In this scenario you cannot use any of the signal to signal comparisons since one is measuring pulse width and another measuring frequency and the measurements are not be related to each other. You can measure the individual signals for the single measurement or if you enable measuring the signal’s sum, average, and peak.
Scenario 2 (Pulse width only):One WADI block can be used to measure pulse width of SIG1 and SIG2. During the scenario, you can measure the independent pulse widths and do signal to signal comparison. Signal to signal comparison can be done since both counters have pulse width measurements related to each other. If the WADI block is measuring a single pulse width (SIG1/2CFG.NUMAGGR = 0x0) then sum, average, and peak comparisons as well the signal to signal for sum, average and peak can not be used for comparison. If SIG1/2CFG.NUMAGGR is non-zero, then the sum, average, and peak comparisons can be used and can be enabled using SIG1/2CFG.AGGRMODE. In this scenario frequency comparison can not be available since we are measuring pulse width.
Scenario 3 (Frequency only):
To enable measurement of frequency or edge count, SIG1/2EDGECFG.CNTEN must be set. One WADI block can be used to measure frequency or edge count of SIG1 and SIG2. During the scenario, you can measure the edge count, or measure a moving window of edge counts. In addition you can do signal to signal comparison only for comparing the single edge count measurement or the moving window measurement. Signal to signal comparison can be done since both counters have edge count measurements related to each other. Sum, average, and peak comparisons as well the signal to signal for sum, average and peak can not be used when in edge count mode for comparison. In this scenario pulse width comparison or pulse width measurement can not be available since we are measuring edge count.