Skip to content
Snippets Groups Projects
Commit fcd6654d authored by Thomas Walter's avatar Thomas Walter Committed by Clément Foucher
Browse files

Being able to change the instant of triggering of the ADC in center aligned.

I modified the function _hrtim_init_events_center_aligned in the hrtim_common.c so the triggering of the ADC is not on PER but on a comparator.
ADC of leg 1 is now triggered by CMP3 (on TIMA) and leg 2 is triggered by CMP4 (on TIMC).

Note : with this update, CMP3 and CMP4 are now unavailable.
parent f64c74b2
No related branches found
No related tags found
1 merge request!54Being able to change the instant of triggering of the ADC in center aligned.
Loading
  • Author Developer

    Then to update the triggering instant the function hwConfig.setHrtimAdcTrigInterleaved(__Trig_value_);

    Must be called in the main with the argument Trig_value in percent.

    Empirical measures showed that 0,06 was a good value for current measure. Voltage measures don't seem to be impacted by the trigger instant

    Edited by Thomas Walter
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment