Tool/software:
Dear,
I'm trying to use a TIMER for counting COMP0 outputs.
How to configure? The configuration tool doesn't seem to support such a configuration?
Thank you.!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
Dear,
I'm trying to use a TIMER for counting COMP0 outputs.
How to configure? The configuration tool doesn't seem to support such a configuration?
Thank you.!
You can use Event module to use COMP to trigger Timer generate capture event.
You need to first send the COMP signal to event module, like channel 1.
The use Timer capture to catch the signal and use this signal as the capture trigger:
Dear,
I have exactly as you specify above.
My COMP0 is outputting a signal (330KHz) to the CH1 of the EVENT logic. I'm sure about this, I directed the COMP0 OUT to an output pin.
I readout the count as follows:
counter = DL_Timer_getTimerCount(CAPTURE_0_INST);
It stays ZERO.
Do we forget something?
Maybe your timer duty is too fast.
Can you check the resistor setting at here, to see if the COMP event is generated: