Hi,
in the technical reference manual TRM of the AM2634 ("SPRUJ17C – MARCH 2022 – REVISED NOVEMBER 2022") it states (section 1.4.4) that a window comparator can be configured for one analog input. However the windowing function itself must it be made externally?
As far as I understand each comparator module has two comparators ('H' & 'L' for high and low) followed by two digital filters. However the "oring" to perform such a windowing function using the outputs of these digital filters how is this being made? In this SysCfg tool I use (1.13.0) for the OUTPUT XBAR section I did configure "CMPSSA0_CTRIPH" or "CMPSSA0_CTRIPL" I can't configure for the "ored" output function of the two digitial filters within one comparator module.
Q: How is this accomplished? What do I miss here or misunderstand?
Any help or hint would be appreciated.
Markus
As an additional information I was able to configure the comparator for a low going output if the input value being digitized is bigger than 3072 with respect to the 12Bit input range from 0..4095. What I would need is an additional level saying it shall go low as well if the digitized value is below a certain level, say less than 1024 for example. This is shown in the scope-shot below. How can I accomplish this?
Channel 1 Yellow Function generator input
Channel 4 green DAC output
Channel 2 Magenta ADC tick pulse 2 MHz
Channel 3 Blue Comparator output but only for values bigger than ...
If for example I use the demo-project from TI "cmpss_asynchronous_trip_am263x-cc_r5fss0-0_nortos_ti-arm-clang" I can configure the high comparator to create a pulse whenever the input signal is higher than the configured value. In the example shown below the DAC value for the high comparator is 3072. We assume an input signal that is using the full scale range from 0..4095. The scope-shot shown below demonstrate it works.
Green is the analog input signal ~0..3Vpkpk.Blue is the comparator output CMPSSA0 on pin R3 whenever the input is higher than the configuration done in the syscfg-tool being 3072. For me it looks like it works. Now adding some more configuration for the comparator submodule CMPSSA0 I do configure the so called lower comparator for a treshhold value of 1024 and invert its output in order to get an additional high going pulse (Blue trace) whenever the input signal (Green) is below this lower value (1024). However nothing alike happens ... ?
Within the output xbar section of the sysfg-tool I add the output of the lower comparator. Running with the addition of the lower comparator and the output XBAR oring function nothing changes. I do get the very same scope-shot as shown above. It looks like the lower comparator has no effect. I may have made a wrong configuration I don't know. The demo program with the modifiction I made is attached.
Any idea what could be wrong?