cancel
Showing results for 
Search instead for 
Did you mean: 

HRTIM software FAULT configuration

PMoreno
Associate

Hi all!

I have NUCLEO stm32G474RE board, and I am playing with HRTIM.

I am trying to take advantage of fault logic, found in HRTIM module.

HRTIM can have GPIO hardware input, which can shut down all HRTIM outputs, without any software overhead.

Now, I would like to trigger this fault logic, but from software. I can shut down HRTIM from software the „usual“ way, but that is multistage process, first one needs to disable counters, then disable outputs, then force all outputs to zero, shut down all interrupts, and so on...

I want to read the value of an adc, and if this value is above some threshold, active the fault. 

Is it possible to do that, and if so, anyone know how to do it?

0 REPLIES 0