2025-04-02 2:16 AM
Dear all,
I am developing a project using the STEVAL-DPSG474 board. I want to use a COMP module to trigger event on HRTIM output and I want to know the state of this COMP.
To highlight the strange behaviour, I am using COMP 2 (and 3) connected to external event 1 (and 5). External event 1 is then selected as SET and RESET sources for an HRTIM output E1. External event 5 remain unused. I feed both COMP with same signal.
My observation is that reading the COMP state using HAL_COMP_GetOutputLevel (or reading directly the CSR register) return always 0 for COMP 2 and the expected state for COMP3. HRTIM output also works as expected and toggle everytime the internal level is crossed. Therefore, COMP2 is working correctly but its status is unknown.
Is this an expected behaviour of the COMP module? Is there any way of knowing the state of the COMP module when it is used as a SET/RESET source for HRTIM?
Thanks and Best Regards,
2025-04-02 12:13 PM
Hi All,
This post has been escalated to the ST Online Support Team for additional assistance. We'll contact you directly.
Regards,
Jake
ST Support