<?xml version="1.0" encoding="UTF-8" standalone="no"?><IP xmlns="http://mcd.rou.st.com/modules.php?name=mcu" xmlns:ns0="http://www.w3.org/2001/XMLSchema-instance" DBVersion="V4.0" IPType="peripheral" Name="COMP" Version="TSMC90_G4_Rockfish_Cube" ns0:schemaLocation="http://mcd.rou.st.com/modules.php?name=mcu ../../../../../../../doc/V4/Development/Specifications/db/IP_Modes.xsd">
	<About>COMP: Comparator</About>


<!--<RefParameter Comment="Deglitcher Mode" DefaultValue ="COMP_DEGLITCHER_DISABLED" Group="Basic Parameters" Name="DeglitcherMode" Type="list" Visible="true">
		<PossibleValue Comment="Disabled" Value="COMP_DEGLITCHER_DISABLED"/>
		<PossibleValue Comment="Enabled" Value="COMP_DEGLITCHER_ENABLED"/>
</RefParameter>-->

	<RefParameter Comment="Input Minus" DefaultValue="COMP_INPUT_MINUS_IO1" Group="Pinout Parameters" Name="InvertingInput" Type="list" Visible="false">
		<Condition Diagnostic="" Expression="(PA4_COMP1_INM  &amp; ($IpNumber=1)) |(PA5_COMP2_INM  &amp; ($IpNumber=2)) | (PF1_COMP3_INM  &amp; ($IpNumber=3)) | (PE8_COMP4_INM  &amp; ($IpNumber=4)) | (PB10_COMP5_INM  &amp; ($IpNumber=5)) | (PD10_COMP6_INM  &amp; ($IpNumber=6)) |  (PD15_COMP7_INM  &amp; ($IpNumber=7))"/>
		<PossibleValue Comment="I/O1 (PB1/PB3)" Value="COMP_INPUT_MINUS_IO1"/>
	</RefParameter>
	<RefParameter Comment="Input Minus" DefaultValue="COMP_INPUT_MINUS_IO2" Group="Pinout Parameters" Name="InvertingInput" Type="list" Visible="false">
		<Condition Diagnostic="" Expression="(PA0_COMP1_INM  &amp; ($IpNumber=1)) |(PA2_COMP2_INM  &amp; ($IpNumber=2)) | (PC0_COMP3_INM  &amp; ($IpNumber=3)) | (PB2_COMP4_INM  &amp; ($IpNumber=4)) | (PD13_COMP5_INM  &amp; ($IpNumber=5)) | (PB15_COMP6_INM  &amp; ($IpNumber=6)) |  (PB12_COMP7_INM  &amp; ($IpNumber=7))"/>
		<PossibleValue Comment="I/O2 (PC4/PB7)" Value="COMP_INPUT_MINUS_IO2"/>
	</RefParameter>


	<RefParameter Comment="Input Minus" DefaultValue="COMP_INPUT_MINUS_DAC1_CH1" Group="Pinout Parameters" Name="InvertingInput" Type="list" Visible="false">
		<Condition Diagnostic="" Expression="($IpInstance_DAC1Channel1) &amp; (($IpNumber=1)|($IpNumber=3)|($IpNumber=4))"/>
		<PossibleValue Comment="DAC1 Channel1" Value="COMP_INPUT_MINUS_DAC1_CH1"/>
	</RefParameter>
	<RefParameter Comment="Input Minus" DefaultValue="COMP_INPUT_MINUS_DAC1_CH2" Group="Pinout Parameters" Name="InvertingInput" Type="list" Visible="false">
		<Condition Diagnostic="" Expression="($IpInstance_DAC1Channel2) &amp; (($IpNumber=2)|($IpNumber=5))"/>
		<PossibleValue Comment="DAC1 Channel2" Value="COMP_INPUT_MINUS_DAC1_CH2"/>
	</RefParameter>
	<RefParameter Comment="Input Minus" DefaultValue="COMP_INPUT_MINUS_DAC2_CH1" Group="Pinout Parameters" Name="InvertingInput" Type="list" Visible="false">
		<Condition Diagnostic="" Expression="($IpInstance_DAC2Channel1) &amp; (($IpNumber=6)|($IpNumber=7))"/>
		<PossibleValue Comment="DAC2 Channel1" Value="COMP_INPUT_MINUS_DAC2_CH1"/>
	</RefParameter>
	<RefParameter Comment="Input Minus" DefaultValue="COMP_INPUT_MINUS_DAC3_CH1" Group="Pinout Parameters" Name="InvertingInput" Type="list" Visible="false">
		<Condition Diagnostic="" Expression="($IpInstance_DAC3Channel1) &amp; (($IpNumber=1)|($IpNumber=3))"/>
		<PossibleValue Comment="DAC3 Channel1" Value="COMP_INPUT_MINUS_DAC3_CH1"/>
	</RefParameter>
	<RefParameter Comment="Input Minus" DefaultValue="COMP_INPUT_MINUS_DAC3_CH2" Group="Pinout Parameters" Name="InvertingInput" Type="list" Visible="false">
		<Condition Diagnostic="" Expression="($IpInstance_DAC3Channel2) &amp; (($IpNumber=2)|($IpNumber=4))"/>
		<PossibleValue Comment="DAC3 Channel2" Value="COMP_INPUT_MINUS_DAC3_CH2"/>
	</RefParameter>
	<RefParameter Comment="Input Minus" DefaultValue="COMP_INPUT_MINUS_DAC4_CH1" Group="Pinout Parameters" Name="InvertingInput" Type="list" Visible="false">
		<Condition Diagnostic="" Expression="($IpInstance_DAC4Channel1) &amp; (($IpNumber=5)|($IpNumber=7))"/>
		<PossibleValue Comment="DAC4 Channel1" Value="COMP_INPUT_MINUS_DAC4_CH1"/>
	</RefParameter>
	<RefParameter Comment="Input Minus" DefaultValue="COMP_INPUT_MINUS_DAC4_CH2" Group="Pinout Parameters" Name="InvertingInput" Type="list" Visible="false">
		<Condition Diagnostic="" Expression="($IpInstance_DAC4Channel2) &amp; ($IpNumber=6)"/>
		<PossibleValue Comment="DAC4 Channel2" Value="COMP_INPUT_MINUS_DAC4_CH2"/>
	</RefParameter>









	<RefParameter Comment="Input Minus" DefaultValue="COMP_INPUT_MINUS_1_4VREFINT" Group="Pinout Parameters" Name="InvertingInput" Type="list" Visible="false">
		<Condition Diagnostic="" Expression="$IpInstance_Vref14"/>
                <PossibleValue Comment="1/4 VREFINT connected to comparator inverting input " Value="COMP_INPUT_MINUS_1_4VREFINT"/>
	</RefParameter>
	<RefParameter Comment="Input Minus" DefaultValue="COMP_INPUT_MINUS_1_2VREFINT" Group="Pinout Parameters" Name="InvertingInput" Type="list" Visible="false">
		<Condition Diagnostic="" Expression="$IpInstance_Vref12"/>
        <PossibleValue Comment="1/2 VREFINT connected to comparator inverting input " Value="COMP_INPUT_MINUS_1_2VREFINT"/>
	</RefParameter>
	<RefParameter Comment="Input Minus" DefaultValue="COMP_INPUT_MINUS_3_4VREFINT" Group="Pinout Parameters" Name="InvertingInput" Type="list" Visible="false">
		<Condition Diagnostic="" Expression="$IpInstance_Vref34"/>
        <PossibleValue Comment="3/4 VREFINT connected to comparator inverting input " Value="COMP_INPUT_MINUS_3_4VREFINT"/>
	</RefParameter>
	<RefParameter Comment="Input Minus" DefaultValue="COMP_INPUT_MINUS_VREFINT" Group="Pinout Parameters" Name="InvertingInput" Type="list" Visible="false">
		<Condition Diagnostic="" Expression="$IpInstance_Vref"/>
                <PossibleValue Comment="VREFINT connected to comparator1 inverting input " Value="COMP_INPUT_MINUS_VREFINT"/>
	</RefParameter>
	<RefParameter Comment="Input Minus" DefaultValue="COMP_INPUT_MINUS_1_4VREFINT" Group="Pinout Parameters" Name="InvertingInput" Type="list" Visible="false">
<!-- if input neg is disabled then generate the code with a quarter of Vref that is reset value --> 
                <PossibleValue Comment="parameter not set in CubeMx interface" Value="COMP_INPUT_MINUS_1_4VREFINT"/>
	</RefParameter>


	<RefParameter Comment="Input Plus" DefaultValue="COMP_INPUT_PLUS_IO1" Group="Pinout Parameters" Name="NonInvertingInput" Type="list" Visible="false">
		<Condition Diagnostic="" Expression="(PA1_COMP1_INP  &amp; ($IpNumber=1))|(PA7_COMP2_INP  &amp; ($IpNumber=2))|(PA0_COMP3_INP  &amp; ($IpNumber=3))|(PB0_COMP4_INP  &amp; ($IpNumber=4))|(PB13_COMP5_INP  &amp; ($IpNumber=5))|(PB11_COMP6_INP  &amp; ($IpNumber=6))|(PB14_COMP7_INP &amp; ($IpNumber=7))"/>
		<PossibleValue Comment="" Value="COMP_INPUT_PLUS_IO1"/>
	</RefParameter>
	<RefParameter Comment="Input Plus" DefaultValue="COMP_INPUT_PLUS_IO2" Group="Pinout Parameters" Name="NonInvertingInput" Type="list" Visible="false">
		<Condition Diagnostic="" Expression="(PB1_COMP1_INP  &amp; ($IpNumber=1))|(PA3_COMP2_INP  &amp; ($IpNumber=2))|(PC1_COMP3_INP  &amp; ($IpNumber=3))|(PE7_COMP4_INP  &amp; ($IpNumber=4))|(PD12_COMP5_INP  &amp; ($IpNumber=5))|(PD11_COMP6_INP  &amp; ($IpNumber=6))|(PD14_COMP7_INP &amp; ($IpNumber=7))"/>
		<PossibleValue Comment="" Value="COMP_INPUT_PLUS_IO2"/>
	</RefParameter>


	
	<!-- Basic Parameters -->

	
	<RefParameter Comment="Trigger Mode" DefaultValue="COMP_TRIGGERMODE_NONE" Group="Basic Parameters" Name="TriggerMode" Type="list">
		<PossibleValue Comment="None" Value="COMP_TRIGGERMODE_NONE"/>
		<PossibleValue Comment="Rising Edge Interrupt" Semaphore="$IpInstance_EXTI_IT_ENABLED" Value="COMP_TRIGGERMODE_IT_RISING"/>
		<PossibleValue Comment="Falling Edge Interrupt" Semaphore="$IpInstance_EXTI_IT_ENABLED" Value="COMP_TRIGGERMODE_IT_FALLING"/>
		<PossibleValue Comment="Rising/Falling Edge Interrupt" Semaphore="$IpInstance_EXTI_IT_ENABLED" Value="COMP_TRIGGERMODE_IT_RISING_FALLING"/>
		<PossibleValue Comment="Rising Edge Event" Value="COMP_TRIGGERMODE_EVENT_RISING"/>
		<PossibleValue Comment="Falling Edge Event" Value="COMP_TRIGGERMODE_EVENT_FALLING"/>
		<PossibleValue Comment="Rising/Falling Edge Event" Value="COMP_TRIGGERMODE_EVENT_RISING_FALLING"/>
	</RefParameter>
	
	<!-- Hysteresis Level -->
	<RefParameter Comment="Hysteresis Level" DefaultValue="COMP_HYSTERESIS_NONE" Group="Basic Parameters" Name="Hysteresis" Type="list">
		<PossibleValue Comment="None" Value="COMP_HYSTERESIS_NONE"/>
		<PossibleValue Comment="Level 10mV" Value="COMP_HYSTERESIS_10MV"/>
		<PossibleValue Comment="Level 20mV" Value="COMP_HYSTERESIS_20MV"/>
		<PossibleValue Comment="Level 30mV" Value="COMP_HYSTERESIS_30MV"/>
		<PossibleValue Comment="Level 40mV" Value="COMP_HYSTERESIS_40MV"/>
		<PossibleValue Comment="Level 50mV" Value="COMP_HYSTERESIS_50MV"/>
		<PossibleValue Comment="Level 60mV" Value="COMP_HYSTERESIS_60MV"/>
		<PossibleValue Comment="Level 70mV" Value="COMP_HYSTERESIS_70MV"/>
		<PossibleValue Comment="Low" Value="COMP_HYSTERESIS_LOW"/>
		<PossibleValue Comment="Medium" Value="COMP_HYSTERESIS_MEDIUM"/>
		<PossibleValue Comment="High" Value="COMP_HYSTERESIS_HIGH"/>
	</RefParameter>
		

		
	<!-- Blanking Sources. -->
	<RefParameter Comment="Blanking Source" DefaultValue="COMP_BLANKINGSRC_NONE" Group="Output Configuration" Name="BlankingSrce" Type="list">
		<Condition Diagnostic="" Expression="($IpNumber=1) &amp; (DIE479)"/>
		<PossibleValue Comment="None" Value="COMP_BLANKINGSRC_NONE"/>
		<PossibleValue Action="Disable" Comment="Timer 1 Output Compare 5" Condition="!Semaphore_output_Channel5TIM1" Diagnostic="Need to activate Timer 1 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM1_OC5_COMP1"/>
		<PossibleValue Action="Disable" Comment="Timer 2 Output Compare 3" Condition="!Semaphore_output_Channel3TIM2" Diagnostic="Need to activate Timer 2 Channel 3 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM2_OC3_COMP1"/>
		<PossibleValue Action="Disable" Comment="Timer 3 Output Compare 3" Condition="!Semaphore_output_Channel3TIM3" Diagnostic="Need to activate Timer 3 Channel 3 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM3_OC3_COMP1"/>
		<PossibleValue Action="Disable" Comment="Timer 8 Output Compare 5" Condition="!Semaphore_output_Channel5TIM8" Diagnostic="Need to activate Timer 8 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM8_OC5_COMP1"/>
		<PossibleValue Action="Disable" Comment="Timer 4 Output Compare 3" Condition="!Semaphore_output_Channel3TIM4" Diagnostic="Need to activate Timer 4 Channel 3 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM4_OC3"/>
		<PossibleValue Action="Disable" Comment="Timer 15 Output Compare 1" Condition="!Semaphore_output_Channel1TIM15" Diagnostic="Need to activate Timer 15 Channel 1 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM15_OC1"/>
		<PossibleValue Action="Disable" Comment="Timer 20 Output Compare 5" Condition="!Semaphore_output_Channel5TIM20" Diagnostic="Need to activate Timer 20 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM20_OC5"/>
	</RefParameter>
	<RefParameter Comment="Blanking Source" DefaultValue="COMP_BLANKINGSRC_NONE" Group="Output Configuration" Name="BlankingSrce" Type="list">
		<Condition Diagnostic="" Expression="($IpNumber=1) &amp; (DIE468|STM32G4x1)"/>
		<PossibleValue Comment="None" Value="COMP_BLANKINGSRC_NONE"/>
		<PossibleValue Action="Disable" Comment="Timer 1 Output Compare 5" Condition="!Semaphore_output_Channel5TIM1" Diagnostic="Need to activate Timer 1 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM1_OC5_COMP1"/>
		<PossibleValue Action="Disable" Comment="Timer 2 Output Compare 3" Condition="!Semaphore_output_Channel3TIM2" Diagnostic="Need to activate Timer 2 Channel 3 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM2_OC3_COMP1"/>
		<PossibleValue Action="Disable" Comment="Timer 3 Output Compare 3" Condition="!Semaphore_output_Channel3TIM3" Diagnostic="Need to activate Timer 3 Channel 3 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM3_OC3_COMP1"/>
		<PossibleValue Action="Disable" Comment="Timer 8 Output Compare 5" Condition="!Semaphore_output_Channel5TIM8" Diagnostic="Need to activate Timer 8 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM8_OC5_COMP1"/>
		<PossibleValue Action="Disable" Comment="Timer 4 Output Compare 3" Condition="!Semaphore_output_Channel3TIM4" Diagnostic="Need to activate Timer 4 Channel 3 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM4_OC3"/>
		<PossibleValue Action="Disable" Comment="Timer 15 Output Compare 1" Condition="!Semaphore_output_Channel1TIM15" Diagnostic="Need to activate Timer 15 Channel 1 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM15_OC1"/>
	</RefParameter>
	<RefParameter Comment="Blanking Source" DefaultValue="COMP_BLANKINGSRC_NONE" Group="Output Configuration" Name="BlankingSrce" Type="list">
		<Condition Diagnostic="" Expression="($IpNumber=1) &amp; !(DIE468|STM32G4x1)"/>
		<PossibleValue Comment="None" Value="COMP_BLANKINGSRC_NONE"/>
		<PossibleValue Action="Disable" Comment="Timer 1 Output Compare 5" Condition="!Semaphore_output_Channel5TIM1" Diagnostic="Need to activate Timer 1 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM1_OC5_COMP1"/>
		<PossibleValue Action="Disable" Comment="Timer 2 Output Compare 3" Condition="!Semaphore_output_Channel3TIM2" Diagnostic="Need to activate Timer 2 Channel 3 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM2_OC3_COMP1"/>
		<PossibleValue Action="Disable" Comment="Timer 3 Output Compare 3" Condition="!Semaphore_output_Channel3TIM3" Diagnostic="Need to activate Timer 3 Channel 3 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM3_OC3_COMP1"/>
		<PossibleValue Action="Disable" Comment="Timer 8 Output Compare 5" Condition="!Semaphore_output_Channel5TIM8" Diagnostic="Need to activate Timer 8 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM8_OC5_COMP1"/>
		<PossibleValue Action="Disable" Comment="Timer 4 Output Compare 3" Condition="!Semaphore_output_Channel3TIM4" Diagnostic="Need to activate Timer 4 Channel 3 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM4_OC3"/>
		<PossibleValue Action="Disable" Comment="Timer 15 Output Compare 1" Condition="!Semaphore_output_Channel1TIM15" Diagnostic="Need to activate Timer 15 Channel 1 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM15_OC1"/>
		<PossibleValue Action="Disable" Comment="Timer 20 Output Compare 5" Condition="!Semaphore_output_Channel5TIM20" Diagnostic="Need to activate Timer 20 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM20_OC5"/>
	</RefParameter>

<RefParameter Comment="Blanking Source" DefaultValue="COMP_BLANKINGSRC_NONE" Group="Output Configuration" Name="BlankingSrce" Type="list">
		<Condition Diagnostic="" Expression="($IpNumber=2) &amp; (DIE479)"/>
		<PossibleValue Comment="None" Value="COMP_BLANKINGSRC_NONE"/>
		<PossibleValue Action="Disable" Comment="Timer 1 Output Compare 5" Condition="!Semaphore_output_Channel5TIM1" Diagnostic="Need to activate Timer 1 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM1_OC5_COMP2"/>
		<PossibleValue Action="Disable" Comment="Timer 2 Output Compare 3" Condition="!Semaphore_output_Channel3TIM2" Diagnostic="Need to activate Timer 2 Channel 3 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM2_OC3_COMP2"/>
		<PossibleValue Action="Disable" Comment="Timer 3 Output Compare 3" Condition="!Semaphore_output_Channel3TIM3" Diagnostic="Need to activate Timer 3 Channel 3 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM3_OC3_COMP2"/>
		<PossibleValue Action="Disable" Comment="Timer 8 Output Compare 5" Condition="!Semaphore_output_Channel5TIM8" Diagnostic="Need to activate Timer 8 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM8_OC5_COMP2"/>
		<PossibleValue Action="Disable" Comment="Timer 4 Output Compare 3" Condition="!Semaphore_output_Channel3TIM4" Diagnostic="Need to activate Timer 4 Channel 3 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM4_OC3"/>
		<PossibleValue Action="Disable" Comment="Timer 15 Output Compare 1" Condition="!Semaphore_output_Channel1TIM15" Diagnostic="Need to activate Timer 15 Channel 1 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM15_OC1"/>
		<PossibleValue Action="Disable" Comment="Timer 20 Output Compare 5" Condition="!Semaphore_output_Channel5TIM20" Diagnostic="Need to activate Timer 20 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM20_OC5"/>
	</RefParameter>

	<RefParameter Comment="Blanking Source" DefaultValue="COMP_BLANKINGSRC_NONE" Group="Output Configuration" Name="BlankingSrce" Type="list">
		<Condition Diagnostic="" Expression="($IpNumber=2) &amp; (DIE468|STM32G4x1)"/>
		<PossibleValue Comment="None" Value="COMP_BLANKINGSRC_NONE"/>
		<PossibleValue Action="Disable" Comment="Timer 1 Output Compare 5" Condition="!Semaphore_output_Channel5TIM1" Diagnostic="Need to activate Timer 1 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM1_OC5_COMP2"/>
		<PossibleValue Action="Disable" Comment="Timer 2 Output Compare 3" Condition="!Semaphore_output_Channel3TIM2" Diagnostic="Need to activate Timer 2 Channel 3 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM2_OC3_COMP2"/>
		<PossibleValue Action="Disable" Comment="Timer 3 Output Compare 3" Condition="!Semaphore_output_Channel3TIM3" Diagnostic="Need to activate Timer 3 Channel 3 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM3_OC3_COMP2"/>
		<PossibleValue Action="Disable" Comment="Timer 8 Output Compare 5" Condition="!Semaphore_output_Channel5TIM8" Diagnostic="Need to activate Timer 8 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM8_OC5_COMP2"/>
		<PossibleValue Action="Disable" Comment="Timer 4 Output Compare 3" Condition="!Semaphore_output_Channel3TIM4" Diagnostic="Need to activate Timer 4 Channel 3 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM4_OC3"/>
		<PossibleValue Action="Disable" Comment="Timer 15 Output Compare 1" Condition="!Semaphore_output_Channel1TIM15" Diagnostic="Need to activate Timer 15 Channel 1 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM15_OC1"/>
	</RefParameter>
	<RefParameter Comment="Blanking Source" DefaultValue="COMP_BLANKINGSRC_NONE" Group="Output Configuration" Name="BlankingSrce" Type="list">
		<Condition Diagnostic="" Expression="($IpNumber=2) &amp; !(DIE468|STM32G4x1)"/>
		<PossibleValue Comment="None" Value="COMP_BLANKINGSRC_NONE"/>
		<PossibleValue Action="Disable" Comment="Timer 1 Output Compare 5" Condition="!Semaphore_output_Channel5TIM1" Diagnostic="Need to activate Timer 1 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM1_OC5_COMP2"/>
		<PossibleValue Action="Disable" Comment="Timer 2 Output Compare 3" Condition="!Semaphore_output_Channel3TIM2" Diagnostic="Need to activate Timer 2 Channel 3 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM2_OC3_COMP2"/>
		<PossibleValue Action="Disable" Comment="Timer 3 Output Compare 3" Condition="!Semaphore_output_Channel3TIM3" Diagnostic="Need to activate Timer 3 Channel 3 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM3_OC3_COMP2"/>
		<PossibleValue Action="Disable" Comment="Timer 8 Output Compare 5" Condition="!Semaphore_output_Channel5TIM8" Diagnostic="Need to activate Timer 8 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM8_OC5_COMP2"/>
		<PossibleValue Action="Disable" Comment="Timer 4 Output Compare 3" Condition="!Semaphore_output_Channel3TIM4" Diagnostic="Need to activate Timer 4 Channel 3 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM4_OC3"/>
		<PossibleValue Action="Disable" Comment="Timer 15 Output Compare 1" Condition="!Semaphore_output_Channel1TIM15" Diagnostic="Need to activate Timer 15 Channel 1 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM15_OC1"/>
		<PossibleValue Action="Disable" Comment="Timer 20 Output Compare 5" Condition="!Semaphore_output_Channel5TIM20" Diagnostic="Need to activate Timer 20 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM20_OC5"/>
	</RefParameter>

<RefParameter Comment="Blanking Source" DefaultValue="COMP_BLANKINGSRC_NONE" Group="Output Configuration" Name="BlankingSrce" Type="list">
		<Condition Diagnostic="" Expression="($IpNumber=3) &amp; (DIE479)"/>
		<PossibleValue Comment="None" Value="COMP_BLANKINGSRC_NONE"/>
		<PossibleValue Action="Disable" Comment="Timer 1 Output Compare 5" Condition="!Semaphore_output_Channel5TIM1" Diagnostic="Need to activate Timer 1 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM1_OC5_COMP3"/>
		<PossibleValue Action="Disable" Comment="Timer 2 Output Compare 4" Condition="!Semaphore_output_Channel4TIM2" Diagnostic="Need to activate Timer 2 Channel 4 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM2_OC4_COMP3"/>
		<PossibleValue Action="Disable" Comment="Timer 3 Output Compare 3" Condition="!Semaphore_output_Channel3TIM3" Diagnostic="Need to activate Timer 3 Channel 3 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM3_OC3_COMP3"/>
		<PossibleValue Action="Disable" Comment="Timer 8 Output Compare 5" Condition="!Semaphore_output_Channel5TIM8" Diagnostic="Need to activate Timer 8 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM8_OC5_COMP3"/>
		<PossibleValue Action="Disable" Comment="Timer 4 Output Compare 3" Condition="!Semaphore_output_Channel3TIM4" Diagnostic="Need to activate Timer 4 Channel 3 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM4_OC3"/>
		<PossibleValue Action="Disable" Comment="Timer 15 Output Compare 1" Condition="!Semaphore_output_Channel1TIM15" Diagnostic="Need to activate Timer 15 Channel 1 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM15_OC1"/>
		<PossibleValue Action="Disable" Comment="Timer 20 Output Compare 5" Condition="!Semaphore_output_Channel5TIM20" Diagnostic="Need to activate Timer 20 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM20_OC5"/>
	</RefParameter>
	<RefParameter Comment="Blanking Source" DefaultValue="COMP_BLANKINGSRC_NONE" Group="Output Configuration" Name="BlankingSrce" Type="list">
		<Condition Diagnostic="" Expression="($IpNumber=3) &amp; (DIE468|STM32G4x1)"/>
		<PossibleValue Comment="None" Value="COMP_BLANKINGSRC_NONE"/>
		<PossibleValue Action="Disable" Comment="Timer 1 Output Compare 5" Condition="!Semaphore_output_Channel5TIM1" Diagnostic="Need to activate Timer 1 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM1_OC5_COMP3"/>
		<PossibleValue Action="Disable" Comment="Timer 2 Output Compare 4" Condition="!Semaphore_output_Channel4TIM2" Diagnostic="Need to activate Timer 2 Channel 4 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM2_OC4_COMP3"/>
		<PossibleValue Action="Disable" Comment="Timer 3 Output Compare 3" Condition="!Semaphore_output_Channel3TIM3" Diagnostic="Need to activate Timer 3 Channel 3 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM3_OC3_COMP3"/>
		<PossibleValue Action="Disable" Comment="Timer 8 Output Compare 5" Condition="!Semaphore_output_Channel5TIM8" Diagnostic="Need to activate Timer 8 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM8_OC5_COMP3"/>
		<PossibleValue Action="Disable" Comment="Timer 4 Output Compare 3" Condition="!Semaphore_output_Channel3TIM4" Diagnostic="Need to activate Timer 4 Channel 3 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM4_OC3"/>
		<PossibleValue Action="Disable" Comment="Timer 15 Output Compare 1" Condition="!Semaphore_output_Channel1TIM15" Diagnostic="Need to activate Timer 15 Channel 1 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM15_OC1"/>
	</RefParameter>
	<RefParameter Comment="Blanking Source" DefaultValue="COMP_BLANKINGSRC_NONE" Group="Output Configuration" Name="BlankingSrce" Type="list">
		<Condition Diagnostic="" Expression="($IpNumber=3) &amp; !(DIE468|STM32G4x1)"/>
		<PossibleValue Comment="None" Value="COMP_BLANKINGSRC_NONE"/>
		<PossibleValue Action="Disable" Comment="Timer 1 Output Compare 5" Condition="!Semaphore_output_Channel5TIM1" Diagnostic="Need to activate Timer 1 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM1_OC5_COMP3"/>
		<PossibleValue Action="Disable" Comment="Timer 2 Output Compare 4" Condition="!Semaphore_output_Channel4TIM2" Diagnostic="Need to activate Timer 2 Channel 4 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM2_OC4_COMP3"/>
		<PossibleValue Action="Disable" Comment="Timer 3 Output Compare 3" Condition="!Semaphore_output_Channel3TIM3" Diagnostic="Need to activate Timer 3 Channel 3 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM3_OC3_COMP3"/>
		<PossibleValue Action="Disable" Comment="Timer 8 Output Compare 5" Condition="!Semaphore_output_Channel5TIM8" Diagnostic="Need to activate Timer 8 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM8_OC5_COMP3"/>
		<PossibleValue Action="Disable" Comment="Timer 4 Output Compare 3" Condition="!Semaphore_output_Channel3TIM4" Diagnostic="Need to activate Timer 4 Channel 3 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM4_OC3"/>
		<PossibleValue Action="Disable" Comment="Timer 15 Output Compare 1" Condition="!Semaphore_output_Channel1TIM15" Diagnostic="Need to activate Timer 15 Channel 1 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM15_OC1"/>
		<PossibleValue Action="Disable" Comment="Timer 20 Output Compare 5" Condition="!Semaphore_output_Channel5TIM20" Diagnostic="Need to activate Timer 20 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM20_OC5"/>
	</RefParameter>


<RefParameter Comment="Blanking Source" DefaultValue="COMP_BLANKINGSRC_NONE" Group="Output Configuration" Name="BlankingSrce" Type="list">
		<Condition Diagnostic="" Expression="($IpNumber=4) &amp; (DIE479)"/>
		<PossibleValue Comment="None" Value="COMP_BLANKINGSRC_NONE"/>
		<PossibleValue Action="Disable" Comment="Timer 1 Output Compare 5" Condition="!Semaphore_output_Channel5TIM1" Diagnostic="Need to activate Timer 1 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM1_OC5_COMP4"/>
		<PossibleValue Action="Disable" Comment="Timer 3 Output Compare 4" Condition="!Semaphore_output_Channel4TIM3" Diagnostic="Need to activate Timer 3 Channel 4 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM3_OC4_COMP4"/>
		<PossibleValue Action="Disable" Comment="Timer 8 Output Compare 5" Condition="!Semaphore_output_Channel5TIM8" Diagnostic="Need to activate Timer 8 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM8_OC5_COMP4"/>
		<PossibleValue Action="Disable" Comment="Timer 15 Output Compare 1" Condition="!Semaphore_output_Channel1TIM15" Diagnostic="Need to activate Timer 15 Channel 1 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM15_OC1_COMP4"/>
		<PossibleValue Action="Disable" Comment="Timer 4 Output Compare 3" Condition="!Semaphore_output_Channel3TIM4" Diagnostic="Need to activate Timer 4 Channel 3 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM4_OC3"/>
		<PossibleValue Action="Disable" Comment="Timer 15 Output Compare 1" Condition="!Semaphore_output_Channel1TIM15" Diagnostic="Need to activate Timer 15 Channel 1 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM15_OC1"/>
		<PossibleValue Action="Disable" Comment="Timer 20 Output Compare 5" Condition="!Semaphore_output_Channel5TIM20" Diagnostic="Need to activate Timer 20 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM20_OC5"/>
	</RefParameter>
	<RefParameter Comment="Blanking Source" DefaultValue="COMP_BLANKINGSRC_NONE" Group="Output Configuration" Name="BlankingSrce" Type="list">
		<Condition Diagnostic="" Expression="($IpNumber=4) &amp; (DIE468|STM32G4x1)"/>
		<PossibleValue Comment="None" Value="COMP_BLANKINGSRC_NONE"/>
		<PossibleValue Action="Disable" Comment="Timer 1 Output Compare 5" Condition="!Semaphore_output_Channel5TIM1" Diagnostic="Need to activate Timer 1 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM1_OC5_COMP4"/>
		<PossibleValue Action="Disable" Comment="Timer 3 Output Compare 4" Condition="!Semaphore_output_Channel4TIM3" Diagnostic="Need to activate Timer 3 Channel 4 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM3_OC4_COMP4"/>
		<PossibleValue Action="Disable" Comment="Timer 8 Output Compare 5" Condition="!Semaphore_output_Channel5TIM8" Diagnostic="Need to activate Timer 8 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM8_OC5_COMP4"/>
		<PossibleValue Action="Disable" Comment="Timer 15 Output Compare 1" Condition="!Semaphore_output_Channel1TIM15" Diagnostic="Need to activate Timer 15 Channel 1 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM15_OC1_COMP4"/>
		<PossibleValue Action="Disable" Comment="Timer 4 Output Compare 3" Condition="!Semaphore_output_Channel3TIM4" Diagnostic="Need to activate Timer 4 Channel 3 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM4_OC3"/>
		<PossibleValue Action="Disable" Comment="Timer 15 Output Compare 1" Condition="!Semaphore_output_Channel1TIM15" Diagnostic="Need to activate Timer 15 Channel 1 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM15_OC1"/>
	</RefParameter>
	<RefParameter Comment="Blanking Source" DefaultValue="COMP_BLANKINGSRC_NONE" Group="Output Configuration" Name="BlankingSrce" Type="list">
		<Condition Diagnostic="" Expression="($IpNumber=4) &amp; !(DIE468|STM32G4x1)"/>
		<PossibleValue Comment="None" Value="COMP_BLANKINGSRC_NONE"/>
		<PossibleValue Action="Disable" Comment="Timer 1 Output Compare 5" Condition="!Semaphore_output_Channel5TIM1" Diagnostic="Need to activate Timer 1 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM1_OC5_COMP4"/>
		<PossibleValue Action="Disable" Comment="Timer 3 Output Compare 4" Condition="!Semaphore_output_Channel4TIM3" Diagnostic="Need to activate Timer 3 Channel 4 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM3_OC4_COMP4"/>
		<PossibleValue Action="Disable" Comment="Timer 8 Output Compare 5" Condition="!Semaphore_output_Channel5TIM8" Diagnostic="Need to activate Timer 8 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM8_OC5_COMP4"/>
		<PossibleValue Action="Disable" Comment="Timer 15 Output Compare 1" Condition="!Semaphore_output_Channel1TIM15" Diagnostic="Need to activate Timer 15 Channel 1 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM15_OC1_COMP4"/>
		<PossibleValue Action="Disable" Comment="Timer 4 Output Compare 3" Condition="!Semaphore_output_Channel3TIM4" Diagnostic="Need to activate Timer 4 Channel 3 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM4_OC3"/>
		<PossibleValue Action="Disable" Comment="Timer 15 Output Compare 1" Condition="!Semaphore_output_Channel1TIM15" Diagnostic="Need to activate Timer 15 Channel 1 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM15_OC1"/>
		<PossibleValue Action="Disable" Comment="Timer 20 Output Compare 5" Condition="!Semaphore_output_Channel5TIM20" Diagnostic="Need to activate Timer 20 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM20_OC5"/>
	</RefParameter>

	<RefParameter Comment="Blanking Source" DefaultValue="COMP_BLANKINGSRC_NONE" Group="Output Configuration" Name="BlankingSrce" Type="list">
		<Condition Diagnostic="" Expression="($IpNumber=5)"/>
		<PossibleValue Comment="None" Value="COMP_BLANKINGSRC_NONE"/>
		<PossibleValue Action="Disable" Comment="Timer 1 Output Compare 5" Condition="!Semaphore_output_Channel5TIM1" Diagnostic="Need to activate Timer 1 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM1_OC5_COMP5"/>
		<PossibleValue Action="Disable" Comment="Timer 2 Output Compare 3" Condition="!Semaphore_output_Channel3TIM2" Diagnostic="Need to activate Timer 2 Channel 3 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM2_OC3_COMP5"/>
		<PossibleValue Action="Disable" Comment="Timer 3 Output Compare 3" Condition="!Semaphore_output_Channel3TIM3" Diagnostic="Need to activate Timer 3 Channel 3 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM3_OC3_COMP5"/>
		<PossibleValue Action="Disable" Comment="Timer 8 Output Compare 5" Condition="!Semaphore_output_Channel5TIM8" Diagnostic="Need to activate Timer 8 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM8_OC5_COMP5"/>
	    <PossibleValue Action="Disable" Comment="Timer 4 Output Compare 3" Condition="!Semaphore_output_Channel3TIM4" Diagnostic="Need to activate Timer 4 Channel 3 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM4_OC3"/>
		<PossibleValue Action="Disable" Comment="Timer 15 Output Compare 1" Condition="!Semaphore_output_Channel1TIM15" Diagnostic="Need to activate Timer 15 Channel 1 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM15_OC1"/>
		<PossibleValue Action="Disable" Comment="Timer 20 Output Compare 5" Condition="!Semaphore_output_Channel5TIM20" Diagnostic="Need to activate Timer 20 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM20_OC5"/>
	</RefParameter>


	<RefParameter Comment="Blanking Source" DefaultValue="COMP_BLANKINGSRC_NONE" Group="Output Configuration" Name="BlankingSrce" Type="list">
		<Condition Diagnostic="" Expression="($IpNumber=6)"/>
		<PossibleValue Comment="None" Value="COMP_BLANKINGSRC_NONE"/>
		<PossibleValue Action="Disable" Comment="Timer 1 Output Compare 5" Condition="!Semaphore_output_Channel5TIM1" Diagnostic="Need to activate Timer 1 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM1_OC5_COMP6"/>
		<PossibleValue Action="Disable" Comment="Timer 2 Output Compare 4" Condition="!Semaphore_output_Channel4TIM2" Diagnostic="Need to activate Timer 2 Channel 4 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM2_OC4_COMP6"/>
		<PossibleValue Action="Disable" Comment="Timer 8 Output Compare 5" Condition="!Semaphore_output_Channel5TIM8" Diagnostic="Need to activate Timer 8 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM8_OC5_COMP6"/>
		<PossibleValue Action="Disable" Comment="Timer 15 Output Compare 2" Condition="!Semaphore_output_Channel2TIM15" Diagnostic="Need to activate Timer 15 Channel 2 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM15_OC2_COMP6"/>
	    <PossibleValue Action="Disable" Comment="Timer 4 Output Compare 3" Condition="!Semaphore_output_Channel3TIM4" Diagnostic="Need to activate Timer 4 Channel 3 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM4_OC3"/>
		<PossibleValue Action="Disable" Comment="Timer 15 Output Compare 1" Condition="!Semaphore_output_Channel1TIM15" Diagnostic="Need to activate Timer 15 Channel 1 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM15_OC1"/>
		<PossibleValue Action="Disable" Comment="Timer 20 Output Compare 5" Condition="!Semaphore_output_Channel5TIM20" Diagnostic="Need to activate Timer 20 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM20_OC5"/>
	</RefParameter>


	<RefParameter Comment="Blanking Source" DefaultValue="COMP_BLANKINGSRC_NONE" Group="Output Configuration" Name="BlankingSrce" Type="list">
		<Condition Diagnostic="" Expression="$IpNumber=7"/>
		<PossibleValue Comment="None" Value="COMP_BLANKINGSRC_NONE"/>
		<PossibleValue Action="Disable" Comment="Timer 1 Output Compare 5" Condition="!Semaphore_output_Channel5TIM1" Diagnostic="Need to activate Timer 1 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM1_OC5_COMP7"/>
		<PossibleValue Action="Disable" Comment="Timer 3 Output Compare 3" Condition="!Semaphore_output_Channel3TIM3" Diagnostic="Need to activate Timer 3 Channel 3 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM3_OC3_COMP7"/>
		<PossibleValue Action="Disable" Comment="Timer 8 Output Compare 5" Condition="!Semaphore_output_Channel5TIM8" Diagnostic="Need to activate Timer 8 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM8_OC5_COMP7"/>
		<PossibleValue Action="Disable" Comment="Timer 15 Output Compare 2" Condition="!Semaphore_output_Channel2TIM15" Diagnostic="Need to activate Timer 15 Channel 2 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM15_OC2_COMP7"/>
	    <PossibleValue Action="Disable" Comment="Timer 4 Output Compare 3" Condition="!Semaphore_output_Channel3TIM4" Diagnostic="Need to activate Timer 4 Channel 3 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM4_OC3"/>
		<PossibleValue Action="Disable" Comment="Timer 15 Output Compare 1" Condition="!Semaphore_output_Channel1TIM15" Diagnostic="Need to activate Timer 15 Channel 1 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM15_OC1"/>
		<PossibleValue Action="Disable" Comment="Timer 20 Output Compare 5" Condition="!Semaphore_output_Channel5TIM20" Diagnostic="Need to activate Timer 20 Channel 5 in an 'Output Compare' Mode." Value="COMP_BLANKINGSRC_TIM20_OC5"/>
	</RefParameter>


	
    <RefParameter Comment="Output Pol" DefaultValue="COMP_OUTPUTPOL_NONINVERTED" Group="Output Configuration" Name="OutputPol" Type="list">
             <PossibleValue Comment="COMP output on GPIO isn't inverted " Value="COMP_OUTPUTPOL_NONINVERTED"/>
        <PossibleValue Comment="COMP output on GPIO is inverted " Value="COMP_OUTPUTPOL_INVERTED"/>
    </RefParameter>
	
	

	<!-- NonInvertingInput is the default Mode -->
	<RefMode Abstract="true" Name="InputPlus_BaseMode">
		<ConfigForMode>Comp_Init</ConfigForMode>
		<Parameter Name="TriggerMode"/>
		<Parameter Name="Hysteresis"/>
	 <!--       <Parameter Name="DeglitcherMode"/>-->
		<Parameter Name="BlankingSrce"/>
		<Parameter Name="OutputPol"/>
	</RefMode>
	
	
	<!-- 'Input Plus' RefModes list -->
	<RefMode BaseMode="InputPlus_BaseMode" Name="INP">
		<Parameter Name="NonInvertingInput"/>
	</RefMode>
	


	<!-- 'Input Minus' RefModes list -->
	<RefMode Name="INM">
		<Parameter Name="InvertingInput"/>
	</RefMode>
	<RefMode Name="VREFINT">
		<Parameter Name="InvertingInput">
			<PossibleValue>COMP_INPUT_MINUS_VREFINT</PossibleValue>
		</Parameter>	
	</RefMode>
	<RefMode Name="VREFINT_34">
		<Parameter Name="InvertingInput">
			<PossibleValue>COMP_INPUT_MINUS_3_4VREFINT</PossibleValue>
		</Parameter>	
	</RefMode>
	<RefMode Name="VREFINT_12">
		<Parameter Name="InvertingInput">
			<PossibleValue>COMP_INPUT_MINUS_1_2VREFINT</PossibleValue>
		</Parameter>	
	</RefMode>
	<RefMode Name="VREFINT_14">
		<Parameter Name="InvertingInput">
			<PossibleValue>COMP_INPUT_MINUS_1_4VREFINT</PossibleValue>
		</Parameter>	
	</RefMode>
	<RefMode Name="INM_DAC1OUT1">
		<Parameter Name="InvertingInput">
			<PossibleValue>COMP_INPUT_MINUS_DAC1_CH1</PossibleValue>
		</Parameter>	
	</RefMode>
	<RefMode Name="INM_DAC1OUT2">
		<Parameter Name="InvertingInput">
			<PossibleValue>COMP_INPUT_MINUS_DAC1_CH2</PossibleValue>
		</Parameter>	
	</RefMode>
	<RefMode Name="INM_DAC2OUT1">
		<Parameter Name="InvertingInput">
			<PossibleValue>COMP_INPUT_MINUS_DAC2_CH1</PossibleValue>
		</Parameter>	
	</RefMode>
	<RefMode Name="INM_DAC3OUT1">
		<Parameter Name="InvertingInput">
			<PossibleValue>COMP_INPUT_MINUS_DAC3_CH1</PossibleValue>
		</Parameter>	
	</RefMode>
	<RefMode Name="INM_DAC3OUT2">
		<Parameter Name="InvertingInput">
			<PossibleValue>COMP_INPUT_MINUS_DAC3_CH2</PossibleValue>
		</Parameter>	
	</RefMode>
	<RefMode Name="INM_DAC4OUT1">
		<Parameter Name="InvertingInput">
			<PossibleValue>COMP_INPUT_MINUS_DAC4_CH1</PossibleValue>
		</Parameter>	
	</RefMode>
	<RefMode Name="INM_DAC4OUT2">
		<Parameter Name="InvertingInput">
			<PossibleValue>COMP_INPUT_MINUS_DAC4_CH2</PossibleValue>
		</Parameter>	
	</RefMode>



	
	<!-- Modes for COMP. Defined for MantaEdge (F302/303/358) -->
	<ModeLogicOperator Name="OR">
		<Mode Name="NonInvertingInput" UserName="Input [+]">
			<ModeLogicOperator Name="XOR">
				<Mode Name="INP" ShrinkName="Input [+] : INP" UserName="INP">
					<SignalLogicalOp Name="AND">
						<Signal Name="INP"/>
					</SignalLogicalOp>
					<Semaphore>$IpInstance_ExternalInputPlus</Semaphore>
	                                <Semaphore>Semaphore_$IpInstance_Enable</Semaphore>
				</Mode>
		
			</ModeLogicOperator>
			<Semaphore>$IpInstance_InputPlus</Semaphore>

		</Mode>
		
		<Mode Name="InputNeg" UserName="Input [-]">
			<ModeLogicOperator Name="XOR">
				<Mode Name="INM" UserName="INM">
					<SignalLogicalOp Name="AND">
						<Signal Name="INM"/>
					</SignalLogicalOp>
				</Mode>

				<Mode Name="INM_DAC1OUT1" UserName="DAC1 OUT1" RemoveCondition="!(($IpNumber=1)|($IpNumber=3)|($IpNumber=4))">
                                       <Semaphore>$IpInstance_DAC1Channel1</Semaphore>
					<SignalLogicalOp Name="AND">
						<Signal Name="VS_DAC1OUT1"/>
					</SignalLogicalOp>
					<Condition Diagnostic="Need to have an 'DAC Out' activated with internal connection activated" Expression="(DAC1_OUT1_ExtAndInt | DAC1_OUT1_Int)"/>
				</Mode>

                        	<Mode Name="INM_DAC1OUT2" UserName="DAC1 OUT2" RemoveCondition="!(($IpNumber=2)|($IpNumber=5))">
                                       <Semaphore>$IpInstance_DAC1Channel2</Semaphore>
					<SignalLogicalOp Name="AND">
						<Signal Name="VS_DAC1OUT2"/>
					</SignalLogicalOp>
					<Condition Diagnostic="Need to have an 'DAC Out' activated with internal connection activated" Expression="(DAC1_OUT2_ExtAndInt | DAC1_OUT2_Int)"/>

				</Mode>

                        	<Mode Name="INM_DAC2OUT1" UserName="DAC2 OUT1" RemoveCondition="!(($IpNumber=6)|($IpNumber=7))">
                                       <Semaphore>$IpInstance_DAC2Channel1</Semaphore>
					<SignalLogicalOp Name="AND">
						<Signal Name="VS_DAC2OUT1"/>
					</SignalLogicalOp>
					<Condition Diagnostic="Need to have an 'DAC Out' activated with internal connection activated" Expression="(DAC2_OUT1_ExtAndInt | DAC2_OUT1_Int)"/>
				</Mode>

                        
                        	<Mode Name="INM_DAC3OUT1" UserName="DAC3 OUT1" RemoveCondition="!(($IpNumber=1)|($IpNumber=3))">
                                       <Semaphore>$IpInstance_DAC3Channel1</Semaphore>
					<SignalLogicalOp Name="AND">
						<Signal Name="VS_DAC3OUT1"/>
					</SignalLogicalOp>
					<Condition Diagnostic="Need to have an 'DAC Out' activated with internal connection activated" Expression="(DAC3_OUT1_ExtAndInt | DAC3_OUT1_Int)"/>
				</Mode>


                        	<Mode Name="INM_DAC3OUT2" UserName="DAC3 OUT2" RemoveCondition="!(($IpNumber=2)|($IpNumber=4))">
                                       <Semaphore>$IpInstance_DAC3Channel2</Semaphore>
					<SignalLogicalOp Name="AND">
						<Signal Name="VS_DAC3OUT2"/>
					</SignalLogicalOp>
					<Condition Diagnostic="Need to have an 'DAC Out' activated with internal connection activated" Expression="(DAC3_OUT2_ExtAndInt | DAC3_OUT2_Int)"/>
				</Mode>




                        	<Mode Name="INM_DAC4OUT1" UserName="DAC4 OUT1" RemoveCondition="!(($IpNumber=5)|($IpNumber=7))">
                                       <Semaphore>$IpInstance_DAC4Channel1</Semaphore>
					<SignalLogicalOp Name="AND">
						<Signal Name="VS_DAC4OUT1"/>
					</SignalLogicalOp>
					<Condition Diagnostic="Need to have an 'DAC Out' activated with internal connection activated" Expression="(DAC4_OUT1_ExtAndInt | DAC4_OUT1_Int)"/>
				</Mode>


                        	<Mode Name="INM_DAC4OUT2" UserName="DAC4 OUT2" RemoveCondition="!($IpNumber=6)">
                                       <Semaphore>$IpInstance_DAC4Channel2</Semaphore>
					<SignalLogicalOp Name="AND">
						<Signal Name="VS_DAC4OUT2"/>
					</SignalLogicalOp>
					<Condition Diagnostic="Need to have an 'DAC Out' activated with internal connection activated" Expression="(DAC4_OUT2_ExtAndInt | DAC4_OUT2_Int)"/>
				</Mode>


		
				<Mode Name="VREFINT" UserName="Internal VRef">
                                       <Semaphore>$IpInstance_Vref</Semaphore>
					<SignalLogicalOp Name="AND">
						<Signal Name="VS_VREFINT"/>
					</SignalLogicalOp>
				</Mode>
				<Mode Name="VREFINT_34" UserName="3/4 Internal VRef">
                                       <Semaphore>$IpInstance_Vref34</Semaphore>
					<SignalLogicalOp Name="AND">
						<Signal Name="VS_VREFINT34"/>
					</SignalLogicalOp>
				</Mode>
				<Mode Name="VREFINT_12" UserName="1/2 Internal VRef">
                                       <Semaphore>$IpInstance_Vref12</Semaphore>
					<SignalLogicalOp Name="AND">
						<Signal Name="VS_VREFINT12"/>
					</SignalLogicalOp>
				</Mode>
				<Mode Name="VREFINT_14" UserName="1/4 Internal VRef">
                                       <Semaphore>$IpInstance_Vref14</Semaphore>
					<SignalLogicalOp Name="AND">
						<Signal Name="VS_VREFINT14"/>
					</SignalLogicalOp>
				</Mode>
			</ModeLogicOperator>
			<Condition Diagnostic="Need to have an INP (External Input [+]) activated" Expression="$IpInstance_InputPlus"/>
		</Mode>
		
		<Mode Name="ExternalOutput">
                   <ModeLogicOperator Name="OR">
				<Mode Name="ExternalOutput" UserName="External Output">
					<SignalLogicalOp Name="AND">
                                     	    <Signal Name="OUT"/>
 					</SignalLogicalOp>
				</Mode>
                        </ModeLogicOperator>
			<Condition Diagnostic="Need to have an INP (External Input [+]) activated" Expression="$IpInstance_InputPlus"/>
		</Mode>
               
	</ModeLogicOperator>

	
	<!-- Signals for COMP. -->
	<RefSignal IOMode="Analog" Name="INP"/>
	<RefSignal IOMode="Analog" Name="INM"/>
	<RefSignal IOMode="AlternateFunctionPushPull" Name="OUT"/>
	<RefSignal IOMode="AlternateFunctionOpenDrainAndPushPullDefaultPP" Name="$SingleInstanceTIM8_BKIN_$IpInstance"/>
	<RefSignal IOMode="AlternateFunctionOpenDrainAndPushPullDefaultPP" Name="$SingleInstanceTIM8_BKIN2_$IpInstance"/>
	<RefSignal IOMode="AlternateFunctionOpenDrainAndPushPullDefaultPP" Name="$SingleInstanceTIM1_BKIN_$IpInstance"/>
	<RefSignal IOMode="AlternateFunctionOpenDrainAndPushPullDefaultPP" Name="$SingleInstanceTIM1_BKIN2_$IpInstance"/>
	<RefSignal Name="VS_Switch" Virtual="true"/>
	<RefSignal Name="VS_VREFINT" Virtual="true"/>
	<RefSignal Name="VS_VREFINT34" Virtual="true"/>
	<RefSignal Name="VS_VREFINT12" Virtual="true"/>
	<RefSignal Name="VS_VREFINT14" Virtual="true"/>
	<RefSignal Name="VS_DAC1OUT1" Virtual="true"/>
	<RefSignal Name="VS_DAC1OUT2" Virtual="true"/>
	<RefSignal Name="VS_DAC2OUT1" Virtual="true"/>
	<RefSignal Name="VS_DAC3OUT1" Virtual="true"/>
	<RefSignal Name="VS_DAC3OUT2" Virtual="true"/>
	<RefSignal Name="VS_DAC4OUT1" Virtual="true"/>
	<RefSignal Name="VS_DAC4OUT2" Virtual="true"/>




	
	<!-- Semaphore for COMP -->
	<Semaphore>$IpInstance</Semaphore>
</IP>