HET channels are used to measure the speed sensor output frequency (sensor frequency varies with speed) in my project. 4 speed sensors are connected to 4 channels of HET.
PROBLEM: when 4 channels are connected with different inputs then frequency is getting detected in all 4 channels. But when all channels are connected to the same frequency source then
1. only first channel is detecting the frequency and all other channels are showing false values
2. if 2,3,4 are connected to same source then 2nd one is detecting but all other channels are showing wrong values
3. if 3,4 are connected then 3rd one is only detecting the frequency
I ensured that there is no loading to HET in any case mentioned above, and measured the frequency at every HET channel input in every case (clean signal is coming to HET with no distortion)
WCAPE instruction is used for capturing time stamp and edges for all channels and CNT instruction for free running counter
24, 26, 28, 30 pins of HET are used
WCAPE instructions for 4 channels respectively:
program field: 0x00005000, 0x00007000, 0x00009000, 0x00001000
control field: 0x00001820, 0x00001A20, 0x00001C20, 0x00001E20 (respectively for 4 channels)
register values:
DOUT- 0x00000000;
DIR- 0X00555555;
PDR- 0x00000000;
PULDIS- 0x00000000;
PSL- 0X00555555;
HRSH- 0x00000000;
AND- 0x00000000;
EXOR- 0x00000000;
PFR - 0x00000300;
PCR- 0x00000005;
PRY - 0x00000000;
INTENAC- 0xFFFFFFFF;
INTENAS - 0x00000000;
GCR - 0x00030001;
HET filter is not used.
please, provide a solution for the issue.