<?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="V3.0" IPType="peripheral" Name="ADC" Version="aditf4_v3_0_WL_Cube" ns0:schemaLocation="http://mcd.rou.st.com/modules.php?name=mcu ../../../../../../../doc/V4/Development/Specifications/db/IP_Modes.xsd">
    <About>ADC: Analog to Digital Converter</About>
    <RefParameter Comment="Master List" DefaultValue="" Name="MasterList" Type="list" Visible="false"/>
    <!-- ADC_Settings parameters -->    
    <RefMode Comment="ADCx Settings" Group="ADC_Settings" Name="ADC_Settings">
        <ConfigForMode>ADC_RegularConfig</ConfigForMode>
        <Parameter Name="ClockPrescaler"/>
        <Parameter Name="CommonClock"/>
        <Parameter Name="Resolution"/>
        <Parameter Name="Calibration"/>

        <Parameter Name="DataAlign"/>
        <Parameter Name="ScanConvMode"/> <!-- aligned with HAL v1.2.0-->
        <Parameter Name="EOCSelection"/>
        <Parameter Name="LowPowerAutoWait"/>
        <Parameter Name="LowPowerAutoPowerOff"/><!-- aligned with HAL v1.2.0-->
        <Parameter Name="ContinuousConvMode"/>
        <Parameter Name="DiscontinuousConvMode"/>
        <Parameter Name="ExternalTrigConv"/>
        <Parameter Name="ExternalTrigConvEdge"/>
        <Parameter Name="DMAContinuousRequests"/>
        <Parameter Name="Overrun"/>
        <Parameter Name="Sequencer"/>
        <Parameter Name="SamplingTimeCommon1"/>
        <Parameter Name="SamplingTimeCommon2"/>
        <Parameter Name="OversamplingMode"/>
        <Parameter Name="RightBitShift"/>
        <Parameter Name="TriggeredMode"/>
        <Parameter Name="TriggerFrequencyMode"/>
        <Parameter Name="Ratio"/>
    </RefMode>
    
    <!-- ADC Instance parameter needed in ADC_HandleTypeDef structure in the HAL -->
    <RefParameter Comment="ADC instance" DefaultValue="ADC" Group="ADCgroup" Name="Instance" Type="list" Visible="false"/>
    
     <RefParameter Comment="Fadc Constraint" DefaultValue="35000000" Max="35000000" Min="140000" Name="FadcConstraint" Type="double" Visible="false">
         <Condition Diagnostic="" Expression="(RCC:PWR_Regulator_Voltage_Scale = PWR_REGULATOR_VOLTAGE_SCALE1)"/>
     </RefParameter>
     
     <RefParameter Comment="Fadc Constraint" DefaultValue="16000000" Max="16000000" Min="140000" Name="FadcConstraint" Type="double" Visible="false">
         <Condition Diagnostic="" Expression="(RCC:PWR_Regulator_Voltage_Scale = PWR_REGULATOR_VOLTAGE_SCALE1)"/>
     </RefParameter>
     
     <RefParameter Comment="Fadc Constraint" DefaultValue="16000000" Max="16000000" Min="140000" Name="FadcConstraint" Type="double" Visible="false"/>
    <RefParameter Comment="Common Clock" DefaultValue="+ClockPrescaler" Group="ADCgroup" Name="CommonClock" Type="list" Visible="false"  />	

	<!-- <RefParameter Comment="Common Clock" DefaultValue="+ClockPrescaler" Group="ADCgroup" Name="CommonClock" Type="list" Visible="false"  />	
    <RefParameter Comment="Fadc Constraint" DefaultValue="4000000" Max="4000000" Min="140000" Name="FadcConstraint" Type="double" Visible="false">
        <Condition Diagnostic="" Expression="(RCC:PWR_Regulator_Voltage_Scale = PWR_REGULATOR_VOLTAGE_SCALE3)"/>
    </RefParameter>
    <RefParameter Comment="Fadc Constraint" DefaultValue="8000000" Max="8000000" Min="140000" Name="FadcConstraint" Type="double" Visible="false">
        <Condition Diagnostic="" Expression="(RCC:PWR_Regulator_Voltage_Scale = PWR_REGULATOR_VOLTAGE_SCALE2)"/>
    </RefParameter>-->
    

    <!-- Possible value of Prescaler parameter -->
    <RefParameter Comment="Clock Prescaler" DefaultValue="ADC_CLOCK_SYNC_PCLK_DIV1" Group="ADCgroup" Name="ClockPrescaler" Type="list">
        <Condition Diagnostic="" Expression="!AHBCLKDivider1"/>	
        <PossibleValue Action="DISABLE" Comment="Synchronous clock mode divided by 1" Condition="!AHBCLKDivider1" Diagnostic="Internal source clock selected, this implies only that thec AHB and APB prescalers do not divide the clock to ensure that PCLK has a 50% duty cycle ." Value="ADC_CLOCK_SYNC_PCLK_DIV1"/>
        <PossibleValue Action="DISABLE" Comment="Synchronous clock mode divided by 2" Condition="ADC_CLOCK_SYNC_PCLK_DIV2_$IpInstance" Diagnostic="Prescaler divider not respecting Fadc Min Max Constraint" Value="ADC_CLOCK_SYNC_PCLK_DIV2"/>
        <PossibleValue Action="DISABLE" Comment="Synchronous clock mode divided by 4" Condition="ADC_CLOCK_SYNC_PCLK_DIV4_$IpInstance" Diagnostic="Prescaler divider not respecting Fadc Min Max Constraint" Value="ADC_CLOCK_SYNC_PCLK_DIV4"/>
        <PossibleValue Action="DISABLE" Comment="Asynchronous clock mode divided by 1" Condition="ADC_CLOCK_ASYNC_DIV1_$IpInstance" Diagnostic="Prescaler divider not respecting Fadc Min Max Constraint" Semaphore="ADC_RCC1" Value="ADC_CLOCK_ASYNC_DIV1"/>
        <PossibleValue Action="DISABLE" Comment="Asynchronous clock mode divided by 2" Condition="ADC_CLOCK_ASYNC_DIV2_$IpInstance" Diagnostic="Prescaler divider not respecting Fadc Min Max Constraint" Semaphore="ADC_RCC2" Value="ADC_CLOCK_ASYNC_DIV2"/>
        <PossibleValue Action="DISABLE" Comment="Asynchronous clock mode divided by 4" Condition="ADC_CLOCK_ASYNC_DIV4_$IpInstance" Diagnostic="Prescaler divider not respecting Fadc Min Max Constraint" Semaphore="ADC_RCC3" Value="ADC_CLOCK_ASYNC_DIV4"/>
        <PossibleValue Action="DISABLE" Comment="Asynchronous clock mode divided by 6" Condition="ADC_CLOCK_ASYNC_DIV6_$IpInstance" Diagnostic="Prescaler divider not respecting Fadc Min Max Constraint" Semaphore="ADC_RCC4" Value="ADC_CLOCK_ASYNC_DIV6"/>
        <PossibleValue Action="DISABLE" Comment="Asynchronous clock mode divided by 8" Condition="ADC_CLOCK_ASYNC_DIV8_$IpInstance" Diagnostic="Prescaler divider not respecting Fadc Min Max Constraint" Semaphore="ADC_RCC5" Value="ADC_CLOCK_ASYNC_DIV8"/>
        <PossibleValue Action="DISABLE" Comment="Asynchronous clock mode divided by 10" Condition="ADC_CLOCK_ASYNC_DIV10_$IpInstance" Diagnostic="Prescaler divider not respecting Fadc Min Max Constraint" Semaphore="ADC_RCC6" Value="ADC_CLOCK_ASYNC_DIV10"/>
        <PossibleValue Action="DISABLE" Comment="Asynchronous clock mode divided by 12" Condition="ADC_CLOCK_ASYNC_DIV12_$IpInstance" Diagnostic="Prescaler divider not respecting Fadc Min Max Constraint" Semaphore="ADC_RCC7" Value="ADC_CLOCK_ASYNC_DIV12"/>
        <PossibleValue Action="DISABLE" Comment="Asynchronous clock mode divided by 16" Condition="ADC_CLOCK_ASYNC_DIV16_$IpInstance" Diagnostic="Prescaler divider not respecting Fadc Min Max Constraint" Semaphore="ADC_RCC8" Value="ADC_CLOCK_ASYNC_DIV16"/>
        <PossibleValue Action="DISABLE" Comment="Asynchronous clock mode divided by 32" Condition="ADC_CLOCK_ASYNC_DIV32_$IpInstance" Diagnostic="Prescaler divider not respecting Fadc Min Max Constraint" Semaphore="ADC_RCC9" Value="ADC_CLOCK_ASYNC_DIV32"/>
        <PossibleValue Action="DISABLE" Comment="Asynchronous clock mode divided by 64" Condition="ADC_CLOCK_ASYNC_DIV64_$IpInstance" Diagnostic="Prescaler divider not respecting Fadc Min Max Constraint" Semaphore="ADC_RCC10" Value="ADC_CLOCK_ASYNC_DIV64"/>
        <PossibleValue Action="DISABLE" Comment="Asynchronous clock mode divided by 128" Condition="ADC_CLOCK_ASYNC_DIV128_$IpInstance" Diagnostic="Prescaler divider not respecting Fadc Min Max Constraint" Semaphore="ADC_RCC11" Value="ADC_CLOCK_ASYNC_DIV128"/>
        <PossibleValue Action="DISABLE" Comment="Asynchronous clock mode divided by 256" Condition="ADC_CLOCK_ASYNC_DIV256_$IpInstance" Diagnostic="Prescaler divider not respecting Fadc Min Max Constraint" Semaphore="ADC_RCC12" Value="ADC_CLOCK_ASYNC_DIV256"/>
        <Description>frequency of the clock to the ADC. The clock is common for all the ADCs.</Description>
    </RefParameter>
    <RefParameter Comment="Clock Prescaler" DefaultValue="ADC_CLOCK_SYNC_PCLK_DIV1" Group="ADCgroup" Name="ClockPrescaler" Type="list">
        <PossibleValue Action="DISABLE" Comment="Synchronous clock mode divided by 1" Condition="ADC_CLOCK_SYNC_PCLK_DIV1_$IpInstance" Diagnostic="Prescaler divider not respecting Fadc Min Max Constraint" Value="ADC_CLOCK_SYNC_PCLK_DIV1"/>
        <PossibleValue Action="DISABLE" Comment="Synchronous clock mode divided by 2" Condition="ADC_CLOCK_SYNC_PCLK_DIV2_$IpInstance" Diagnostic="Prescaler divider not respecting Fadc Min Max Constraint" Value="ADC_CLOCK_SYNC_PCLK_DIV2"/>
        <PossibleValue Action="DISABLE" Comment="Synchronous clock mode divided by 4" Condition="ADC_CLOCK_SYNC_PCLK_DIV4_$IpInstance" Diagnostic="Prescaler divider not respecting Fadc Min Max Constraint" Value="ADC_CLOCK_SYNC_PCLK_DIV4"/>
        <PossibleValue Action="DISABLE" Comment="Asynchronous clock mode divided by 1" Condition="ADC_CLOCK_ASYNC_DIV1_$IpInstance" Diagnostic="Prescaler divider not respecting Fadc Min Max Constraint" Semaphore="ADC_RCC1" Value="ADC_CLOCK_ASYNC_DIV1"/>
        <PossibleValue Action="DISABLE" Comment="Asynchronous clock mode divided by 2" Condition="ADC_CLOCK_ASYNC_DIV2_$IpInstance" Diagnostic="Prescaler divider not respecting Fadc Min Max Constraint" Semaphore="ADC_RCC2" Value="ADC_CLOCK_ASYNC_DIV2"/>
        <PossibleValue Action="DISABLE" Comment="Asynchronous clock mode divided by 4" Condition="ADC_CLOCK_ASYNC_DIV4_$IpInstance" Diagnostic="Prescaler divider not respecting Fadc Min Max Constraint" Semaphore="ADC_RCC3" Value="ADC_CLOCK_ASYNC_DIV4"/>
        <PossibleValue Action="DISABLE" Comment="Asynchronous clock mode divided by 6" Condition="ADC_CLOCK_ASYNC_DIV6_$IpInstance" Diagnostic="Prescaler divider not respecting Fadc Min Max Constraint" Semaphore="ADC_RCC4" Value="ADC_CLOCK_ASYNC_DIV6"/>
        <PossibleValue Action="DISABLE" Comment="Asynchronous clock mode divided by 8" Condition="ADC_CLOCK_ASYNC_DIV8_$IpInstance" Diagnostic="Prescaler divider not respecting Fadc Min Max Constraint" Semaphore="ADC_RCC5" Value="ADC_CLOCK_ASYNC_DIV8"/>
        <PossibleValue Action="DISABLE" Comment="Asynchronous clock mode divided by 10" Condition="ADC_CLOCK_ASYNC_DIV10_$IpInstance" Diagnostic="Prescaler divider not respecting Fadc Min Max Constraint" Semaphore="ADC_RCC6" Value="ADC_CLOCK_ASYNC_DIV10"/>
        <PossibleValue Action="DISABLE" Comment="Asynchronous clock mode divided by 12" Condition="ADC_CLOCK_ASYNC_DIV12_$IpInstance" Diagnostic="Prescaler divider not respecting Fadc Min Max Constraint" Semaphore="ADC_RCC7" Value="ADC_CLOCK_ASYNC_DIV12"/>
        <PossibleValue Action="DISABLE" Comment="Asynchronous clock mode divided by 16" Condition="ADC_CLOCK_ASYNC_DIV16_$IpInstance" Diagnostic="Prescaler divider not respecting Fadc Min Max Constraint" Semaphore="ADC_RCC8" Value="ADC_CLOCK_ASYNC_DIV16"/>
        <PossibleValue Action="DISABLE" Comment="Asynchronous clock mode divided by 32" Condition="ADC_CLOCK_ASYNC_DIV32_$IpInstance" Diagnostic="Prescaler divider not respecting Fadc Min Max Constraint" Semaphore="ADC_RCC9" Value="ADC_CLOCK_ASYNC_DIV32"/>
        <PossibleValue Action="DISABLE" Comment="Asynchronous clock mode divided by 64" Condition="ADC_CLOCK_ASYNC_DIV64_$IpInstance" Diagnostic="Prescaler divider not respecting Fadc Min Max Constraint" Semaphore="ADC_RCC10" Value="ADC_CLOCK_ASYNC_DIV64"/>
        <PossibleValue Action="DISABLE" Comment="Asynchronous clock mode divided by 128" Condition="ADC_CLOCK_ASYNC_DIV128_$IpInstance" Diagnostic="Prescaler divider not respecting Fadc Min Max Constraint" Semaphore="ADC_RCC11" Value="ADC_CLOCK_ASYNC_DIV128"/>
        <PossibleValue Action="DISABLE" Comment="Asynchronous clock mode divided by 256" Condition="ADC_CLOCK_ASYNC_DIV256_$IpInstance" Diagnostic="Prescaler divider not respecting Fadc Min Max Constraint" Semaphore="ADC_RCC12" Value="ADC_CLOCK_ASYNC_DIV256"/>
        <Description>frequency of the clock to the ADC. The clock is common for all the ADCs.</Description>
    </RefParameter>

    <!-- RefParameter To enable clock Semaphore -->
    <RefParameter Comment="Clock Prescaler" DefaultValue="true" Group="ADCgroup" Name="EnableClockSemaphore" Type="boolean" Visible="false">
        <Condition Diagnostic="" Expression="(channelSelected)&amp;(ADC_RCC1|ADC_RCC2|ADC_RCC3|ADC_RCC4|ADC_RCC5|ADC_RCC6|ADC_RCC7|ADC_RCC8|ADC_RCC9|ADC_RCC10|ADC_RCC11|ADC_RCC12)"/>
        <PossibleValue Comment="RCC" Semaphore="ADCUsed_ForRCC" Value="true"/>
    </RefParameter>
    <RefParameter Comment="Clock Prescaler" DefaultValue="false" Group="ADCgroup" Name="EnableClockSemaphore" Type="boolean" Visible="false">
        <PossibleValue Comment="RCC" Value="false"/>
    </RefParameter>
    
    <RefParameter Comment="Calibration" DefaultValue="Disable" Group="ADCgroup" Name="Calibration" Type="list" >
        <PossibleValue Comment="Disable"  Value="Disable"/>

    </RefParameter>

    <!-- Possible Value of Resolution parameter -->
    <RefParameter Comment="Resolution" DefaultValue="ADC_RESOLUTION_12B" Group="ADCgroup" Name="Resolution" Type="list">
        <PossibleValue Comment="ADC 12-bit resolution" Semaphore="ADC_RESOLUTION12b" Value="ADC_RESOLUTION_12B"/>
        <PossibleValue Comment="ADC 10-bit resolution" Semaphore="ADC_RESOLUTION10b" Value="ADC_RESOLUTION_10B"/>
        <PossibleValue Comment="ADC 8-bit resolution" Semaphore="ADC_RESOLUTION8b" Value="ADC_RESOLUTION_8B"/>
        <PossibleValue Comment="ADC 6-bit resolution" Semaphore="ADC_RESOLUTION6b" Value="ADC_RESOLUTION_6B"/>
        <Description>Resolution of the ADC conversion</Description>
    </RefParameter>

    <!-- possible value of DataAlign parameter -->
    <RefParameter Comment="Data Alignment" DefaultValue="ADC_DATAALIGN_RIGHT" Group="ADCgroup" Name="DataAlign" Type="list">
        <PossibleValue Comment="Right alignment" Value="ADC_DATAALIGN_RIGHT"/>
        <PossibleValue Action="Disable" Comment="Left alignment" Condition="OversamplingMode_Enabled_$IpInstance" Diagnostic="The alignment mode is not available when working with oversampling: the data are always provided right-aligned" Value="ADC_DATAALIGN_LEFT"/>
        <Description>Select the alignment of the data stored after conversion.</Description>
    </RefParameter>

    <!-- Possible values of ContinuousConvMode parameter -->
    <RefParameter Comment="Continuous Conversion Mode" DefaultValue="DISABLE" Group="ADCgroup" Name="ContinuousConvMode" Type="list">
        <PossibleValue Comment="Disabled" Value="DISABLE"/>
        <PossibleValue Action="Disable" Comment="Enabled" Condition="DiscontinuousConvMode = ENABLE" Diagnostic="Continuous and Discontinuous modes could not be used at the same time" Value="ENABLE"/>
        <Description>Enable or Disable the Continuous Conversion Mode</Description>
    </RefParameter>

    <!-- Possible values of DiscontinuousConvMode parameter -->    
    <RefParameter Comment="Discontinuous Conversion Mode" DefaultValue="DISABLE" Name="DiscontinuousConvMode" Type="list">
        <PossibleValue Comment="Disabled" Value="DISABLE"/>
        <PossibleValue Action="Disable" Comment="Enabled" Condition="ContinuousConvMode = ENABLE" Diagnostic="Continuous and Discontinuous modes could not be used at the same time" Value="ENABLE"/>
        <Description>Enable or Disable the Discontinuous Conversion Mode</Description>
    </RefParameter>

    <!-- Possible values of DMAContinuousRequests parameter -->
    <!--RefParameter Comment="DMA Continuous Requests" DefaultValue="ENABLE" Name="DMAContinuousRequests" Type="list" Group="ADCgroup">
      <Condition Diagnostic="" Expression="DMARequest_$IpInstance"/>
            <PossibleValue Comment="Enabled" Value="ENABLE" Semaphore="Semaphore_DMAContinuousRequests_Enable"/>
            <Description>Enable/Disable DMA Continuous Requests</Description>
    </RefParameter-->
       <RefParameter Comment="DMA Continuous Requests" DefaultValue="LIMITED" Group="ADCgroup" Name="DMAContinuousRequestsForConfigFile" Type="list" Visible="false">
         <Condition Diagnostic="" Expression="$IpNumber=1 &amp; DMARequest_ADC &amp; DMAContinuousRequests=DISABLE"/>
        <PossibleValue Comment="LIMITED" Value="LIMITED"/>
        <Description>Enable/Disable DMA Continuous Requests</Description>
    </RefParameter>
    <RefParameter Comment="DMA Continuous Requests" DefaultValue="UNLIMITED" Group="ADCgroup" Name="DMAContinuousRequestsForConfigFile" Type="list" Visible="false">
         <Condition Diagnostic="" Expression="$IpNumber=1 &amp; DMARequest_ADC &amp; DMAContinuousRequests=ENABLE"/>
        <PossibleValue Comment="LIMITED" Value="UNLIMITED"/>
        <Description>Enable/Disable DMA Continuous Requests</Description>
    </RefParameter>
    <RefParameter Comment="DMA Continuous Requests" DefaultValue="NONE" Group="ADCgroup" Name="DMAContinuousRequestsForConfigFile" Type="list" Visible="false">
         <Condition Diagnostic="" Expression="$IpNumber=1 &amp; !DMARequest_ADC &amp; DMAContinuousRequests=DISABLE"/>
        <PossibleValue Comment="none" Value="NONE"/>
        <Description>Enable/Disable DMA Continuous Requests</Description>
    </RefParameter>
    <RefParameter Comment="DMA Continuous Requests" DefaultValue="NONE" Group="ADCgroup" Name="DMAContinuousRequestsForConfigFile" Type="list" Visible="false">
        <PossibleValue Comment="none" Value="NONE"/>
        <Description>Enable/Disable DMA Continuous Requests</Description>
    </RefParameter>
    <RefParameter Comment="DMA Continuous Requests" DefaultValue="DISABLE" Group="ADCgroup" Name="DMAContinuousRequests" Type="list">
        <PossibleValue Comment="Disabled" Value="DISABLE"/>
        <PossibleValue Comment="Enabled" Semaphore="Semaphore_DMAContinuousRequests_Enable" Value="ENABLE" Action="Remove" Condition="!DMARequest_ADC" Diagnostic="The DMAContinuousRequests parameter can be set to enable only if DMA request is active in DMA settings tab"/>
        <Description>Enable/Disable DMA Continuous Requests</Description>
    </RefParameter>

    <!-- Possible values of EOCSelection parameter -->
    <RefParameter Comment="End Of Conversion Selection" DefaultValue="ADC_EOC_SINGLE_CONV" Group="ADCgroup" Name="EOCSelection" Type="list">
        <PossibleValue Comment="End of single conversion" Value="ADC_EOC_SINGLE_CONV"/>
        <PossibleValue Comment="End of sequence of conversion" Value="ADC_EOC_SEQ_CONV"/>
        <Description>Regular channel end of conversion selection</Description>
    </RefParameter>

    <!-- Possible values of Overrun parameter -->
    <RefParameter Comment="Overrun behaviour" DefaultValue="ADC_OVR_DATA_PRESERVED" Group="ADCgroup" Name="Overrun" Type="list">
        <PossibleValue Comment="Overrun data preserved" Value="ADC_OVR_DATA_PRESERVED"/>
        <PossibleValue Comment="Overrun data overwritten" Value="ADC_OVR_DATA_OVERWRITTEN"/>
        <Description>Select the behaviour in case of overrun</Description>
    </RefParameter>

    <!-- LowPowerAutoWait -->
    <RefParameter Comment="Low Power Auto Wait" DefaultValue="DISABLE" Name="LowPowerAutoWait" Type="list">
        <PossibleValue Comment="Disabled" Value="DISABLE"/>
        <PossibleValue Comment="Enabled" Value="ENABLE"/>
        <Description>Specifies the usage of dynamic low power Auto Delay: New conversion start only when the previous conversion (for regular channel) is completed.</Description>
    </RefParameter>
    
    <RefParameter Comment="Number Of Conversion" DefaultValue="1" Group="ADCgroup" Max="8" Min="1" Name="NbrOfConversion" Type="integer">
        <Condition Diagnostic="" Expression="Sequencer=FULLY_CONFIGURABLE &amp; EnableRegularConversion=ENABLE"/>
        <Description>Number of regular channels to be converted</Description>
    </RefParameter>
    <RefParameter Comment="Number Of Conversion" DefaultValue="0" Group="ADCgroup"  Name="NbrOfConversion" Type="list" Visible="false">
        <!--Condition Diagnostic="" Expression="Sequencer=NOT_FULLY_CONFIGURABLE"/-->
        <Description>Number of regular channels to be converted</Description>
    </RefParameter>
    
    <!--RefParameter Comment="Number Of Conversion" DefaultValue="0" Group="ADCgroup"  Name="NbrOfConversion" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="$IpInstance_NOTCONFIGURABLE"/>
        <Description>Number of regular channels to be converted</Description>
    </RefParameter-->
    <RefParameter Comment="Number Of Conversion Flag" DefaultValue="0" Group="ADCgroup" Max="1" Min="0" Name="NbrOfConversionFlag" Type="integer" Visible="false"/>
    
    <!--RefParameter Comment="Number Of Conversion" DefaultValue="null" Group="ADCgroup"  Name="NbrOfConversion" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="$IpInstance_NOTCONFIGURABLE"/>
        <Description>Number of regular channels to be converted</Description>
    </RefParameter-->

    <!--RefParameter Comment="Number Of Conversion" DefaultValue="1" Group="ADCgroup" Max="8" Min="1" Name="NbrOfConversion" Type="integer" Visible="false">
        <Condition Diagnostic="" Expression="EnableRegularConversion=DISABLE"/>
        <Description>Number of regular channels to be converted</Description>
    </RefParameter>
    <RefParameter Comment="Number Of Conversion" DefaultValue="1" Group="ADCgroup" Max="8" Min="1" Name="NbrOfConversion" Type="integer">
        <Condition Diagnostic="" Expression="Sequencer=FULLY_CONFIGURABLE"/>
        <Description>Number of regular channels to be converted</Description>
    </RefParameter-->
    

    <!-- AutoOff -->
    <RefParameter Comment="Auto Off" DefaultValue="DISABLE" Name="LowPowerAutoPowerOff" Type="list"><!-- aligned with HAL v1.2.0-->
        <PossibleValue Comment="Disabled" Value="DISABLE"/>
        <PossibleValue Comment="Enabled" Value="ENABLE"/>
        <Description>The ADC is always powered off when not converting and automatically wakes-up when a conversion is started</Description>
    </RefParameter>

    <RefParameter Comment="Oversampling Mode" DefaultValue="DISABLE" Group="ADCgroup" Name="OversamplingMode" Type="list">
        <PossibleValue Comment="Disabled" Value="DISABLE"/>
        <PossibleValue Comment="Enabled" Semaphore="OversamplingMode_Enabled_$IpInstance" Value="ENABLE"/>
        <Description>Enable/Disable the over sampling mode</Description>
    </RefParameter>

    <RefParameter Comment="Right Bit Shift" DefaultValue="null" Group="ADCgroup" Name="RightBitShift" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="OversamplingMode=DISABLE"/>
    </RefParameter>
    <RefParameter Comment="Right Bit Shift" DefaultValue="ADC_RIGHTBITSHIFT_NONE" Group="ADCgroup" Name="RightBitShift" Type="list">
        <PossibleValue Comment="No bit shift" Semaphore="REG_RIGHTBITSHIFT_NONE_$IpInstance" Value="ADC_RIGHTBITSHIFT_NONE"/>
        <PossibleValue Comment="1 bit shift" Semaphore="REG_RIGHTBITSHIFT1_$IpInstance" Value="ADC_RIGHTBITSHIFT_1"/>
        <PossibleValue Comment="2 bit shift" Semaphore="REG_RIGHTBITSHIFT2_$IpInstance" Value="ADC_RIGHTBITSHIFT_2"/>
        <PossibleValue Comment="3 bit shift" Semaphore="REG_RIGHTBITSHIFT3_$IpInstance" Value="ADC_RIGHTBITSHIFT_3"/>
        <PossibleValue Comment="4 bit shift" Semaphore="REG_RIGHTBITSHIFT4_$IpInstance" Value="ADC_RIGHTBITSHIFT_4"/>
        <PossibleValue Comment="5 bit shift" Semaphore="REG_RIGHTBITSHIFT5_$IpInstance" Value="ADC_RIGHTBITSHIFT_5"/>
        <PossibleValue Comment="6 bit shift" Semaphore="REG_RIGHTBITSHIFT6_$IpInstance" Value="ADC_RIGHTBITSHIFT_6"/>
        <PossibleValue Comment="7 bit shift" Semaphore="REG_RIGHTBITSHIFT7_$IpInstance" Value="ADC_RIGHTBITSHIFT_7"/>
        <PossibleValue Comment="8 bit shift" Semaphore="REG_RIGHTBITSHIFT8_$IpInstance" Value="ADC_RIGHTBITSHIFT_8"/>
        <Description>Configures the division coefficient for the Oversampler</Description>
    </RefParameter>

    <RefParameter Comment="Ratio" DefaultValue="null" Group="ADCgroup" Name="Ratio" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="OversamplingMode=DISABLE"/>
    </RefParameter>
    <RefParameter Comment="Ratio" DefaultValue="ADC_OVERSAMPLING_RATIO_2" Group="ADCgroup" Name="Ratio" Type="list">
        <PossibleValue Comment="Oversampling ratio 2x" Value="ADC_OVERSAMPLING_RATIO_2"/>
        <PossibleValue Comment="Oversampling ratio 4x" Value="ADC_OVERSAMPLING_RATIO_4"/>
        <PossibleValue Comment="Oversampling ratio 8x" Value="ADC_OVERSAMPLING_RATIO_8"/>
        <PossibleValue Comment="Oversampling ratio 16x" Value="ADC_OVERSAMPLING_RATIO_16"/>
        <PossibleValue Action="Disable" Comment="Oversampling ratio 32x" Condition="REG_RIGHTBITSHIFT_NONE_$IpInstance" Diagnostic="shift for oversampling should be equal or greater than 1" Value="ADC_OVERSAMPLING_RATIO_32"/>
        <PossibleValue Action="Disable" Comment="Oversampling ratio 64x" Condition="REG_RIGHTBITSHIFT_NONE_$IpInstance |REG_RIGHTBITSHIFT1_$IpInstance" Diagnostic="Shift for oversampling should be equal or greater than 2" Value="ADC_OVERSAMPLING_RATIO_64"/>
        <PossibleValue Action="Disable" Comment="Oversampling ratio 128x" Condition="REG_RIGHTBITSHIFT_NONE_$IpInstance |REG_RIGHTBITSHIFT1_$IpInstance | REG_RIGHTBITSHIFT2_$IpInstance " Diagnostic="Shift for oversampling should be equal or greater than 3" Value="ADC_OVERSAMPLING_RATIO_128"/>
        <PossibleValue Action="Disable" Comment="Oversampling ratio 256x" Condition="REG_RIGHTBITSHIFT_NONE_$IpInstance |REG_RIGHTBITSHIFT1_$IpInstance | REG_RIGHTBITSHIFT2_$IpInstance | REG_RIGHTBITSHIFT3_$IpInstance" Diagnostic="Shift for oversampling should be equal or greater than 4" Value="ADC_OVERSAMPLING_RATIO_256"/>
        <Description>Configure the Oversampling ratio</Description>
    </RefParameter>

    <RefParameter Comment="Triggered Mode" DefaultValue="null" Group="ADCgroup" Name="TriggeredMode" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="OversamplingMode=DISABLE"/>
    </RefParameter>
    <RefParameter Comment="Triggered Mode" DefaultValue="ADC_TRIGGEREDMODE_SINGLE_TRIGGER" Group="ADCgroup" Name="TriggeredMode" Type="list">
        <PossibleValue Comment="Single trigger" Value="ADC_TRIGGEREDMODE_SINGLE_TRIGGER"/>
        <PossibleValue Comment="Multi trigger" Value="ADC_TRIGGEREDMODE_MULTI_TRIGGER"/>
        <Description>The regular triggered Oversampling mode</Description>
    </RefParameter>

    <RefParameter Comment="Sequencer" DefaultValue="FULLY_CONFIGURABLE" Group="ADCgroup" Name="Sequencer" Type="list">
        <PossibleValue Comment="Sequencer set to fully configurable" Value="FULLY_CONFIGURABLE" />
        <PossibleValue Comment="Sequencer set to not fully configurable" Value="NOT_FULLY_CONFIGURABLE" Semaphore="$IpInstance_NOTCONFIGURABLE"/>
        <Description></Description> 
    </RefParameter>

    <!-- RefMode of ADC_Regular_ConversionMode -->
    <RefMode Abstract="true" Comment="Regular Conversion Settings" Group="ADC_Regular_ConversionMode" Name="ADC_Regular_ConversionMode">
        <!--  <Parameter Name="SamplingTime"/> -->
        <Parameter Name="EnableRegularConversion"/>
        <Parameter Name="NbrOfConversionFlag"/>
        <Parameter Name="NbrOfConversion"/>

    </RefMode>

    <!-- Possible Value of SamplingTime parameters  -->
    <RefParameter Comment="Sampling Time" DefaultValue="__NULL" Group="ADCChannel" Name="SamplingTime" Type="list">
       <Condition  Expression="Sequencer = NOT_FULLY_CONFIGURABLE " Diagnostic=""/>        
       <Description>Regular Channel x sampling time selection</Description>
    </RefParameter>
    <RefParameter Comment="Sampling Time" DefaultValue="ADC_SAMPLINGTIME_COMMON_1" Group="ADCChannel" Name="SamplingTime" Type="list">
        <PossibleValue Comment="Sampling time common 1" Value="ADC_SAMPLINGTIME_COMMON_1" />
        <PossibleValue Comment="Sampling time common 2" Value="ADC_SAMPLINGTIME_COMMON_2"/>
       <Description>Regular Channel x sampling time selection</Description>
    </RefParameter>

    <RefParameter Comment="Sampling Time common 1" DefaultValue="ADC_SAMPLINGTIME_COMMON_1" Group="ADCChannel" Name="SAMPLINGTIME_COMMON1" Type="list">
        <PossibleValue Comment="Sampling time common 1" Value="ADC_SAMPLINGTIME_COMMON_1" />
   </RefParameter>
    <RefParameter Comment="Sampling Time  common 2" DefaultValue="ADC_SAMPLINGTIME_COMMON_2" Group="ADCChannel" Name="SAMPLINGTIME_COMMON2" Type="list">
        <PossibleValue Comment="Sampling time common 2" Value="ADC_SAMPLINGTIME_COMMON_2" />
   </RefParameter>

    <!-- ExternalTrigConv -->
    <RefParameter Comment="External Trigger Conversion Source" DefaultValue="ADC_EXTERNALTRIG_EXT_IT11" Group="ADCgroup" Name="ExternalTrigConv" Type="list">
        <Condition Diagnostic="EXTI Line11 is used for External-Trigger-for-Regular-conversion mode." Expression="(RegularExternalTrigger)"/>
        <PossibleValue Comment="EXTI Line11" Value="ADC_EXTERNALTRIG_EXT_IT11"/>
    </RefParameter>
    <RefParameter Comment="External Trigger Conversion Source" DefaultValue="ADC_SOFTWARE_START" Group="ADCgroup" Name="ExternalTrigConv" Type="list">
        <PossibleValue Comment="Regular Conversion launched by software" Value="ADC_SOFTWARE_START"/>
        <PossibleValue Action="Remove" Comment="Timer 1 Trigger Out event 2" Condition="!TIM1_Exist" Diagnostic="" Value="ADC_EXTERNALTRIG_T1_TRGO2"/>
        <PossibleValue Action="Remove" Comment="Timer 1 Capture Compare 4 event" Condition="!TIM1_Exist" Diagnostic="" Value="ADC_EXTERNALTRIG_T1_CC4"/>
        <PossibleValue Action="Remove" Comment="Timer 2 Trigger Out event" Condition="!TIM2_Exist" Diagnostic="" Value="ADC_EXTERNALTRIG_T2_TRGO"/>
        <PossibleValue Action="Remove" Comment="Timer 3 Trigger Out event" Condition="!TIM3_Exist" Diagnostic="" Value="ADC_EXTERNALTRIG_T3_TRGO"/>
        <PossibleValue Action="Remove" Comment="Timer 6 Trigger Out event" Condition="!TIM6_Exist" Diagnostic="" Value="ADC_EXTERNALTRIG_T6_TRGO"/>
        <PossibleValue Action="Remove" Comment="Timer 15 Trigger Out event" Condition="!TIM15_Exist" Diagnostic="" Value="ADC_EXTERNALTRIG_T15_TRGO"/>
        <Description>Select the external event used to trigger the start of conversion of a regular group</Description>
    </RefParameter>

    <!-- ExternalTrigConvEdge -->
    <RefParameter Comment="External Trigger Conversion Edge" DefaultValue="ADC_EXTERNALTRIGCONVEDGE_NONE" Group="ADCgroup" Name="ExternalTrigConvEdge" Type="list">
        <Condition Diagnostic="" Expression="ExternalTrigConv = ADC_SOFTWARE_START"/>
        <PossibleValue Comment="None" Value="ADC_EXTERNALTRIGCONVEDGE_NONE"/>
        <Description>Select the external trigger polarity and enable the trigger of a regular group: When an external trigger is selected for ADC regular conversion, only the rising edge of the signal can start the conversion.</Description>
    </RefParameter>
    <RefParameter Comment="External Trigger Conversion Edge" DefaultValue="ADC_EXTERNALTRIGCONVEDGE_RISING" Group="ADCgroup" Name="ExternalTrigConvEdge" Type="list">
        <PossibleValue Comment="Trigger detection on the rising edge" Value="ADC_EXTERNALTRIGCONVEDGE_RISING"/>
        <PossibleValue Comment="Trigger detection on the falling edge" Value="ADC_EXTERNALTRIGCONVEDGE_FALLING"/>
        <PossibleValue Comment="Trigger detection on the falling and rising edge" Value="ADC_EXTERNALTRIGCONVEDGE_RISINGFALLING"/>
        <Description>Select the external trigger polarity and enable the trigger of a regular group: When an external trigger is selected for ADC regular conversion, only the rising edge of the signal can start the conversion.</Description>
    </RefParameter>

    <RefParameter Comment="Trigger Frequency" DefaultValue="ADC_TRIGGER_FREQ_HIGH" Group="ADCgroup" Name="TriggerFrequencyMode" Type="list">
        <PossibleValue Comment="High frequency" Value="ADC_TRIGGER_FREQ_HIGH"/>
        <PossibleValue Comment="Low frequency" Value="ADC_TRIGGER_FREQ_LOW"/>
        <Description>ADC trigger frequency mode must be set to low frequency when a duration is exceeded before ADC conversion start trigger event (between ADC enable and ADC conversion start trigger event or between two ADC conversion start trigger event).</Description>
    </RefParameter>

    <RefParameter Comment="Enable Regular Conversions" DefaultValue="DISABLE" Group="ADCgroup" Name="EnableRegularConversion" Type="list" Visible="false">
        <Condition Expression="Sequencer=NOT_FULLY_CONFIGURABLE" Diagnostic=""/>
        <PossibleValue Comment="Disable" Value="DISABLE"/>
        <Description>Enable/Disable Regular Conversion</Description> 
    </RefParameter>
    <RefParameter Comment="Enable Regular Conversions" DefaultValue="DISABLE" Group="ADCgroup" Name="EnableRegularConversion" Type="list">
        <PossibleValue Comment="Enable" Value="ENABLE"/>
        <PossibleValue Comment="Disable" Value="DISABLE"/>
        <Description>Enable/Disable Regular Conversion</Description> 
    </RefParameter>

    <RefParameter Comment="SamplingTime Common 1" DefaultValue="ADC_SAMPLETIME_1CYCLE_5" Group="ADCgroup" Name="SamplingTimeCommon1" Type="list">
        <PossibleValue Comment="1.5 Cycles" Value="ADC_SAMPLETIME_1CYCLE_5"/>
        <PossibleValue Comment="3.5 Cycles" Value="ADC_SAMPLETIME_3CYCLES_5"/>
        <PossibleValue Comment="7.5 Cycles" Value="ADC_SAMPLETIME_7CYCLES_5"/>
        <PossibleValue Comment="12.5 Cycles" Value="ADC_SAMPLETIME_12CYCLES_5"/>
        <PossibleValue Comment="19.5 Cycles" Value="ADC_SAMPLETIME_19CYCLES_5"/>
        <PossibleValue Comment="39.5 Cycles" Value="ADC_SAMPLETIME_39CYCLES_5"/>
        <PossibleValue Comment="79.5 Cycles" Value="ADC_SAMPLETIME_79CYCLES_5"/>
        <PossibleValue Comment="160.5 Cycles" Value="ADC_SAMPLETIME_160CYCLES_5"/>
        <Description>Set sampling time common to a group of channels.</Description>
    </RefParameter>  

    <RefParameter Comment="SamplingTime Common 2" DefaultValue="ADC_SAMPLETIME_1CYCLE_5" Group="ADCgroup" Name="SamplingTimeCommon2" Type="list">
        <Condition Diagnostic="" Expression="Sequencer=FULLY_CONFIGURABLE"/>
        <PossibleValue Comment="1.5 Cycles" Value="ADC_SAMPLETIME_1CYCLE_5"/>
        <PossibleValue Comment="3.5 Cycles" Value="ADC_SAMPLETIME_3CYCLES_5"/>
        <PossibleValue Comment="7.5 Cycles" Value="ADC_SAMPLETIME_7CYCLES_5"/>
        <PossibleValue Comment="12.5 Cycles" Value="ADC_SAMPLETIME_12CYCLES_5"/>
        <PossibleValue Comment="19.5 Cycles" Value="ADC_SAMPLETIME_19CYCLES_5"/>
        <PossibleValue Comment="39.5 Cycles" Value="ADC_SAMPLETIME_39CYCLES_5"/>
        <PossibleValue Comment="79.5 Cycles" Value="ADC_SAMPLETIME_79CYCLES_5"/>
        <PossibleValue Comment="160.5 Cycles" Value="ADC_SAMPLETIME_160CYCLES_5"/>
        <Description>Set sampling time common to a group of channels.</Description>
    </RefParameter>
    <RefParameter Comment="SamplingTime Common 2" DefaultValue="__NULL" Group="ADCgroup" Name="SamplingTimeCommon2" Type="list" Visible="false">
        <PossibleValue Comment="none" Value="__NULL"/>
        <Description>Set sampling time common to a group of channels.</Description>
    </RefParameter>  

    <RefParameter Comment="Channel" DefaultValue="" Group="ADCChannel" Name="Channel" Type="list" >
        <!--Condition Diagnostic="" Expression="Sequencer=fully_configurable"/-->
        <PossibleValue Comment="Channel 0" Value="ADC_CHANNEL_0"/>
        <PossibleValue Comment="Channel 1" Value="ADC_CHANNEL_1"/>
        <PossibleValue Comment="Channel 2" Value="ADC_CHANNEL_2"/>
        <PossibleValue Comment="Channel 3" Value="ADC_CHANNEL_3"/>
        <PossibleValue Comment="Channel 4" Value="ADC_CHANNEL_4"/>
        <PossibleValue Comment="Channel 5" Value="ADC_CHANNEL_5"/>
        <PossibleValue Comment="Channel 6" Value="ADC_CHANNEL_6"/>
        <PossibleValue Comment="Channel 7" Value="ADC_CHANNEL_7"/>
        <PossibleValue Comment="Channel 8" Value="ADC_CHANNEL_8"/>
        <PossibleValue Comment="Channel 9" Value="ADC_CHANNEL_9"/>
        <PossibleValue Comment="Channel 10" Value="ADC_CHANNEL_10"/>
        <PossibleValue Comment="Channel 11" Value="ADC_CHANNEL_11"/>
        <PossibleValue Comment="Channel 12" Value="ADC_CHANNEL_12"/>
        <PossibleValue Comment="Channel 13" Value="ADC_CHANNEL_13"/>
        <PossibleValue Comment="Channel 14" Value="ADC_CHANNEL_14"/>
        <PossibleValue Comment="Channel 15" Value="ADC_CHANNEL_15"/>
        <PossibleValue Comment="Channel 16" Value="ADC_CHANNEL_16"/>
        <PossibleValue Comment="Channel 17" Value="ADC_CHANNEL_17"/>
        <PossibleValue Comment="Channel 18" Value="ADC_CHANNEL_18"/>
        <PossibleValue Comment="Channel Vrefint" Value="ADC_CHANNEL_VREFINT"/>
        <PossibleValue Comment="Channel Vbat" Value="ADC_CHANNEL_VBAT"/>
        <PossibleValue Comment="Channel Temperature Sensor" Value="ADC_CHANNEL_TEMPSENSOR"/>
        <PossibleValue Comment="Channel DAC1_OUT1" Value="ADC_CHANNEL_DACCH1"/>

    </RefParameter>
    <!-- List of all available channel used to -->
    <RefParameter Comment="Rank" DefaultValue="ADC_RANK_CHANNEL_NUMBER" Group="ADCChannel" Name="Rank" Type="list" Visible="false"> 
        <Condition Diagnostic="" Expression="Sequencer=NOT_FULLY_CONFIGURABLE"/>
   
    </RefParameter>
    <!-- Possible Value of Channel parameter -->
    <!--RefParameter Comment="Channel" DefaultValue="" Group="ADCChannel" Name="Channel" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="Sequencer=not_fully_configurable"/>
        <PossibleValue Comment="Channel 0" Value="ADC_CHANNEL_0"/>
        <PossibleValue Comment="Channel 1" Value="ADC_CHANNEL_1"/>
        <PossibleValue Comment="Channel 2" Value="ADC_CHANNEL_2"/>
        <PossibleValue Comment="Channel 3" Value="ADC_CHANNEL_3"/>
        <PossibleValue Comment="Channel 4" Value="ADC_CHANNEL_4"/>
        <PossibleValue Comment="Channel 5" Value="ADC_CHANNEL_5"/>
        <PossibleValue Comment="Channel 6" Value="ADC_CHANNEL_6"/>
        <PossibleValue Comment="Channel 7" Value="ADC_CHANNEL_7"/>
        <PossibleValue Comment="Channel 8" Value="ADC_CHANNEL_8"/>
        <PossibleValue Comment="Channel 9" Value="ADC_CHANNEL_9"/>
        <PossibleValue Comment="Channel 10" Value="ADC_CHANNEL_10"/>
        <PossibleValue Comment="Channel 11" Value="ADC_CHANNEL_11"/>
        <PossibleValue Comment="Channel 12" Value="ADC_CHANNEL_12"/>
        <PossibleValue Comment="Channel 13" Value="ADC_CHANNEL_13"/>
        <PossibleValue Comment="Channel 14" Value="ADC_CHANNEL_14"/>
        <PossibleValue Comment="Channel 15" Value="ADC_CHANNEL_15"/>
        <PossibleValue Comment="Channel 15" Value="ADC_CHANNEL_16"/>
        <PossibleValue Comment="Channel 15" Value="ADC_CHANNEL_17"/>
        <PossibleValue Comment="Channel 15" Value="ADC_CHANNEL_18"/>
        <PossibleValue Comment="Channel Vrefint" Value="ADC_CHANNEL_VREFINT"/>
        <PossibleValue Comment="Channel Vbat" Value="ADC_CHANNEL_VBAT"/>
        <PossibleValue Comment="Channel Temperature Sensor" Value="ADC_CHANNEL_TEMPSENSOR"/>

    </RefParameter-->

<!--
    <RefParameter Comment="Rank" DefaultValue="null" Group="ADCgroup" Max="8" Min="1" Name="Rank" Type="integer" Visible="false">
        <Condition Diagnostic="" Expression="EnableRegularConversion=DISABLE"/>
    </RefParameter>
-->
    <RefParameter Comment="Rank" DefaultValue="1" Group="ADCgroup" Max="8" Min="1" Name="Rank" Type="integer">
        <Condition Diagnostic="" Expression="Sequencer=FULLY_CONFIGURABLE"/>
        <Description>The rank in the regular group sequencer</Description>
    </RefParameter>

    <!-- ScanconvMode -->
    <RefParameter Comment="Scan Conversion Mode" DefaultValue="ADC_SCAN_ENABLE" Group="ADCgroup" Name="ScanConvMode" Type="list">
        <Condition Diagnostic="" Expression="(NbrOfConversion&gt;1) &amp; (Sequencer=FULLY_CONFIGURABLE)"/>
        <PossibleValue Comment="Enabled" Value="ADC_SCAN_ENABLE"/>
        <PossibleValue Comment="Disabled" Value="ADC_SCAN_DISABLE"/>
        <Description>Enable or Disable the Scan Conversion Mode ,
                     To enable Scan conversion Mode : the number of Conversion should be  > 1</Description>
    </RefParameter>
    <RefParameter Comment="Scan Conversion Mode" DefaultValue="ADC_SCAN_DISABLE" Group="ADCgroup" Name="ScanConvMode" Type="list">
        <Condition Diagnostic="" Expression="!(NbrOfConversion&gt;1) &amp; (Sequencer=FULLY_CONFIGURABLE)"/>
        <PossibleValue Comment="Disabled" Value="ADC_SCAN_DISABLE"/>
        <Description>Enable or Disable the Scan Conversion Mode ,
                     To enable Scan conversion Mode : the number of Conversion should be  > 1</Description>
    </RefParameter>

	<RefParameter Visible="false" Comment="comm" DefaultValue="+ChannelVREF+|ChannelTS+|ChannelVBAT" Name="common" Type="list"/>

     <RefParameter Comment="ChannelVREF" DefaultValue="ADC_CHANNEL_VREFINT" Name="ChannelVREF" Type="list" Visible="false">
             <Condition Expression="VrefTSelected$IpInstance" Diagnostic=""/>

        <PossibleValue Comment="ADC_CHANNEL_VREFINT" Value="ADC_CHANNEL_VREFINT"/>
    </RefParameter>
    <RefParameter Comment="ChannelTS" DefaultValue="ADC_CHANNEL_TEMPSENSOR" Name="ChannelTS" Type="list" Visible="false">
                <Condition Expression="VtsATSelected$IpInstance" Diagnostic=""/>

        <PossibleValue Comment="ADC_CHANNEL_TEMPSENSOR" Value="ADC_CHANNEL_TEMPSENSOR"/>
    </RefParameter>
    <RefParameter Comment="Channelvbat" DefaultValue="ADC_CHANNEL_VBAT" Name="ChannelVBAT" Type="list" Visible="false">
        <Condition Expression="VbatfTSelected$IpInstance" Diagnostic=""/>
        <PossibleValue Comment="ADC_CHANNEL_VBAT" Value="ADC_CHANNEL_VBAT"/>
    </RefParameter>
    <!-- Possible Value of SamplingTime parameters  -->
    <RefParameter Comment="Scan Conversion Mode" DefaultValue="ADC_SCAN_SEQ_FIXED" Group="ADCChannel" Name="ScanConvMode" Type="list"><!-- aligned with HAL v1.2.0-->
        <Condition Diagnostic="" Expression="(Sequencer=NOT_FULLY_CONFIGURABLE)"/>
        <PossibleValue Comment="Forward" Value="ADC_SCAN_SEQ_FIXED"/><!-- aligned with HAL v1.2.0-->
        <PossibleValue Comment="Backward" Value="ADC_SCAN_SEQ_FIXED_BACKWARD"/>
        <Description>Parameter Description: Configurable scan direction (Forward from channel 0 to 18 or Backward from channel 18 to channel 0)</Description>
    </RefParameter>

    <RefMode BaseMode="ADC_Regular_ConversionMode" Comment="Regular Channel Settings" Group="ADC_Regular_ConversionMode" Name="ChannelRegularConversion">
        <ConfigForMode>ADC_RegularChannelRankConfig</ConfigForMode>
        <ConfigForMode>ADC_RegularChannelConfigForWD</ConfigForMode>
        <Parameter Name="Rank"/>
        <Parameter Name="Channel"/>
        <Parameter Name="SamplingTime"/>
        <Parameter Name="MonitoredBy"/>
        <Parameter Name="RegHighThreshold"/>
        <Parameter Name="RegLowThreshold"/>	
        <Parameter Name="RegITMode"/>
        <Parameter Name="MonitoredBy"/>
        <Parameter Name="AWDChannel"/>
    </RefMode>
    
     <RefMode Comment=" " Group=" " Name="HARDCODE">
        <ConfigForMode>Hard_code</ConfigForMode>
       
    </RefMode>
    <RefMode Comment="Regular Channel Settings" Name="ChannelRegularConversionCopy">
        <ConfigForMode>ADC_RegularChannelRankConfig</ConfigForMode>
        <ConfigForMode>ADC_RegularChannelConfigForWD</ConfigForMode>
        <Parameter Name="Rank"/>
        <Parameter Name="Channel"/>
        <Parameter Name="SamplingTime"/>
        <Parameter Name="MonitoredBy"/>
        <Parameter Name="RegHighThreshold"/>
        <Parameter Name="RegLowThreshold"/>	
        <Parameter Name="RegITMode"/>
        <Parameter Name="MonitoredBy"/>
        <Parameter Name="AWDChannel"/>
    </RefMode>
    <!-- WatchDog parameters 
    <RefMode Comment="" Group="WatchDog" Name="WatchDog">
        <ConfigForMode>ADC_AnalogWDGConfig</ConfigForMode>
        <Parameter Name="EnableAnalogWatchDog"/>
        <Parameter Name="WatchdogMode"/>
        <Parameter Name="WatchdogChannel"/>
        <Parameter Name="HighThreshold"/>
        <Parameter Name="LowThreshold"/>
        <Parameter Name="ITMode"/>
    </RefMode> -->
    <!-- WatchDog 1 parameters -->
    <RefMode Comment="Analog Watchdog 1" Group="WatchDog1" Name="Analog Watchdog 1">
        <ConfigForMode>ADC_AnalogWDGConfig</ConfigForMode>
        <Parameter Name="EnableAnalogWatchDog1"/>
        <Parameter Name="AWD1WatchdogNumber"/>
        <Parameter Name="WatchdogMode"/>
        <Parameter Name="WatchdogChannel"/>
        <Parameter Name="AWD1HighThreshold"/>
        <Parameter Name="AWD1LowThreshold"/>
        <Parameter Name="AWD1ITMode"/>
    </RefMode> 

    <!-- WatchDog2 parameters -->
    <RefMode Comment="Analog Watchdog 2" Group="WatchDog2" Name="Analog Watchdog 2">
        <ConfigForMode>ADC_AnalogWDGConfigForAWD2</ConfigForMode>
        <Parameter Name="EnableAnalogWatchDog2"/>
        <Parameter Name="AWD2WatchdogNumber"/>
        <Parameter Name="AWD2HighThreshold"/>
        <Parameter Name="AWD2LowThreshold"/>
        <Parameter Name="AWD2ITMode"/>
    </RefMode> 

    <!-- WatchDog3 parameters -->
    <RefMode Comment="Analog Watchdog 3" Group="WatchDog3" Name="Analog Watchdog 3">
        <ConfigForMode>ADC_AnalogWDGConfigForAWD3</ConfigForMode>
        <Parameter Name="EnableAnalogWatchDog3"/>
        <Parameter Name="AWD3WatchdogNumber"/>
        <Parameter Name="AWD3HighThreshold"/>
        <Parameter Name="AWD3LowThreshold"/>
        <Parameter Name="AWD3ITMode"/>
    </RefMode>

    <!-- ***************************************************WatchDog1 parameters  ****************************************** -->
    
    <RefParameter Comment="Enable Analog WatchDog1 Mode" DefaultValue="false" Group="ADCgroup" Name="EnableAnalogWatchDog1" Type="boolean" Visible="false">
        <Condition Expression="EnableRegularConversion=DISABLE &amp; Sequencer=FULLY_CONFIGURABLE" Diagnostic=""/>
        <PossibleValue Comment="false" Value="false"/>
        <Description>Enable/Disable Analog WatchDog Mode</Description> 
    </RefParameter>
    <RefParameter Comment="Enable Analog WatchDog1 Mode" DefaultValue="false" Group="ADCgroup" Name="EnableAnalogWatchDog1" Type="boolean">
        <PossibleValue Comment="true" Value="true" Semaphore="AWD1_isSelected_$IpInstance"/>
        <PossibleValue Comment="false" Value="false"/>
        <Description>Enable/Disable Analog WatchDog Mode</Description> 
    </RefParameter>

    <!--  WatchDog1 Number parameters -->
    <RefParameter Comment="Watchdog instance" DefaultValue="null" Group="ADCgroup" Name="AWD1WatchdogNumber" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="!AWD1_isSelected_$IpInstance"/>
    </RefParameter>
    <RefParameter Comment="Watchdog instance" DefaultValue="ADC_ANALOGWATCHDOG_1" Group="ADCgroup" Name="AWD1WatchdogNumber" Type="list" Visible="false">
        <PossibleValue Comment="WatchDog 1" Value="ADC_ANALOGWATCHDOG_1"/>
        <Description>Number of used watchDogs.</Description>
    </RefParameter>

    <!-- Possible value of WatchdogMode parameters -->
    <RefParameter Comment="Watchdog Mode" DefaultValue="null" Group="ADCgroup" Name="WatchdogMode" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="EnableAnalogWatchDog1=false"/>
    </RefParameter>
    <RefParameter Comment="Watchdog Mode" DefaultValue="ADC_ANALOGWATCHDOG_SINGLE_REG" Group="ADCgroup" Name="WatchdogMode" Type="list">
        <PossibleValue Comment="Single regular channel" Value="ADC_ANALOGWATCHDOG_SINGLE_REG"/>
        <PossibleValue Comment="All regular channels" Semaphore="AllRegular" Value="ADC_ANALOGWATCHDOG_ALL_REG"/>
        <Description>Configures the ADC analog watchdog mode.</Description>
    </RefParameter>

    <!-- Possible value of WatchdogChannel parameter -->
    <RefParameter Comment="Analog WatchDog Channel" DefaultValue="null" Group="ADCChannel" Name="WatchdogChannel" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="EnableAnalogWatchDog1=false"/>
    </RefParameter>
    <RefParameter Comment="Analog WatchDog Channel" DefaultValue="null" Group="ADCChannel" Name="WatchdogChannel" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="AllRegular"/>
    </RefParameter>
    <RefParameter Comment="Analog WatchDog Channel" DefaultValue="ADC_CHANNEL_0" Group="ADCChannel" Name="WatchdogChannel" Type="list">
        <PossibleValue Comment="Channel 0" Value="ADC_CHANNEL_0"/>
        <PossibleValue Comment="Channel 1" Value="ADC_CHANNEL_1"/>
        <PossibleValue Comment="Channel 2" Value="ADC_CHANNEL_2"/>
        <PossibleValue Comment="Channel 3" Value="ADC_CHANNEL_3"/>
        <PossibleValue Comment="Channel 4" Value="ADC_CHANNEL_4"/>
        <PossibleValue Comment="Channel 5" Value="ADC_CHANNEL_5"/>
        <PossibleValue Comment="Channel 6" Value="ADC_CHANNEL_6"/>
        <PossibleValue Comment="Channel 7" Value="ADC_CHANNEL_7"/>
        <PossibleValue Comment="Channel 8" Value="ADC_CHANNEL_8"/>
        <PossibleValue Comment="Channel 9" Value="ADC_CHANNEL_9"/>
        <PossibleValue Comment="Channel 10" Value="ADC_CHANNEL_10"/>
        <PossibleValue Comment="Channel 11" Value="ADC_CHANNEL_11"/>
        <PossibleValue Comment="Channel 12" Value="ADC_CHANNEL_12"/>
        <PossibleValue Comment="Channel 13" Value="ADC_CHANNEL_13"/>
        <PossibleValue Comment="Channel 14" Value="ADC_CHANNEL_14"/>
        <PossibleValue Comment="Channel 15" Value="ADC_CHANNEL_15"/>
        <PossibleValue Comment="Channel 16" Value="ADC_CHANNEL_16"/>
        <PossibleValue Comment="Channel 17" Value="ADC_CHANNEL_17"/>
        <PossibleValue Comment="Channel 18" Value="ADC_CHANNEL_18"/>
        <PossibleValue Comment="Channel Temperature sensor" Value="ADC_CHANNEL_TEMPSENSOR"/>
        <PossibleValue Comment="Channel Vrefint" Value="ADC_CHANNEL_VREFINT"/>
        <PossibleValue Comment="Channel Vbat" Value="ADC_CHANNEL_VBAT"/>
     
        <Description>ADC channel for the analog watchdog</Description> 
    </RefParameter>

    <!-- Possible value of HighThreshold parameter -->
    <RefParameter Comment="High Threshold" DefaultValue="null" Group="ADCgroup" Name="AWD1HighThreshold" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="EnableAnalogWatchDog1=false"/>
    </RefParameter>
    <RefParameter Comment="High Threshold" DefaultValue="0" Group="ADCgroup" Max="4095" Min="=LowThreshold" Name="AWD1HighThreshold" Type="integer">
        <Condition Diagnostic="" Expression="ADC_RESOLUTION12b"/>
        <Description>Configures the ADC analog watchdog High threshold value.</Description> 
    </RefParameter>
    <RefParameter Comment="High Threshold" DefaultValue="0" Group="ADCgroup" Max="1023" Min="=LowThreshold" Name="AWD1HighThreshold" Type="integer">
        <Condition Diagnostic="" Expression="ADC_RESOLUTION10b"/>
        <Description>Configures the ADC analog watchdog High threshold value.</Description> 
    </RefParameter>
    <RefParameter Comment="High Threshold" DefaultValue="0" Group="ADCgroup" Max="255" Min="=LowThreshold" Name="AWD1HighThreshold" Type="integer">
        <Condition Diagnostic="" Expression="ADC_RESOLUTION8b"/>
        <Description>Configures the ADC analog watchdog High threshold value.</Description> 
    </RefParameter>
    <RefParameter Comment="High Threshold" DefaultValue="0" Group="ADCgroup" Max="63" Min="=LowThreshold" Name="AWD1HighThreshold" Type="integer">
        <Condition Diagnostic="" Expression="ADC_RESOLUTION6b"/>
        <Description>Configures the ADC analog watchdog High threshold value.</Description> 
    </RefParameter>
    <RefParameter Comment="High Threshold" DefaultValue="0" Group="ADCgroup" Max="4095" Min="=LowThreshold" Name="AWD1HighThreshold" Type="integer">
        <Description>Configures the ADC analog watchdog High threshold value.</Description> 
    </RefParameter>

    <!-- Possible value of LowThreshold parameter -->
    <RefParameter Comment="Low Threshold" DefaultValue="null" Group="ADCgroup" Name="AWD1LowThreshold" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="EnableAnalogWatchDog1=false"/>
    </RefParameter>
    <RefParameter Comment="Low Threshold" DefaultValue="0" Group="ADCgroup" Max="=HighThreshold" Min="0" Name="AWD1LowThreshold" Type="integer">
        <Description>Configures the ADC analog watchdog Low threshold value.</Description>
    </RefParameter>

    <!-- Possible value of ITMode parameter -->
    <RefParameter Comment="Interrupt Mode" DefaultValue="null" Group="ADCgroup" Name="AWD1ITMode" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="EnableAnalogWatchDog1=false"/>
    </RefParameter>
    <RefParameter Comment="Interrupt Mode" DefaultValue="DISABLE" Group="ADCgroup" Name="AWD1ITMode" Type="list">
        <PossibleValue Comment="Disabled" Value="DISABLE"/>
        <PossibleValue Comment="Enabled" Value="ENABLE"/>
        <Description>Specifies whether the analog watchdog is configured in interrupt mode or in polling mode.</Description>
    </RefParameter>

    <!-- ***************************************************WatchDog2 parameters  ****************************************** -->
    <RefParameter Comment="Enable Analog WatchDog2 Mode" DefaultValue="null" Group="ADCgroup" Name="EnableAnalogWatchDog2" Type="boolean" Visible="false">
           <Condition Diagnostic="" Expression="Sequencer=NOT_FULLY_CONFIGURABLE | (EnableRegularConversion=DISABLE)"/>
    </RefParameter>

    <RefParameter Comment="Enable Analog WatchDog2 Mode" DefaultValue="false" Group="ADCgroup" Name="EnableAnalogWatchDog2" Type="boolean">
         
        <PossibleValue Action="ENABLE" Comment="true" Condition="channelSelected$IpInstance" Semaphore="AWD2_isSelected_$IpInstance" Value="true"/>
        <PossibleValue Comment="false" Value="false"/>
        <Description>Enable/Disable Analog WatchDog2 Mode</Description> 
    </RefParameter>

    <!--  WatchDog2 Number parameters -->
    <RefParameter Comment="Watchdog instance" DefaultValue="null" Group="ADCgroup" Name="AWD2WatchdogNumber" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="!AWD2_isSelected_$IpInstance"/>
    </RefParameter>
   <RefParameter Comment="Watchdog instance" DefaultValue="null" Group="ADCgroup" Name="AWD2WatchdogNumber" Type="list" Visible="false" >
             <Condition Diagnostic="" Expression="Sequencer=NOT_FULLY_CONFIGURABLE | (EnableRegularConversion=DISABLE)"/>
         </RefParameter>
    <RefParameter Comment="Watchdog instance" DefaultValue="ADC_ANALOGWATCHDOG_2" Group="ADCgroup" Name="AWD2WatchdogNumber" Type="list" Visible="false">
        <PossibleValue Comment="WatchDog 2" Value="ADC_ANALOGWATCHDOG_2"/>
        <Description>Number of used watchDogs.</Description>
    </RefParameter>

    <!-- Possible Value of HighThreshold parameters: Min and Max of this parameter depend on ADC resolution -->
    <RefParameter Comment="High Threshold" DefaultValue="null" Group="ADCgroup" Name="AWD2HighThreshold" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="EnableAnalogWatchDog2=false"/>
    </RefParameter>
    <RefParameter Comment="High Threshold" DefaultValue="null" Group="ADCgroup" Name="AWD2HighThreshold" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="Sequencer=NOT_FULLY_CONFIGURABLE | (EnableRegularConversion=DISABLE)"/>
    </RefParameter>
    <RefParameter Comment="High Threshold" DefaultValue="0" Group="ADCgroup" Max="4095" Min="=AWD2LowThreshold" Name="AWD2HighThreshold" Type="integer">
        <Condition Diagnostic="" Expression="ADC_RESOLUTION12b"/>
        <Description>Configures the ADC analog watchdog High threshold value.</Description>
    </RefParameter>
    <RefParameter Comment="High Threshold" DefaultValue="0" Group="ADCgroup" Max="1023" Min="=AWD2LowThreshold" Name="AWD2HighThreshold" Type="integer">
        <Condition Diagnostic="" Expression="ADC_RESOLUTION10b"/>
        <Description>Configures the ADC analog watchdog High threshold value.</Description>
    </RefParameter>
    <RefParameter Comment="High Threshold" DefaultValue="0" Group="ADCgroup" Max="255" Min="=AWD2LowThreshold" Name="AWD2HighThreshold" Type="integer">
        <Condition Diagnostic="" Expression="ADC_RESOLUTION8b"/>
        <Description>Configures the ADC analog watchdog High threshold value.</Description>
    </RefParameter>
    <RefParameter Comment="High Threshold" DefaultValue="0" Group="ADCgroup" Max="63" Min="=AWD2LowThreshold" Name="AWD2HighThreshold" Type="integer">
        <Condition Diagnostic="" Expression="ADC_RESOLUTION6b"/>
        <Description>Configures the ADC analog watchdog High threshold value.</Description>
    </RefParameter>

    <!-- Possible value of LowThreshold parameter -->
    <RefParameter Comment="Low Threshold" DefaultValue="null" Group="ADCgroup" Name="AWD2LowThreshold" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="EnableAnalogWatchDog2=false"/>
    </RefParameter>
    <RefParameter Comment="Low Threshold" DefaultValue="null" Group="ADCgroup" Name="AWD2LowThreshold" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="Sequencer=NOT_FULLY_CONFIGURABLE | (EnableRegularConversion=DISABLE)"/>
    </RefParameter>
    <RefParameter Comment="Low Threshold" DefaultValue="0" Group="ADCgroup" Max="=AWD2HighThreshold" Min="0" Name="AWD2LowThreshold" Type="integer">
        <Description>Configures the ADC analog watchdog Low threshold value.</Description>
    </RefParameter>

    <!-- Possible value of ITMode parameter -->
    <RefParameter Comment="Interrupt Mode" DefaultValue="null" Group="ADCgroup" Name="AWD2ITMode" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="EnableAnalogWatchDog2=false"/>
    </RefParameter>
    <RefParameter Comment="Interrupt Mode" DefaultValue="null" Group="ADCgroup" Name="AWD2ITMode" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="Sequencer=NOT_FULLY_CONFIGURABLE | (EnableRegularConversion=DISABLE)"/>
    </RefParameter>
    <RefParameter Comment="Interrupt Mode" DefaultValue="DISABLE" Group="ADCgroup" Name="AWD2ITMode" Type="list">
        <PossibleValue Comment="Disabled" Value="DISABLE"/>
        <PossibleValue Comment="Enabled" Value="ENABLE"/>
        <Description>Specifies whether the analog watchdog is configured in interrupt mode or in polling mode.</Description>
    </RefParameter>

    <!-- ***************************************************WatchDog3 parameters  ****************************************** -->
  	 <RefParameter Comment="Enable Analog WatchDog3 Mode" DefaultValue="null" Group="ADCgroup" Name="EnableAnalogWatchDog3" Type="boolean" Visible="false">
         <Condition Diagnostic="" Expression="Sequencer=NOT_FULLY_CONFIGURABLE | (EnableRegularConversion=DISABLE)"/>
    </RefParameter>
    <RefParameter Comment="Enable Analog WatchDog3 Mode" DefaultValue="false" Group="ADCgroup" Name="EnableAnalogWatchDog3" Type="boolean">
        <PossibleValue Action="ENABLE" Comment="true" Condition="channelSelected$IpInstance" Semaphore="AWD3_isSelected_$IpInstance" Value="true"/>
        <PossibleValue Comment="false" Value="false"/>
        <Description>Enable/Disable Analog WatchDog3 Mode</Description> 
    </RefParameter>

    <RefParameter Comment="Watchdog instance" DefaultValue="null" Group="ADCgroup" Name="AWD3WatchdogNumber" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="!AWD3_isSelected_$IpInstance"/>
    </RefParameter> 
    <RefParameter Comment="Watchdog instance" DefaultValue="null" Group="ADCgroup" Name="AWD3WatchdogNumber" Type="list" Visible="false">
       <Condition Diagnostic="" Expression="Sequencer=NOT_FULLY_CONFIGURABLE | (EnableRegularConversion=DISABLE)"/>
    </RefParameter> 
    <RefParameter Comment="Watchdog instance" DefaultValue="ADC_ANALOGWATCHDOG_3" Group="ADCgroup" Name="AWD3WatchdogNumber" Type="list" Visible="false">
        <PossibleValue Comment="WatchDog 3" Value="ADC_ANALOGWATCHDOG_3"/>
        <Description>Number of used watchDogs.</Description>
    </RefParameter>

    <!-- Possible Value of HighThreshold parameters: Min and Max of this parameter depend on ADC resolution -->
    <RefParameter Comment="High Threshold" DefaultValue="null" Group="ADCgroup" Name="AWD3HighThreshold" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="EnableAnalogWatchDog3=false"/>
    </RefParameter>
    <RefParameter Comment="High Threshold" DefaultValue="null" Group="ADCgroup" Name="AWD3HighThreshold" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="Sequencer=NOT_FULLY_CONFIGURABLE | (EnableRegularConversion=DISABLE)"/>
    </RefParameter>
    <RefParameter Comment="High Threshold" DefaultValue="0" Group="ADCgroup" Max="4095" Min="=AWD3LowThreshold" Name="AWD3HighThreshold" Type="integer">
        <Condition Diagnostic="" Expression="ADC_RESOLUTION12b"/>
        <Description>Configures the ADC analog watchdog High threshold value.</Description>
    </RefParameter>
    <RefParameter Comment="High Threshold" DefaultValue="0" Group="ADCgroup" Max="1023" Min="=AWD3LowThreshold" Name="AWD3HighThreshold" Type="integer">
        <Condition Diagnostic="" Expression="ADC_RESOLUTION10b"/>
        <Description>Configures the ADC analog watchdog High threshold value.</Description>
    </RefParameter>
    <RefParameter Comment="High Threshold" DefaultValue="0" Group="ADCgroup" Max="255" Min="=AWD3LowThreshold" Name="AWD3HighThreshold" Type="integer">
        <Condition Diagnostic="" Expression="ADC_RESOLUTION8b"/>
        <Description>Configures the ADC analog watchdog High threshold value.</Description>
    </RefParameter>
    <RefParameter Comment="High Threshold" DefaultValue="0" Group="ADCgroup" Max="63" Min="=AWD3LowThreshold" Name="AWD3HighThreshold" Type="integer">
        <Condition Diagnostic="" Expression="ADC_RESOLUTION6b"/>
        <Description>Configures the ADC analog watchdog High threshold value.</Description>
    </RefParameter>

    <!-- Possible value of LowThreshold parameter -->
    <RefParameter Comment="Low Threshold" DefaultValue="null" Group="ADCgroup" Name="AWD3LowThreshold" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="EnableAnalogWatchDog3=false"/>
    </RefParameter>
    <RefParameter Comment="Low Threshold" DefaultValue="null" Group="ADCgroup" Name="AWD3LowThreshold" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="Sequencer=NOT_FULLY_CONFIGURABLE | (EnableRegularConversion=DISABLE)"/>
    </RefParameter>
    <RefParameter Comment="Low Threshold" DefaultValue="0" Group="ADCgroup" Max="=AWD3HighThreshold" Min="0" Name="AWD3LowThreshold" Type="integer">
        <Description>Configures the ADC analog watchdog Low threshold value.</Description>
    </RefParameter>

    <!-- Possible value of ITMode parameter -->
    <RefParameter Comment="Interrupt Mode" DefaultValue="null" Group="ADCgroup" Name="AWD3ITMode" Type="list" Visible="false">
            <Condition Diagnostic="" Expression="Sequencer=NOT_FULLY_CONFIGURABLE | (EnableRegularConversion=DISABLE)"/>
    </RefParameter>
    <RefParameter Comment="Interrupt Mode" DefaultValue="null" Group="ADCgroup" Name="AWD3ITMode" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="EnableAnalogWatchDog3=false"/>
    </RefParameter>
    <RefParameter Comment="Interrupt Mode" DefaultValue="DISABLE" Group="ADCgroup" Name="AWD3ITMode" Type="list">
        <PossibleValue Comment="Disabled" Value="DISABLE"/>
        <PossibleValue Comment="Enabled" Value="ENABLE"/>
        <Description>Specifies whether the analog watchdog is configured in interrupt mode or in polling mode.</Description>
    </RefParameter>

    <RefParameter Comment="Monitored by" DefaultValue="__NULL" Group="ADCgroup" Name="MonitoredBy" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="!AWD2_isSelected_$IpInstance&amp;!AWD3_isSelected_$IpInstance"/> 
        <PossibleValue Comment="None" Value="__NULL"/>
               
        <Description>Select a watchdog to monitor the channel.</Description> 
    </RefParameter>  
    <RefParameter Comment="Monitored by" DefaultValue="__NULL" Group="ADCgroup" Name="MonitoredBy" Type="list">
        <!-- <Condition Diagnostic="" Expression="AWD2_isSelected_$IpInstance&amp;AWD3_isSelected_$IpInstance"/> -->
        <PossibleValue Comment="None" Value="__NULL"/>
        <PossibleValue Comment="Analog Watchdog 2"  Condition="!AWD2_isSelected_$IpInstance" Action="Disable" Diagnostic="Analog Watchdog 2 is not selected" Value="ADC_ANALOGWATCHDOG_2"/>
        <PossibleValue Comment="Analog Watchdog 3"  Condition="!AWD3_isSelected_$IpInstance" Action="Disable" Diagnostic="Analog Watchdog 3 is not selected" Value="ADC_ANALOGWATCHDOG_3"/>
        <Description>Select a watchdog to monitor the channel.</Description> 
    </RefParameter>         

    <RefParameter Comment="Monitored by" DefaultValue="null" Group="ADCgroup" Name="MonitoredBy" Type="list" Visible="false"/>

      <RefParameter Comment="Regular ITMode" DefaultValue="null" Group="ADCChannel" Name="RegITMode" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="MonitoredBy=__NULL"/>
    </RefParameter>
    <RefParameter Comment="Regular ITMode" DefaultValue="DISABLE" Group="ADCChannel" Name="RegITMode" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="MonitoredBy=ADC_ANALOGWATCHDOG_2 &amp; AWD2ITMode=DISABLE"/>
    </RefParameter>
    <RefParameter Comment="Regular ITMode" DefaultValue="ENABLE" Group="ADCChannel" Name="RegITMode" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="MonitoredBy=ADC_ANALOGWATCHDOG_2 &amp; AWD2ITMode=ENABLE"/>
    </RefParameter>
    <RefParameter Comment="Regular ITMode" DefaultValue="DISABLE" Group="ADCChannel" Name="RegITMode" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="MonitoredBy=ADC_ANALOGWATCHDOG_3 &amp; AWD3ITMode=DISABLE"/>
    </RefParameter>	
    <RefParameter Comment="Regular ITMode" DefaultValue="ENABLE" Group="ADCChannel" Name="RegITMode" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="MonitoredBy=ADC_ANALOGWATCHDOG_3 &amp; AWD3ITMode=ENABLE"/>
    </RefParameter>	
    <RefParameter Comment="Regular ITMode" DefaultValue="null" Group="ADCChannel" Name="RegITMode" Type="list" Visible="false">
    </RefParameter>

     <RefParameter Comment="Regular HighThreshold" DefaultValue="null" Group="ADCChannel" Name="RegHighThreshold" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="MonitoredBy=__NULL"/>
    </RefParameter>
    <RefParameter Comment="Regular HighThreshold" DefaultValue="=AWD2HighThreshold" Group="ADCChannel" Name="RegHighThreshold" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="MonitoredBy=ADC_ANALOGWATCHDOG_2"/>
    </RefParameter>
    <RefParameter Comment="Regular HighThreshold" DefaultValue="=AWD3HighThreshold" Group="ADCChannel" Name="RegHighThreshold" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="MonitoredBy=ADC_ANALOGWATCHDOG_3"/>
    </RefParameter>
    <RefParameter Comment="Regular HighThreshold" DefaultValue="null" Group="ADCChannel" Name="RegHighThreshold" Type="list" Visible="false">	  
    </RefParameter>

    <RefParameter Comment="Regular LowThreshold" DefaultValue="null" Group="ADCChannel" Name="RegLowThreshold" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="MonitoredBy=__NULL"/>
    </RefParameter>
    <RefParameter Comment="Regular LowThreshold" DefaultValue="=AWD2LowThreshold" Group="ADCChannel" Name="RegLowThreshold" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="MonitoredBy=ADC_ANALOGWATCHDOG_2"/>
    </RefParameter>
    <RefParameter Comment="Regular LowThreshold" DefaultValue="=AWD3LowThreshold" Group="ADCChannel" Name="RegLowThreshold" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="MonitoredBy=ADC_ANALOGWATCHDOG_3"/>
    </RefParameter>
    <RefParameter Comment="Regular LowThreshold" DefaultValue="null" Group="ADCChannel" Name="RegLowThreshold" Type="list" Visible="false">
    </RefParameter> 

       <RefParameter Comment="AWDChannel" DefaultValue="__NULL" Group="ADCChannel" Name="AWDChannel" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="MonitoredBy=__NULL"/>
    </RefParameter>
    <RefParameter Comment="AWDChannel" DefaultValue="__NULL" Group="ADCChannel" Name="AWDChannel" Type="list" Visible="false">
        <PossibleValue Comment="none" Value="__NULL"/>
        <PossibleValue Comment="Channel 1" Value="ADC_CHANNEL_1"/>
        <PossibleValue Comment="Channel 2" Value="ADC_CHANNEL_2"/>
        <PossibleValue Comment="Channel 3" Value="ADC_CHANNEL_3"/>
        <PossibleValue Comment="Channel 4" Value="ADC_CHANNEL_4"/>
        <PossibleValue Comment="Channel 5" Value="ADC_CHANNEL_5"/>
        <PossibleValue Comment="Channel 6" Value="ADC_CHANNEL_6"/>
        <PossibleValue Comment="Channel 7" Value="ADC_CHANNEL_7"/>
        <PossibleValue Comment="Channel 8" Value="ADC_CHANNEL_8"/>
        <PossibleValue Comment="Channel 9" Value="ADC_CHANNEL_9"/>
        <PossibleValue Comment="Channel 10" Value="ADC_CHANNEL_10"/>
        <PossibleValue Comment="Channel 11" Value="ADC_CHANNEL_11"/>
        <PossibleValue Comment="Channel 12" Value="ADC_CHANNEL_12"/>
        <PossibleValue Comment="Channel 13" Value="ADC_CHANNEL_13"/>
        <PossibleValue Comment="Channel 14" Value="ADC_CHANNEL_14"/>
        <PossibleValue Comment="Channel 15" Value="ADC_CHANNEL_15"/>
        <PossibleValue Comment="Channel 16" Value="ADC_CHANNEL_16"/>
        <PossibleValue Comment="Channel DAC1_OUT1" Value="ADC_CHANNEL_17"/>
        <PossibleValue Comment="Channel DAC1_OUT2" Value="ADC_CHANNEL_18"/>
        <PossibleValue Comment="Channel Temperature Sensor" Value="ADC_CHANNEL_TEMPSENSOR"/>
        <PossibleValue Comment="Channel Vrefint" Value="ADC_CHANNEL_VREFINT"/>
        <PossibleValue Comment="Channel Vbat" Value="ADC_CHANNEL_VBAT"/>
                <PossibleValue Comment="Channel DAC1_OUT1" Value="ADC_CHANNEL_DACCH1"/>

        <Description>ADC channel for the analog watchdog</Description> 
    </RefParameter>

     <RefParameter Comment="UnUsedParameter" DefaultValue="ADC_ANALOGWATCHDOG_SINGLE_REG" Name="UnUsedParameter" Type="list" Visible="false">
    <PossibleValue Comment="Single regular channel" Value="ADC_ANALOGWATCHDOG_SINGLE_REG"/>
        </RefParameter>

    <!-- Not displayed parameters -->
    <RefParameter Comment="Master Flag" DefaultValue="0" Max="1" Min="0" Name="master" Type="integer" Visible="false"/>

    <!-- List of all available channel used to -->
    <RefParameter Comment="Channel" DefaultValue="ADC_CHANNEL_0" Group="ADCChannel" Name="AllChannels" Type="list" Visible="true">
        <PossibleValue Comment="Channel 0" Value="ADC_CHANNEL_0"/>
        <PossibleValue Comment="Channel 1" Value="ADC_CHANNEL_1"/>
        <PossibleValue Comment="Channel 2" Value="ADC_CHANNEL_2"/>
        <PossibleValue Comment="Channel 3" Value="ADC_CHANNEL_3"/>
        <PossibleValue Comment="Channel 4" Value="ADC_CHANNEL_4"/>
        <PossibleValue Comment="Channel 5" Value="ADC_CHANNEL_5"/>
        <PossibleValue Comment="Channel 6" Value="ADC_CHANNEL_6"/>
        <PossibleValue Comment="Channel 7" Value="ADC_CHANNEL_7"/>
        <PossibleValue Comment="Channel 8" Value="ADC_CHANNEL_8"/>
        <PossibleValue Comment="Channel 9" Value="ADC_CHANNEL_9"/>
        <PossibleValue Comment="Channel 10" Value="ADC_CHANNEL_10"/>
        <PossibleValue Comment="Channel 11" Value="ADC_CHANNEL_11"/>
        <PossibleValue Comment="Channel 12" Value="ADC_CHANNEL_12"/>
        <PossibleValue Comment="Channel 13" Value="ADC_CHANNEL_13"/>
        <PossibleValue Comment="Channel 14" Value="ADC_CHANNEL_14"/>
        <PossibleValue Comment="Channel 15" Value="ADC_CHANNEL_15"/>
        <PossibleValue Comment="Channel 16" Value="ADC_CHANNEL_16"/>
        <PossibleValue Comment="Channel 17" Value="ADC_CHANNEL_17"/>
        <PossibleValue Comment="Channel 18" Value="ADC_CHANNEL_18"/>
        <PossibleValue Comment="Channel Temperature sensor" Value="ADC_CHANNEL_TEMPSENSOR"/>
        <PossibleValue Comment="Channel Vrefint" Value="ADC_CHANNEL_VREFINT"/>
        <PossibleValue Comment="Channel Vbat" Value="ADC_CHANNEL_VBAT"/>
                <PossibleValue Comment="Channel DAC1_OUT1" Value="ADC_CHANNEL_DACCH1"/>

        <!--PossibleValue Comment="Channel Vlcd" Value="ADC_CHANNEL_VLCD"/-->
    </RefParameter>
    <RefParameter Comment="Available Channel" DefaultValue="ADC_CHANNEL_TEMPSENSOR" Group="ADCChannel" Name="Available_Channel" Type="list" Visible="false">
        <!--  <PossibleValue Comment="Channel Temperature Sensor" Value="ADC_CHANNEL_TEMPSENSOR"/>
        <PossibleValue Comment="Channel Vrefint" Value="ADC_CHANNEL_VREFINT"/>
        <PossibleValue Comment="Channel Vlcd" Value="ADC_CHANNEL_VLCD"/> -->
    </RefParameter>

    <!-- Possible Value of AnalogWDChannel parameters -->
    <RefParameter Comment="Analog WatchDog Channel" DefaultValue="" Group="ADCChannel" Name="AnalogWDChannel" Type="list">
        <PossibleValue Comment="Channel 0" Value="ADC_CHANNEL_0"/>
        <PossibleValue Comment="Channel 1" Value="ADC_CHANNEL_1"/>
        <PossibleValue Comment="Channel 2" Value="ADC_CHANNEL_2"/>
        <PossibleValue Comment="Channel 3" Value="ADC_CHANNEL_3"/>
        <PossibleValue Comment="Channel 4" Value="ADC_CHANNEL_4"/>
        <PossibleValue Comment="Channel 5" Value="ADC_CHANNEL_5"/>
        <PossibleValue Comment="Channel 6" Value="ADC_CHANNEL_6"/>
        <PossibleValue Comment="Channel 7" Value="ADC_CHANNEL_7"/>
        <PossibleValue Comment="Channel 8" Value="ADC_CHANNEL_8"/>
        <PossibleValue Comment="Channel 9" Value="ADC_CHANNEL_9"/>
        <PossibleValue Comment="Channel 10" Value="ADC_CHANNEL_10"/>
        <PossibleValue Comment="Channel 11" Value="ADC_CHANNEL_11"/>
        <PossibleValue Comment="Channel 12" Value="ADC_CHANNEL_12"/>
        <PossibleValue Comment="Channel 13" Value="ADC_CHANNEL_13"/>
        <PossibleValue Comment="Channel 14" Value="ADC_CHANNEL_14"/>
        <PossibleValue Comment="Channel 15" Value="ADC_CHANNEL_15"/>
        <PossibleValue Comment="Channel 16" Value="ADC_CHANNEL_16"/>
        <PossibleValue Comment="Channel 17" Value="ADC_CHANNEL_17"/>
        <PossibleValue Comment="Channel 18" Value="ADC_CHANNEL_18"/>
                <PossibleValue Comment="Channel DAC1_OUT1" Value="ADC_CHANNEL_DACCH1"/>

        <Description>ADC channel for the analog watchdog</Description> 
    </RefParameter>
     <!--  ########################################################################################Regular channel WatchDog parameters######################################################################################## -->
    <RefParameter Comment="WDG3ChannelR1" DefaultValue="null" Group="ADCgroup" Name="WDG3ChannelR1" Type="" Visible="false"/>
    <RefParameter Comment="WDG3ChannelR2" DefaultValue="null" Group="ADCgroup" Name="WDG3ChannelR2" Type="" Visible="false"/>
    <RefParameter Comment="WDG3ChannelR3" DefaultValue="null" Group="ADCgroup" Name="WDG3ChannelR3" Type="" Visible="false"/>
    <RefParameter Comment="WDG3ChannelR4" DefaultValue="null" Group="ADCgroup" Name="WDG3ChannelR4" Type="" Visible="false"/>
    <RefParameter Comment="WDG3ChannelR5" DefaultValue="null" Group="ADCgroup" Name="WDG3ChannelR5" Type="" Visible="false"/>
    <RefParameter Comment="WDG3ChannelR6" DefaultValue="null" Group="ADCgroup" Name="WDG3ChannelR6" Type="" Visible="false"/>
    <RefParameter Comment="WDG3ChannelR7" DefaultValue="null" Group="ADCgroup" Name="WDG3ChannelR7" Type="" Visible="false"/>
    <RefParameter Comment="WDG3ChannelR8" DefaultValue="null" Group="ADCgroup" Name="WDG3ChannelR8" Type="" Visible="false"/>
    
    <RefParameter Comment="WDG2ChannelR1" DefaultValue="null" Group="ADCgroup" Name="WDG2ChannelR1" Type="" Visible="false"/>
    <RefParameter Comment="WDG2ChannelR2" DefaultValue="null" Group="ADCgroup" Name="WDG2ChannelR2" Type="" Visible="false"/>
    <RefParameter Comment="WDG2ChannelR3" DefaultValue="null" Group="ADCgroup" Name="WDG2ChannelR3" Type="" Visible="false"/>
    <RefParameter Comment="WDG2ChannelR4" DefaultValue="null" Group="ADCgroup" Name="WDG2ChannelR4" Type="" Visible="false"/>
    <RefParameter Comment="WDG2ChannelR5" DefaultValue="null" Group="ADCgroup" Name="WDG2ChannelR5" Type="" Visible="false"/>
    <RefParameter Comment="WDG2ChannelR6" DefaultValue="null" Group="ADCgroup" Name="WDG2ChannelR6" Type="" Visible="false"/>
    <RefParameter Comment="WDG2ChannelR7" DefaultValue="null" Group="ADCgroup" Name="WDG2ChannelR7" Type="" Visible="false"/>
    <RefParameter Comment="WDG2ChannelR8" DefaultValue="null" Group="ADCgroup" Name="WDG2ChannelR8" Type="" Visible="false"/>
    
     <RefParameter Comment="InjWDG3ChannelR1" DefaultValue="null" Group="ADCgroup" Name="InjWDG3ChannelR1" Type="" Visible="false"/>
    <RefParameter Comment="InjWDG3ChannelR2" DefaultValue="null" Group="ADCgroup" Name="InjWDG3ChannelR2" Type="" Visible="false"/>
    <RefParameter Comment="InjWDG3ChannelR3" DefaultValue="null" Group="ADCgroup" Name="InjWDG3ChannelR3" Type="" Visible="false"/>
    <RefParameter Comment="InjWDG3ChannelR4" DefaultValue="null" Group="ADCgroup" Name="InjWDG3ChannelR4" Type="" Visible="false"/>
    <RefParameter Comment="InjWDG3ChannelR5" DefaultValue="null" Group="ADCgroup" Name="InjWDG3ChannelR5" Type="" Visible="false"/>
    <RefParameter Comment="InjWDG3ChannelR6" DefaultValue="null" Group="ADCgroup" Name="InjWDG3ChannelR6" Type="" Visible="false"/>
    <RefParameter Comment="InjWDG3ChannelR7" DefaultValue="null" Group="ADCgroup" Name="InjWDG3ChannelR7" Type="" Visible="false"/>
    <RefParameter Comment="InjWDG3ChannelR8" DefaultValue="null" Group="ADCgroup" Name="InjWDG3ChannelR8" Type="" Visible="false"/>
    
    <RefParameter Comment="InjWDG2ChannelR1" DefaultValue="null" Group="ADCgroup" Name="InjWDG2ChannelR1" Type="" Visible="false"/>
    <RefParameter Comment="InjWDG2ChannelR2" DefaultValue="null" Group="ADCgroup" Name="InjWDG2ChannelR2" Type="" Visible="false"/>
    <RefParameter Comment="InjWDG2ChannelR3" DefaultValue="null" Group="ADCgroup" Name="InjWDG2ChannelR3" Type="" Visible="false"/>
    <RefParameter Comment="InjWDG2ChannelR4" DefaultValue="null" Group="ADCgroup" Name="InjWDG2ChannelR4" Type="" Visible="false"/>
    <RefParameter Comment="InjWDG2ChannelR5" DefaultValue="null" Group="ADCgroup" Name="InjWDG2ChannelR5" Type="" Visible="false"/>
    <RefParameter Comment="InjWDG2ChannelR6" DefaultValue="null" Group="ADCgroup" Name="InjWDG2ChannelR6" Type="" Visible="false"/>
    <RefParameter Comment="InjWDG2ChannelR7" DefaultValue="null" Group="ADCgroup" Name="InjWDG2ChannelR7" Type="" Visible="false"/>
    <RefParameter Comment="InjWDG2ChannelR8" DefaultValue="null" Group="ADCgroup" Name="InjWDG2ChannelR8" Type="" Visible="false"/>
    
    

       <RefParameter Comment="WDG3ChannelR1" DefaultValue="null" Group="ADCgroup" Name="WDG3ChannelR1" Type="" Visible="false"/>
       <RefParameter Comment="WDG3ChannelR2" DefaultValue="null" Group="ADCgroup" Name="WDG3ChannelR2" Type="" Visible="false"/>
       <RefParameter Comment="WDG3ChannelR3" DefaultValue="null" Group="ADCgroup" Name="WDG3ChannelR3" Type="" Visible="false"/>
       <RefParameter Comment="WDG3ChannelR4" DefaultValue="null" Group="ADCgroup" Name="WDG3ChannelR4" Type="" Visible="false"/>
       <RefParameter Comment="WDG3ChannelR5" DefaultValue="null" Group="ADCgroup" Name="WDG3ChannelR5" Type="" Visible="false"/>
       <RefParameter Comment="WDG3ChannelR6" DefaultValue="null" Group="ADCgroup" Name="WDG3ChannelR6" Type="" Visible="false"/>
       <RefParameter Comment="WDG3ChannelR7" DefaultValue="null" Group="ADCgroup" Name="WDG3ChannelR7" Type="" Visible="false"/>
       <RefParameter Comment="WDG3ChannelR8" DefaultValue="null" Group="ADCgroup" Name="WDG3ChannelR8" Type="" Visible="false"/>
       <RefParameter Comment="WDG3MonitoredChannels" DefaultValue="NONE" Group="ADCgroup" Name="WDG3MonitoredChannels" Type="String" Visible="false">
           <Condition Expression="WDG3ChannelR1=null &amp;WDG3ChannelR2=null &amp;WDG3ChannelR3=null &amp;WDG3ChannelR4=null &amp;WDG3ChannelR5=null &amp;WDG3ChannelR6=null &amp;WDG3ChannelR7=null &amp;WDG3ChannelR8=null" Diagnostic=""/>
           <PossibleValue Value="NONE" Comment="NONE"/>
       </RefParameter>
       <RefParameter Comment="WDG3MonitoredChannels" DefaultValue="ENABLED" Group="ADCgroup" Name="WDG3MonitoredChannels" Type="String" Visible="false">
           <PossibleValue Value="ENABLED" Comment="ENABLED"/>
       </RefParameter>
       <RefParameter Comment="WDG2MonitoredChannels" DefaultValue="NONE" Group="ADCgroup" Name="WDG2MonitoredChannels" Type="String" Visible="false">
           <Condition Expression="WDG2ChannelR1=null &amp;WDG2ChannelR2=null &amp;WDG2ChannelR3=null &amp;WDG2ChannelR4=null &amp;WDG2ChannelR5=null &amp;WDG2ChannelR6=null &amp;WDG2ChannelR7=null &amp;WDG2ChannelR8=null" Diagnostic=""/>
           <PossibleValue Value="NONE" Comment="NONE"/>
       </RefParameter>
       <RefParameter Comment="WDG2MonitoredChannels" DefaultValue="ENABLED" Group="ADCgroup" Name="WDG2MonitoredChannels" Type="String" Visible="false">
           <PossibleValue Value="ENABLED" Comment="ENABLED"/>
       </RefParameter>
       <RefParameter Comment="WDG2ChannelR1" DefaultValue="null" Group="ADCgroup" Name="WDG2ChannelR1" Type="" Visible="false"/>
       <RefParameter Comment="WDG2ChannelR2" DefaultValue="null" Group="ADCgroup" Name="WDG2ChannelR2" Type="" Visible="false"/>
       <RefParameter Comment="WDG2ChannelR3" DefaultValue="null" Group="ADCgroup" Name="WDG2ChannelR3" Type="" Visible="false"/>
       <RefParameter Comment="WDG2ChannelR4" DefaultValue="null" Group="ADCgroup" Name="WDG2ChannelR4" Type="" Visible="false"/>
       <RefParameter Comment="WDG2ChannelR5" DefaultValue="null" Group="ADCgroup" Name="WDG2ChannelR5" Type="" Visible="false"/>
       <RefParameter Comment="WDG2ChannelR6" DefaultValue="null" Group="ADCgroup" Name="WDG2ChannelR6" Type="" Visible="false"/>
       <RefParameter Comment="WDG2ChannelR7" DefaultValue="null" Group="ADCgroup" Name="WDG2ChannelR7" Type="" Visible="false"/>
       <RefParameter Comment="WDG2ChannelR8" DefaultValue="null" Group="ADCgroup" Name="WDG2ChannelR8" Type="" Visible="false"/>
    <!--  ########################################################################################Injected channel WatchDog parameters######################################################################################## -->
 <RefParameter Comment="injWDG3MonitoredChannels" DefaultValue="NONE" Group="ADCgroup" Name="injWDG3MonitoredChannels" Type="String" Visible="false">
           <Condition Expression="InjWDG3ChannelR1=null &amp;InjWDG3ChannelR2=null &amp;InjWDG3ChannelR3=null &amp;InjWDG3ChannelR4=null &amp;InjWDG3ChannelR5=null &amp;InjWDG3ChannelR6=null &amp;InjWDG3ChannelR7=null &amp;InjWDG3ChannelR8=null" Diagnostic=""/>
           <PossibleValue Value="NONE" Comment="NONE"/>
       </RefParameter>
       <RefParameter Comment="injWDG3MonitoredChannels" DefaultValue="ENABLED" Group="ADCgroup" Name="WDG3MonitoredChannels" Type="String" Visible="false">
           <PossibleValue Value="ENABLED" Comment="ENABLED"/>
       </RefParameter>

       <RefParameter Comment="InjWDG3ChannelR1" DefaultValue="null" Group="ADCgroup" Name="InjWDG3ChannelR1" Type="" Visible="false"/>
       <RefParameter Comment="InjWDG3ChannelR2" DefaultValue="null" Group="ADCgroup" Name="InjWDG3ChannelR2" Type="" Visible="false"/>
       <RefParameter Comment="InjWDG3ChannelR3" DefaultValue="null" Group="ADCgroup" Name="InjWDG3ChannelR3" Type="" Visible="false"/>
       <RefParameter Comment="InjWDG3ChannelR4" DefaultValue="null" Group="ADCgroup" Name="InjWDG3ChannelR4" Type="" Visible="false"/>
       <RefParameter Comment="InjWDG3ChannelR5" DefaultValue="null" Group="ADCgroup" Name="InjWDG3ChannelR5" Type="" Visible="false"/>
       <RefParameter Comment="InjWDG3ChannelR6" DefaultValue="null" Group="ADCgroup" Name="InjWDG3ChannelR6" Type="" Visible="false"/>
       <RefParameter Comment="InjWDG3ChannelR7" DefaultValue="null" Group="ADCgroup" Name="InjWDG3ChannelR7" Type="" Visible="false"/>
       <RefParameter Comment="InjWDG3ChannelR8" DefaultValue="null" Group="ADCgroup" Name="InjWDG3ChannelR8" Type="" Visible="false"/>
    
       <RefParameter Comment="injWDG2MonitoredChannels" DefaultValue="NONE" Group="ADCgroup" Name="injWDG2MonitoredChannels" Type="String" Visible="false">
           <Condition Expression="InjWDG2ChannelR1=null &amp;InjWDG2ChannelR2=null &amp;InjWDG2ChannelR3=null &amp;InjWDG2ChannelR4=null &amp;InjWDG2ChannelR5=null &amp;InjWDG2ChannelR6=null &amp;InjWDG2ChannelR7=null &amp;InjWDG2ChannelR8=null" Diagnostic=""/>
           <PossibleValue Value="NONE" Comment="NONE"/>
       </RefParameter>
       <RefParameter Comment="WDG2MonitoredChannels" DefaultValue="ENABLED" Group="ADCgroup" Name="WDG2MonitoredChannels" Type="String" Visible="false">
           <PossibleValue Value="ENABLED" Comment="ENABLED"/>
       </RefParameter>
       <RefParameter Comment="InjWDG2ChannelR1" DefaultValue="null" Group="ADCgroup" Name="InjWDG2ChannelR1" Type="" Visible="false"/>
       <RefParameter Comment="InjWDG2ChannelR2" DefaultValue="null" Group="ADCgroup" Name="InjWDG2ChannelR2" Type="" Visible="false"/>
       <RefParameter Comment="InjWDG2ChannelR3" DefaultValue="null" Group="ADCgroup" Name="InjWDG2ChannelR3" Type="" Visible="false"/>
       <RefParameter Comment="InjWDG2ChannelR4" DefaultValue="null" Group="ADCgroup" Name="InjWDG2ChannelR4" Type="" Visible="false"/>
       <RefParameter Comment="InjWDG2ChannelR5" DefaultValue="null" Group="ADCgroup" Name="InjWDG2ChannelR5" Type="" Visible="false"/>
       <RefParameter Comment="InjWDG2ChannelR6" DefaultValue="null" Group="ADCgroup" Name="InjWDG2ChannelR6" Type="" Visible="false"/>
       <RefParameter Comment="InjWDG2ChannelR7" DefaultValue="null" Group="ADCgroup" Name="InjWDG2ChannelR7" Type="" Visible="false"/>
       <RefParameter Comment="InjWDG2ChannelR8" DefaultValue="null" Group="ADCgroup" Name="InjWDG2ChannelR8" Type="" Visible="false"/>
    <!--  ########################################################################################Common WatchDog parameters######################################################################################## -->


    <!-- ChannelForWatchDog used to specify witch channel list to be available for analog watch dog mode-->
    <RefParameter Comment="Channel type for WatchDog" DefaultValue="Regular" Name="ChannelForWatchDog" Type="list" Visible="false">
        <Condition Diagnostic="" Expression="WatchdogMode=ADC_ANALOGWATCHDOG_SINGLE_REG"/>
        <PossibleValue Comment="Regular" Value="Regular"/>
    </RefParameter>
    <RefParameter Comment="Channel type for WatchDog" DefaultValue="none" Name="ChannelForWatchDog" Type="list" Visible="false">
        <PossibleValue Comment="none" Value="none"/>
    </RefParameter>

    <!-- RefModes -->
    <RefMode Comment="" Name="IN0">
        <ConfigForMode>ADC_RegularChannelConfig</ConfigForMode>
        <Parameter Name="Channel" RefParameter="Channel">
            <PossibleValue>ADC_CHANNEL_0</PossibleValue>
        </Parameter>
           <!--Parameter Name="Rank"/--> 
    </RefMode>
    <RefMode Comment="" Name="IN1">
        <ConfigForMode>ADC_RegularChannelConfig</ConfigForMode>
        <Parameter Name="Channel" RefParameter="Channel">
            <PossibleValue>ADC_CHANNEL_1</PossibleValue>
        </Parameter>
          <!--Parameter Name="Rank"/--> 
    </RefMode>
    <RefMode Comment="" Name="IN2">
        <ConfigForMode>ADC_RegularChannelConfig</ConfigForMode>
        <Parameter Name="Channel">
            <PossibleValue>ADC_CHANNEL_2</PossibleValue>
        </Parameter>
        <!--Parameter Name="Rank"/--> 
    </RefMode>    
    <RefMode Comment="" Name="IN3">
        <ConfigForMode>ADC_RegularChannelConfig</ConfigForMode>
        <Parameter Name="Channel">
            <PossibleValue>ADC_CHANNEL_3</PossibleValue>
        </Parameter>
        <!--Parameter Name="Rank"/--> 
    </RefMode>
    <RefMode Comment="" Name="IN4">
        <ConfigForMode>ADC_RegularChannelConfig</ConfigForMode>
        <Parameter Name="Channel">
            <PossibleValue>ADC_CHANNEL_4</PossibleValue>
        </Parameter>
          <!--Parameter Name="Rank"/--> 
    </RefMode>
    <RefMode Comment="" Name="IN5">
        <ConfigForMode>ADC_RegularChannelConfig</ConfigForMode>
        <Parameter Name="Channel">
            <PossibleValue>ADC_CHANNEL_5</PossibleValue>
        </Parameter>
           <!--Parameter Name="Rank"/--> 
    </RefMode>
    <RefMode Comment="" Name="IN6">
        <ConfigForMode>ADC_RegularChannelConfig</ConfigForMode>
        <Parameter Name="Channel">
            <PossibleValue>ADC_CHANNEL_6</PossibleValue>
        </Parameter>
           <!--Parameter Name="Rank"/--> 
    </RefMode>
    <RefMode Comment="" Name="IN7">
        <ConfigForMode>ADC_RegularChannelConfig</ConfigForMode>
        <Parameter Name="Channel">
            <PossibleValue>ADC_CHANNEL_7</PossibleValue>
        </Parameter>
           <!--Parameter Name="Rank"/--> 
    </RefMode>
    <RefMode Comment="" Name="IN8">
        <ConfigForMode>ADC_RegularChannelConfig</ConfigForMode>
        <Parameter Name="Channel">
            <PossibleValue>ADC_CHANNEL_8</PossibleValue>
        </Parameter>
           <!--Parameter Name="Rank"/--> 
    </RefMode>
    <RefMode Comment="" Name="IN9">
        <ConfigForMode>ADC_RegularChannelConfig</ConfigForMode>
        <Parameter Name="Channel">
            <PossibleValue>ADC_CHANNEL_9</PossibleValue>
        </Parameter>
            <!--Parameter Name="Rank"/--> 
    </RefMode>
    <RefMode Comment="" Name="IN10">
        <ConfigForMode>ADC_RegularChannelConfig</ConfigForMode>
        <Parameter Name="Channel">
            <PossibleValue>ADC_CHANNEL_10</PossibleValue>
        </Parameter>
          <!--Parameter Name="Rank"/--> 
    </RefMode>
    <RefMode Comment="" Name="IN11">
        <ConfigForMode>ADC_RegularChannelConfig</ConfigForMode>
        <Parameter Name="Channel">
            <PossibleValue>ADC_CHANNEL_11</PossibleValue>
        </Parameter>
           <!--Parameter Name="Rank"/--> 
    </RefMode>
    <RefMode Comment="" Name="IN12">
        <ConfigForMode>ADC_RegularChannelConfig</ConfigForMode>
        <Parameter Name="Channel">
            <PossibleValue>ADC_CHANNEL_12</PossibleValue>
        </Parameter>
          <!--Parameter Name="Rank"/--> 
    </RefMode>
    <RefMode Comment="" Name="IN13">
        <ConfigForMode>ADC_RegularChannelConfig</ConfigForMode>
        <Parameter Name="Channel">
            <PossibleValue>ADC_CHANNEL_13</PossibleValue>
        </Parameter>
            <!--Parameter Name="Rank"/--> 
    </RefMode>
    <RefMode Comment="" Name="IN14">
        <ConfigForMode>ADC_RegularChannelConfig</ConfigForMode>
        <Parameter Name="Channel">
            <PossibleValue>ADC_CHANNEL_14</PossibleValue>
        </Parameter>
          <!--Parameter Name="Rank"/--> 
    </RefMode>
    <RefMode Comment="" Name="IN15">
        <ConfigForMode>ADC_RegularChannelConfig</ConfigForMode>
        <Parameter Name="Channel">
            <PossibleValue>ADC_CHANNEL_15</PossibleValue>
        </Parameter>
           <!--Parameter Name="Rank"/--> 
    </RefMode>
    <RefMode Comment="" Name="IN16">
        <ConfigForMode>ADC_RegularChannelConfig</ConfigForMode>
        <Parameter Name="Channel">
            <PossibleValue>ADC_CHANNEL_16</PossibleValue>
        </Parameter>
         <!--Parameter Name="Rank"/--> 
    </RefMode>
    <RefMode Comment="" Name="IN17">
        <ConfigForMode>ADC_RegularChannelConfig</ConfigForMode>
        <Parameter Name="Channel">
            <PossibleValue>ADC_CHANNEL_17</PossibleValue>
        </Parameter>
        <!--Parameter Name="Rank"/--> 
    </RefMode>
    <RefMode Comment="" Name="IN18">
        <ConfigForMode>ADC_RegularChannelConfig</ConfigForMode>
        <Parameter Name="Channel">
            <PossibleValue>ADC_CHANNEL_18</PossibleValue>
        </Parameter>
           <!--Parameter Name="Rank"/--> 
    </RefMode>
    <RefMode Comment="" Name="IN-TempSens">
        <ConfigForMode>ADC_RegularChannelConfig</ConfigForMode>
        <Parameter Name="Channel">
            <PossibleValue>ADC_CHANNEL_TEMPSENSOR</PossibleValue>
        </Parameter>
          <!--Parameter Name="Rank"/--> 
    </RefMode>
    <RefMode Comment="" Name="IN-Vrefint">
        <ConfigForMode>ADC_RegularChannelConfig</ConfigForMode>
        <Parameter Name="Channel">
            <PossibleValue>ADC_CHANNEL_VREFINT</PossibleValue>
        </Parameter>
            <!--Parameter Name="Rank"/--> 
    </RefMode>
    <RefMode Comment="" Name="IN-Vbat">
        <ConfigForMode>ADC_RegularChannelConfig</ConfigForMode>
        <Parameter Name="Channel">
            <PossibleValue>ADC_CHANNEL_VBAT</PossibleValue>
        </Parameter>
        <!--Parameter Name="Rank"/--> 
    </RefMode>
    <RefMode Comment="" Name="IN-DAC1-OUT1">
        <ConfigForMode>ADC_RegularChannelConfig</ConfigForMode>
        <Parameter Name="Channel">
            <PossibleValue>ADC_CHANNEL_DACCH1</PossibleValue>
        </Parameter>
    </RefMode>
    <!--
     <RefMode Comment=" " Group=" " Name="ADC_EnableInternalRegulator0"  >
        <ConfigForMode>ADC_EnableInternalRegulator</ConfigForMode>         
    </RefMode>
-->
    <ModeLogicOperator Name="OR">
        <!-- External channels -->
        <Mode Name="IN0">
            <ModeLogicOperator Name="OR">
                <Mode Name="IN0">
                    <SignalLogicalOp Name="AND">
                        <Signal Name="IN0"/>
                    </SignalLogicalOp>
                </Mode>
            </ModeLogicOperator>
            <Semaphore>channelSelected</Semaphore>
             <Semaphore>channelSelected0</Semaphore>
        </Mode>
        <Mode Name="IN1">
            <ModeLogicOperator Name="OR">
                <Mode Name="IN1">
                    <SignalLogicalOp Name="AND">
                        <Signal Name="IN1"/>
                    </SignalLogicalOp>
                </Mode>
            </ModeLogicOperator>
            <Semaphore>channelSelected</Semaphore>
        </Mode>
        <Mode Name="IN2">
            <ModeLogicOperator Name="OR">
                <Mode Name="IN2">
                    <SignalLogicalOp Name="AND">
                        <Signal Name="IN2"/>
                    </SignalLogicalOp>
                </Mode>
            </ModeLogicOperator>
            <Semaphore>channelSelected</Semaphore>
        </Mode>
        <Mode Name="IN3">
            <ModeLogicOperator Name="OR">
                <Mode Name="IN3">
                    <SignalLogicalOp Name="AND">
                        <Signal Name="IN3"/>
                    </SignalLogicalOp>
                </Mode>
            </ModeLogicOperator>
            <Semaphore>channelSelected</Semaphore>
        </Mode>
        <Mode Name="IN4">
            <ModeLogicOperator Name="OR">
                <Mode Name="IN4">
                    <SignalLogicalOp Name="AND">
                        <Signal Name="IN4"/>
                    </SignalLogicalOp>
                </Mode>
            </ModeLogicOperator>
            <Semaphore>channelSelected</Semaphore>
        </Mode>
        <Mode Name="IN5">
            <ModeLogicOperator Name="OR">
                <Mode Name="IN5">
                    <SignalLogicalOp Name="AND">
                        <Signal Name="IN5"/>
                    </SignalLogicalOp>
                </Mode>
            </ModeLogicOperator>
            <Semaphore>channelSelected</Semaphore>
        </Mode>
        <Mode Name="IN6">
            <ModeLogicOperator Name="OR">
                <Mode Name="IN6">
                    <SignalLogicalOp Name="AND">
                        <Signal Name="IN6"/>
                    </SignalLogicalOp>
                </Mode>
            </ModeLogicOperator>
            <Semaphore>channelSelected</Semaphore>
        </Mode>
        <Mode Name="IN7">
            <ModeLogicOperator Name="OR">
                <Mode Name="IN7">
                    <SignalLogicalOp Name="AND">
                        <Signal Name="IN7"/>
                    </SignalLogicalOp>
                </Mode>
            </ModeLogicOperator>
            <Semaphore>channelSelected</Semaphore>
        </Mode>
        <Mode Name="IN8">
            <ModeLogicOperator Name="OR">
                <Mode Name="IN8">
                    <SignalLogicalOp Name="AND">
                        <Signal Name="IN8"/>
                    </SignalLogicalOp>
                </Mode>
            </ModeLogicOperator>
            <Semaphore>channelSelected</Semaphore>
        </Mode>
        <Mode Name="IN9">
            <ModeLogicOperator Name="OR">
                <Mode Name="IN9">
                    <SignalLogicalOp Name="AND">
                        <Signal Name="IN9"/>
                    </SignalLogicalOp>
                </Mode>
            </ModeLogicOperator>
            <Semaphore>channelSelected</Semaphore>
        </Mode>
        <Mode Name="IN10">
            <ModeLogicOperator Name="OR">
                <Mode Name="IN10">
                    <SignalLogicalOp Name="AND">
                        <Signal Name="IN10"/>
                    </SignalLogicalOp>
                </Mode>
            </ModeLogicOperator>
            <Semaphore>channelSelected</Semaphore>
        </Mode>
        <Mode Name="IN11">
            <ModeLogicOperator Name="OR">
                <Mode Name="IN11">
                    <SignalLogicalOp Name="AND">
                        <Signal Name="IN11"/>
                    </SignalLogicalOp>
                </Mode>
            </ModeLogicOperator>
            <Semaphore>channelSelected</Semaphore>
        </Mode>
        <Mode Name="IN12">
            <ModeLogicOperator Name="OR">
                <Mode Name="IN12">
                    <SignalLogicalOp Name="AND">
                        <Signal Name="IN12"/>
                    </SignalLogicalOp>
                </Mode>
            </ModeLogicOperator>
            <Semaphore>channelSelected</Semaphore>
        </Mode>
        <Mode Name="IN13">
            <ModeLogicOperator Name="OR">
                <Mode Name="IN13">
                    <SignalLogicalOp Name="AND">
                        <Signal Name="IN13"/>
                    </SignalLogicalOp>
                </Mode>
            </ModeLogicOperator>
            <Semaphore>channelSelected</Semaphore>
        </Mode>
        <Mode Name="IN14">
            <ModeLogicOperator Name="OR">
                <Mode Name="IN14">
                    <SignalLogicalOp Name="AND">
                        <Signal Name="IN14"/>
                    </SignalLogicalOp>
                </Mode>
            </ModeLogicOperator>
            <Semaphore>channelSelected</Semaphore>
        </Mode>
        <Mode Name="IN15">
            <ModeLogicOperator Name="OR">
                <Mode Name="IN15">
                    <SignalLogicalOp Name="AND">
                        <Signal Name="IN15"/>
                    </SignalLogicalOp>
                </Mode>
            </ModeLogicOperator>
            <Semaphore>channelSelected</Semaphore>
        </Mode>
        <Mode Name="IN16">
            <ModeLogicOperator Name="OR">
                <Mode Name="IN16">
                    <SignalLogicalOp Name="AND">
                        <Signal Name="IN16"/>
                    </SignalLogicalOp>
                </Mode>
            </ModeLogicOperator>
            <Semaphore>channelSelected</Semaphore>
        </Mode>
        <Mode Name="IN17">
            <ModeLogicOperator Name="OR">
                <Mode Name="IN17">
                    <SignalLogicalOp Name="AND">
                        <Signal Name="IN17"/>
                    </SignalLogicalOp>
                </Mode>
            </ModeLogicOperator>
            <Semaphore>channelSelected</Semaphore>
        </Mode>
        <Mode Name="IN18">
            <ModeLogicOperator Name="OR">
                <Mode Name="IN18">
                    <SignalLogicalOp Name="AND">
                        <Signal Name="IN18"/>
                    </SignalLogicalOp>
                </Mode>
            </ModeLogicOperator>
            <Semaphore>channelSelected</Semaphore>
        </Mode>
        <!-- Internal channels -->
        <Mode Name="IN-TempSens" UserName="Temperature Sensor Channel">
            <ModeLogicOperator Name="XOR">
                <Mode Name="IN-TempSens" UserName="Single-ended">
                    <SignalLogicalOp Name="AND">
                        <Signal Name="TempSens_Input"/>
                    </SignalLogicalOp>                   
                    <Semaphore>VtsATSelected$IpInstance</Semaphore>
                </Mode>
            </ModeLogicOperator>
            <Semaphore>channelSelected</Semaphore>
        </Mode>
        <Mode Name="IN-Vrefint" UserName="Vrefint Channel">
            <ModeLogicOperator Name="XOR">
                <Mode Name="IN-Vrefint" UserName="Vrefint Channel">
                    <SignalLogicalOp Name="AND">
                        <Signal Name="Vref_Input"/>
                    </SignalLogicalOp>            
                    <Semaphore>VrefTSelected$IpInstance</Semaphore>
                </Mode>
            </ModeLogicOperator>
            <Semaphore>channelSelected</Semaphore>
        </Mode>
        
          <Mode Name="IN-Vbat" UserName="Vbat Channel">
            <ModeLogicOperator Name="XOR">
                <Mode Name="IN-Vbat" UserName="Vbat Channel">
                    <SignalLogicalOp Name="AND">
                        <Signal Name="Vbat_Input"/>
                    </SignalLogicalOp>                 
                    <Semaphore>VbatfTSelected$IpInstance</Semaphore>
                </Mode>
            </ModeLogicOperator>
            <Semaphore>channelSelected</Semaphore>
        </Mode>
        <Mode Name="IN-DAC1-OUT1" UserName="VDAC_OUT1 Channel"> 
            <ModeLogicOperator Name="XOR">
                <Mode Name="IN-DAC1-OUT1" UserName="VDAC1_OUT1 Channel">
                    <SignalLogicalOp Name="AND">
                        <Signal Name="VS_DAC1_OUT1"/>
                    </SignalLogicalOp>
                </Mode>
            </ModeLogicOperator>                                              
            <Condition Diagnostic="Available only if DAC_OUT1 is used" Expression="DAC_OUT1_Int | DAC_OUT1_ExtAndInt"/>
            <Semaphore>channelSelected$IpInstance</Semaphore>
        </Mode>
        <!-- Trigger -->
        <Mode Name="External-Trigger-for-Regular-conversion" UserName="Regular Conversion Trigger">
            <ModeLogicOperator Name="OR">
                <Mode Name="External-Trigger-for-Regular-conversion" UserName="Regular Conversion Trigger">
                    <SignalLogicalOp Name="AND">
                        <Signal Name="EXTI11"/>
                    </SignalLogicalOp>
                    <Semaphore>RegularExternalTrigger</Semaphore>
                    <Condition Diagnostic="Available only if at least one channel is selected" Expression="channelSelected"/>
                </Mode>
            </ModeLogicOperator>
        </Mode>
    </ModeLogicOperator>
    <Semaphore>$IpInstance_USED</Semaphore>

    <RefSignal IOMode="EXTI" Name="EXTI11" ShareableGroupName="GPXTI11"/>
    <RefSignal IOMode="Analog" Name="IN0"/>
    <RefSignal IOMode="Analog" Name="IN1"/>
    <RefSignal IOMode="Analog" Name="IN2"/>
    <RefSignal IOMode="Analog" Name="IN3"/>
    <RefSignal IOMode="Analog" Name="IN4"/>
    <RefSignal IOMode="Analog" Name="IN5"/>
    <RefSignal IOMode="Analog" Name="IN6"/>
    <RefSignal IOMode="Analog" Name="IN7"/>
    <RefSignal IOMode="Analog" Name="IN8"/>
    <RefSignal IOMode="Analog" Name="IN9"/>
    <RefSignal IOMode="Analog" Name="IN10"/>
    <RefSignal IOMode="Analog" Name="IN11"/>
    <RefSignal IOMode="Analog" Name="IN12"/>
    <RefSignal IOMode="Analog" Name="IN13"/>
    <RefSignal IOMode="Analog" Name="IN14"/>
    <RefSignal IOMode="Analog" Name="IN15"/>
    <RefSignal IOMode="Analog" Name="IN16"/>
    <RefSignal IOMode="Analog" Name="IN17"/>
    <RefSignal IOMode="Analog" Name="IN18"/>
    <RefSignal IOMode="Analog" Name="TempSens_Input" Virtual="true"/>
    <RefSignal IOMode="Analog" Name="Vref_Input" Virtual="true"/>
    <RefSignal IOMode="Analog" Name="Vbat_Input" Virtual="true"/>
    <RefSignal IOMode="Analog" Name="VS_DAC1_OUT1" Virtual="true"/>

    <!--RefSignal IOMode="Analog" Name="Vlcd_Input" Virtual="true"/-->
</IP>
