<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<IP xmlns="http://mcd.rou.st.com/modules.php?name=mcu" 
    ns0:schemaLocation="http://mcd.rou.st.com/modules.php?name=mcu ../../../../../../../doc/V4/Development/Specifications/db/IP_Modes.xsd"
    xmlns:ns0="http://www.w3.org/2001/XMLSchema-instance"
    DBVersion="V3.0"
    IPType="peripheral"
    Name="TSC"
    Version="tsc1_v1_0_Cube">
	<About>TSC: Touch Sensing Controller</About>	
	
	<!-- RefModes with their parameters -->
	<RefMode Abstract="true" Comment="TSC settings" Group="TSC_Settings" Name="TSCSettings">
        <ConfigForMode>TSC_Init</ConfigForMode>
        <Parameter Name="CTPulseHighLength"/>
        <Parameter Name="CTPulseLowLength"/>
        <Parameter Name="SpreadSpectrum"/>
        <Parameter Name="SpreadSpectrumDeviation"/>
        <Parameter Name="SpreadSpectrumPrescaler"/>
        <Parameter Name="PulseGeneratorPrescaler"/>
        <Parameter Name="MaxCountValue"/>
        <Parameter Name="IODefaultMode"/>
        <Parameter Name="SynchroPinPolarity"/>
        <Parameter Name="AcquisitionMode"/>
        <Parameter Name="MaxCountInterrupt"/>
        <!-- <Parameter Name="ChannelIOs"/>
        <Parameter Name="ShieldIOs"/>
        <Parameter Name="SamplingIOs"/> -->
    </RefMode>

    <!-- <RefMode Name="TSC IO Config" Comment="TSC IO Config" Group="IO_Congif">
        <ConfigForMode>TSC_IOConfig</ConfigForMode>
        <Parameter Name="ChannelIOs"/>
        <Parameter Name="ShieldIOs"/>
        <Parameter Name="SamplingIOs"/>
    </RefMode> -->
		<!--  -->
		<RefParameter Comment="Charge Transfer High Pulse Length" DefaultValue="TSC_CTPH_2CYCLES" Group="TSC Settings" Name="CTPulseHighLength" Type="list">
			<PossibleValue Comment="1 Cycle" Value="TSC_CTPH_1CYCLE"/>
			<PossibleValue Comment="2 Cycles" Value="TSC_CTPH_2CYCLES"/>
			<PossibleValue Comment="3 Cycles" Value="TSC_CTPH_3CYCLES"/>
			<PossibleValue Comment="4 Cycles" Value="TSC_CTPH_4CYCLES"/>
			<PossibleValue Comment="5 Cycles" Value="TSC_CTPH_5CYCLES"/>
			<PossibleValue Comment="6 Cycles" Value="TSC_CTPH_6CYCLES"/>
			<PossibleValue Comment="7 Cycles" Value="TSC_CTPH_7CYCLES"/>
			<PossibleValue Comment="8 Cycles" Value="TSC_CTPH_8CYCLES"/>
			<PossibleValue Comment="9 Cycles" Value="TSC_CTPH_9CYCLES"/>
			<PossibleValue Comment="10 Cycles" Value="TSC_CTPH_10CYCLES"/>
			<PossibleValue Comment="11 Cycles" Value="TSC_CTPH_11CYCLES"/>
			<PossibleValue Comment="12 Cycles" Value="TSC_CTPH_12CYCLES"/>
			<PossibleValue Comment="13 Cycles" Value="TSC_CTPH_13CYCLES"/>
			<PossibleValue Comment="14 Cycles" Value="TSC_CTPH_14CYCLES"/>
			<PossibleValue Comment="15 Cycles" Value="TSC_CTPH_15CYCLES"/>
			<PossibleValue Comment="16 Cycles" Value="TSC_CTPH_16CYCLES"/>
		</RefParameter>
	
		<!--  -->
		<RefParameter Comment="Charge Transfer Low Pulse Length" DefaultValue="TSC_CTPL_2CYCLES" Group="TSC Settings" Name="CTPulseLowLength" Type="list">
			<PossibleValue Comment="1 Cycle" Value="TSC_CTPL_1CYCLE"/>
			<PossibleValue Comment="2 Cycles" Value="TSC_CTPL_2CYCLES"/>
			<PossibleValue Comment="3 Cycles" Value="TSC_CTPL_3CYCLES"/>
			<PossibleValue Comment="4 Cycles" Value="TSC_CTPL_4CYCLES"/>
			<PossibleValue Comment="5 Cycles" Value="TSC_CTPL_5CYCLES"/>
			<PossibleValue Comment="6 Cycles" Value="TSC_CTPL_6CYCLES"/>
			<PossibleValue Comment="7 Cycles" Value="TSC_CTPL_7CYCLES"/>
			<PossibleValue Comment="8 Cycles" Value="TSC_CTPL_8CYCLES"/>
			<PossibleValue Comment="9 Cycles" Value="TSC_CTPL_9CYCLES"/>
			<PossibleValue Comment="10 Cycles" Value="TSC_CTPL_10CYCLES"/>
			<PossibleValue Comment="11 Cycles" Value="TSC_CTPL_11CYCLES"/>
			<PossibleValue Comment="12 Cycles" Value="TSC_CTPL_12CYCLES"/>
			<PossibleValue Comment="13 Cycles" Value="TSC_CTPL_13CYCLES"/>
			<PossibleValue Comment="14 Cycles" Value="TSC_CTPL_14CYCLES"/>
			<PossibleValue Comment="15 Cycles" Value="TSC_CTPL_15CYCLES"/>
			<PossibleValue Comment="16 Cycles" Value="TSC_CTPL_16CYCLES"/>
		</RefParameter>

		<!--  -->
		<RefParameter Comment="Spread Spectrum" DefaultValue="DISABLE" Group="TSC Settings" Name="SpreadSpectrum" Type="list">
			<PossibleValue Comment="Disable" Value="DISABLE"/>
			<PossibleValue Comment="Enable" Value="ENABLE"/>
		</RefParameter>

		<!-- This parameter should be displayed only if the spread spectrum parameter is enabled. This is a numeric field with a valid range from 1 to 128. -->
		<RefParameter Comment="Spread Spectrum Deviation" DefaultValue="1" Group="TSC Settings" Max="128" Min="1" Name="SpreadSpectrumDeviation" Type="integer">
			<Condition Diagnostic="" Expression="SpreadSpectrum=ENABLE"/>
		</RefParameter>
		<RefParameter Comment="Spread Spectrum Deviation" DefaultValue="1" Group="TSC Settings" Max="128" Min="1" Name="SpreadSpectrumDeviation" Type="integer" Visible="false"/>

		<!-- This parameter should be displayed only if the spread spectrum parameter is enabled. -->
		<RefParameter Comment="Spread Spectrum Prescaler" DefaultValue="TSC_SS_PRESC_DIV1" Group="TSC Settings" Name="SpreadSpectrumPrescaler" Type="list">
			<Condition Diagnostic="" Expression="SpreadSpectrum=ENABLE"/>
			<PossibleValue Comment="Synchronous clock mode" Value="TSC_SS_PRESC_DIV1"/>
			<PossibleValue Comment="Synchronous clock mode divided by 2" Value="TSC_SS_PRESC_DIV2"/>
		</RefParameter>
		<RefParameter Comment="Spread Spectrum Prescaler" DefaultValue="TSC_SS_PRESC_DIV1" Group="TSC Settings" Name="SpreadSpectrumPrescaler" Type="list" Visible="false"/>

		<!--  -->
		<RefParameter Comment="Pulse Generator Prescaler" DefaultValue="TSC_PG_PRESC_DIV4" Group="TSC Settings" Name="PulseGeneratorPrescaler" Type="list">
			<PossibleValue Comment="Synchronous clock mode" Value="TSC_PG_PRESC_DIV1"/>
			<PossibleValue Comment="Synchronous clock mode divided by 2" Value="TSC_PG_PRESC_DIV2"/>
			<PossibleValue Comment="Synchronous clock mode divided by 4" Value="TSC_PG_PRESC_DIV4"/>
			<PossibleValue Comment="Synchronous clock mode divided by 8" Value="TSC_PG_PRESC_DIV8"/>
			<PossibleValue Comment="Synchronous clock mode divided by 16" Value="TSC_PG_PRESC_DIV16"/>
			<PossibleValue Comment="Synchronous clock mode divided by 32" Value="TSC_PG_PRESC_DIV32"/>
			<PossibleValue Comment="Synchronous clock mode divided by 64" Value="TSC_PG_PRESC_DIV64"/>
			<PossibleValue Comment="Synchronous clock mode divided by 128" Value="TSC_PG_PRESC_DIV128"/>
		</RefParameter>

		<!--  -->
		<RefParameter Comment="Maximum Count Value" DefaultValue="TSC_MCV_8191" Group="TSC Settings" Name="MaxCountValue" Type="list">
			<PossibleValue Comment="255 charge transfer cycles" Value="TSC_MCV_255"/>
			<PossibleValue Comment="511 charge transfer cycles" Value="TSC_MCV_511"/>
			<PossibleValue Comment="1023 charge transfer cycles" Value="TSC_MCV_1023"/>
			<PossibleValue Comment="2047 charge transfer cycles" Value="TSC_MCV_2047"/>
			<PossibleValue Comment="4095 charge transfer cycles" Value="TSC_MCV_4095"/>
			<PossibleValue Comment="8191 charge transfer cycles" Value="TSC_MCV_8191"/>
			<PossibleValue Comment="16383 charge transfer cycles" Value="TSC_MCV_16383"/>
		</RefParameter>

		<!--  -->
		<RefParameter Comment="IO Default Mode" DefaultValue="TSC_IODEF_OUT_PP_LOW" Group="TSC Settings" Name="IODefaultMode" Type="list">
			<PossibleValue Comment="Output push-pull low" Value="TSC_IODEF_OUT_PP_LOW"/>
			<PossibleValue Comment="Input floating" Value="TSC_IODEF_IN_FLOAT"/>
		</RefParameter>

		<RefParameter Comment="Synchro Pin Polarity" DefaultValue="TSC_SYNC_POLARITY_FALLING" Group="TSC Settings" Name="SynchroPinPolarity" Type="list" Visible="false">
			<Condition Diagnostic="Synchro Pin is not available in LQFP32 package" Expression="!($modeexist_SYNC)"/>
		</RefParameter>

		<!-- This parameter should be displayed only if the synchronized acquisition mode is selected. In addition a SYNC pin must be selected. -->
		<RefParameter Comment="Synchro Pin Polarity" DefaultValue="TSC_SYNC_POLARITY_FALLING" Group="TSC Settings" Name="SynchroPinPolarity" Type="list">
			<Condition Diagnostic="" Expression="SYNC_Pin_Selected &amp; (AcquisitionMode=TSC_ACQ_MODE_SYNCHRO)"/>
			<PossibleValue Comment="Falling edge only" Value="TSC_SYNC_POLARITY_FALLING"/>
			<PossibleValue Comment="Rising edge and high level" Value="TSC_SYNC_POLARITY_RISING"/>
		</RefParameter>
		<RefParameter Comment="Synchro Pin Polarity" DefaultValue="TSC_SYNC_POLARITY_FALLING" Group="TSC Settings" Name="SynchroPinPolarity" Type="list" Visible="false"/>

		<!--  -->
		<RefParameter Comment="Acquisition Mode" DefaultValue="TSC_ACQ_MODE_NORMAL" Group="TSC Settings" Name="AcquisitionMode" Type="list">
			<Condition Diagnostic="Synchro Pin is not available in LQFP32 package" Expression="SYNC_Pin_Selected"/>
			<PossibleValue Comment="Normal acquisition mode" Value="TSC_ACQ_MODE_NORMAL"/>
			<PossibleValue Comment="Synchronized acquisition mode" Value="TSC_ACQ_MODE_SYNCHRO"/>
		</RefParameter>
		<RefParameter Comment="Acquisition Mode" DefaultValue="TSC_ACQ_MODE_NORMAL" Group="TSC Settings" Name="AcquisitionMode" Type="list">
			<PossibleValue Comment="Normal acquisition mode" Value="TSC_ACQ_MODE_NORMAL"/>
		</RefParameter>

		<!-- This parameter should be displayed only if the TSC NVIC is enabled. !!!!!!!!!!! -> to be verified with Remi -->
		<RefParameter Comment="Maximum Count Interrupt" DefaultValue="DISABLE" Group="TSC Settings" Name="MaxCountInterrupt" Type="list">
			<Condition Diagnostic="" Expression="TSC_IRQn|TS_IRQn|EXTI2_TSC_IRQn"/>
			<PossibleValue Comment="Disable" Value="DISABLE"/>
			<PossibleValue Comment="Enable" Value="ENABLE"/>
		</RefParameter>
		<RefParameter Comment="Maximum Count Interrupt" DefaultValue="DISABLE" Name="MaxCountInterrupt" Type="list" Group="TSC Settings" Visible="false">
			<PossibleValue Comment="Disable" Value="DISABLE"/>
		</RefParameter>

        <!--  -->
		<RefParameter Comment="Channel IOs" DefaultValue="null" Group="TSC Settings" Name="ChannelIOs" Type="list" Visible="false">
		</RefParameter>

		<!--  -->
		<RefParameter Comment="Shield IOs" DefaultValue="null" Group="TSC Settings" Name="ShieldIOs" Type="list" Visible="false">
		</RefParameter>

		<!--  -->
		<RefParameter Comment="Sampling IOs" DefaultValue="null" Group="TSC Settings" Name="SamplingIOs" Type="list" Visible="false">
		</RefParameter>

   		<!--  RefParameters mandatory for TouchSensing MW - begin -->
   		<!--  RefParameters mandatory for TouchSensing MW - Sampling -->
		<RefParameter Comment="Gx_IOx-Sampling" DefaultValue="=(IF(Sampling_IO_G1_isSet,1,0) + IF(Sampling_IO_G2_isSet,1,0) + IF(Sampling_IO_G3_isSet,1,0) + IF(Sampling_IO_G4_isSet,1,0) + IF(Sampling_IO_G5_isSet,1,0) + IF(Sampling_IO_G6_isSet,1,0) + IF(Sampling_IO_G7_isSet,1,0) + IF(Sampling_IO_G8_isSet,1,0))" Group="TSC Settings" Name="Gx_IOx-Sampling" Type="integer" Min="0" Max="8" Visible="false">
		</RefParameter>
   		<!--  RefParameters mandatory for TouchSensing MW - Channels -->
		<RefParameter Comment="Gx_IOx-Channel" DefaultValue="=(IF(Channel_IO1_G1_isSet,1,0) + IF(Channel_IO2_G1_isSet,1,0) + IF(Channel_IO3_G1_isSet,1,0) + IF(Channel_IO4_G1_isSet,1,0) + IF(Channel_IO1_G2_isSet,1,0) + IF(Channel_IO2_G2_isSet,1,0) + IF(Channel_IO3_G2_isSet,1,0) + IF(Channel_IO4_G2_isSet,1,0) + IF(Channel_IO5_G2_isSet,1,0) + IF(Channel_IO1_G3_isSet,1,0) + IF(Channel_IO2_G3_isSet,1,0) + IF(Channel_IO3_G3_isSet,1,0) + IF(Channel_IO4_G3_isSet,1,0) + IF(Channel_IO5_G3_isSet,1,0) + IF(Channel_IO1_G4_isSet,1,0) + IF(Channel_IO2_G4_isSet,1,0) + IF(Channel_IO3_G4_isSet,1,0) + IF(Channel_IO4_G4_isSet,1,0) + IF(Channel_IO1_G5_isSet,1,0) + IF(Channel_IO2_G5_isSet,1,0) + IF(Channel_IO3_G5_isSet,1,0) + IF(Channel_IO4_G5_isSet,1,0) + IF(Channel_IO1_G6_isSet,1,0) + IF(Channel_IO2_G6_isSet,1,0) + IF(Channel_IO3_G6_isSet,1,0) + IF(Channel_IO4_G6_isSet,1,0) + IF(Channel_IO1_G7_isSet,1,0) + IF(Channel_IO2_G7_isSet,1,0) + IF(Channel_IO3_G7_isSet,1,0) + IF(Channel_IO4_G7_isSet,1,0) + IF(Channel_IO5_G7_isSet,1,0) + IF(Channel_IO6_G7_isSet,1,0) + IF(Channel_IO7_G7_isSet,1,0) + IF(Channel_IO1_G8_isSet,1,0) + IF(Channel_IO2_G8_isSet,1,0) + IF(Channel_IO3_G8_isSet,1,0) + IF(Channel_IO4_G8_isSet,1,0))" Group="TSC Settings" Name="Gx_IOx-Channel" Type="integer" Min="0" Max="24" Visible="false">
		</RefParameter>
   		<!--  RefParameters mandatory for TouchSensing MW - Shield -->
		<RefParameter Comment="Gx_IOx-Shield" DefaultValue="=(IF(Shield_IO_G1_isSet,1,0) + IF(Shield_IO_G2_isSet,1,0) + IF(Shield_IO_G3_isSet,1,0) + IF(Shield_IO_G4_isSet,1,0) + IF(Shield_IO_G5_isSet,1,0) + IF(Shield_IO_G6_isSet,1,0) + IF(Shield_IO_G7_isSet,1,0) + IF(Shield_IO_G8_isSet,1,0))" Group="TSC Settings" Name="Gx_IOx-Shield" Type="integer" Min="0" Max="8" Visible="false">
		</RefParameter>
   		<!--  RefParameters mandatory for TouchSensing MW - end -->

<!--
	**************************************** Goup 1 RefModes *********************************************
-->
	<!-- Sampling Ref Mode for Group 1 -->
	<RefMode BaseMode="TSCSettings" Comment="" Name="G1_IO1-Sampling">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="SamplingIOs">
			<PossibleValue>TSC_GROUP1_IO1</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G1_IO2-Sampling">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="SamplingIOs">
			<PossibleValue>TSC_GROUP1_IO2</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G1_IO3-Sampling">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="SamplingIOs">
			<PossibleValue>TSC_GROUP1_IO3</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G1_IO4-Sampling">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="SamplingIOs">
			<PossibleValue>TSC_GROUP1_IO4</PossibleValue>
		</Parameter>
	</RefMode>	

	<!-- Shield Ref Mode for Group 1 -->
    <RefMode BaseMode="TSCSettings" Comment="" Name="G1_IO1-Shield">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ShieldIOs">
			<PossibleValue>TSC_GROUP1_IO1</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G1_IO2-Shield">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ShieldIOs">
			<PossibleValue>TSC_GROUP1_IO2</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G1_IO3-Shield">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ShieldIOs">
			<PossibleValue>TSC_GROUP1_IO3</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G1_IO4-Shield">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ShieldIOs">
			<PossibleValue>TSC_GROUP1_IO4</PossibleValue>
		</Parameter>
	</RefMode>	

	<!-- Channel Ref Mode for Group 1 -->
    <RefMode BaseMode="TSCSettings" Comment="" Name="G1_IO1-Channel">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ChannelIOs">
			<PossibleValue>TSC_GROUP1_IO1</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G1_IO2-Channel">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ChannelIOs">
			<PossibleValue>TSC_GROUP1_IO2</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G1_IO3-Channel">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ChannelIOs">
			<PossibleValue>TSC_GROUP1_IO3</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G1_IO4-Channel">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ChannelIOs">
			<PossibleValue>TSC_GROUP1_IO4</PossibleValue>
		</Parameter>
	</RefMode>

	<!--
	**************************************** Goup 2 RefModes *********************************************
	-->
	<!-- Sampling Ref Mode for Group 2 -->
	<RefMode BaseMode="TSCSettings" Comment="" Name="G2_IO1-Sampling">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="SamplingIOs">
			<PossibleValue>TSC_GROUP2_IO1</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G2_IO2-Sampling">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="SamplingIOs">
			<PossibleValue>TSC_GROUP2_IO2</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G2_IO3-Sampling">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="SamplingIOs">
			<PossibleValue>TSC_GROUP2_IO3</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G2_IO4-Sampling">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="SamplingIOs">
			<PossibleValue>TSC_GROUP2_IO4</PossibleValue>
		</Parameter>
	</RefMode>	
	
	<!-- Shield Ref Mode for Group 1 -->
    <RefMode BaseMode="TSCSettings" Comment="" Name="G2_IO1-Shield">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ShieldIOs">
			<PossibleValue>TSC_GROUP2_IO1</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G2_IO2-Shield">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ShieldIOs">
			<PossibleValue>TSC_GROUP2_IO2</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G2_IO3-Shield">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ShieldIOs">
			<PossibleValue>TSC_GROUP2_IO3</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G2_IO4-Shield">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ShieldIOs">
			<PossibleValue>TSC_GROUP2_IO4</PossibleValue>
		</Parameter>
	</RefMode>	
	
	<!-- Channel Ref Mode for Group 1 -->
    <RefMode BaseMode="TSCSettings" Comment="" Name="G2_IO1-Channel">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ChannelIOs">
			<PossibleValue>TSC_GROUP2_IO1</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G2_IO2-Channel">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ChannelIOs">
			<PossibleValue>TSC_GROUP2_IO2</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G2_IO3-Channel">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ChannelIOs">
			<PossibleValue>TSC_GROUP2_IO3</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G2_IO4-Channel">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ChannelIOs">
			<PossibleValue>TSC_GROUP2_IO4</PossibleValue>
		</Parameter>
	</RefMode>
	
	<!--  
	**************************************** Goup 3 RefModes *********************************************
	-->
	<!-- Sampling Ref Mode for Group 3 -->
	<RefMode BaseMode="TSCSettings" Comment="" Name="G3_IO1-Sampling">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="SamplingIOs">
			<PossibleValue>TSC_GROUP3_IO1</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G3_IO2-Sampling">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="SamplingIOs">
			<PossibleValue>TSC_GROUP3_IO2</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G3_IO3-Sampling">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="SamplingIOs">
			<PossibleValue>TSC_GROUP3_IO3</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G3_IO4-Sampling">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="SamplingIOs">
			<PossibleValue>TSC_GROUP3_IO4</PossibleValue>
		</Parameter>
	</RefMode>	
	
	<!-- Shield Ref Mode for Group 3 -->
    <RefMode BaseMode="TSCSettings" Comment="" Name="G3_IO1-Shield">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ShieldIOs">
			<PossibleValue>TSC_GROUP3_IO1</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G3_IO2-Shield">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ShieldIOs">
			<PossibleValue>TSC_GROUP3_IO2</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G3_IO3-Shield">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ShieldIOs">
			<PossibleValue>TSC_GROUP3_IO3</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G3_IO4-Shield">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ShieldIOs">
			<PossibleValue>TSC_GROUP3_IO4</PossibleValue>
		</Parameter>
	</RefMode>	
	
	<!-- Channel Ref Mode for Group 3 -->
    <RefMode BaseMode="TSCSettings" Comment="" Name="G3_IO1-Channel">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ChannelIOs">
			<PossibleValue>TSC_GROUP3_IO1</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G3_IO2-Channel">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ChannelIOs">
			<PossibleValue>TSC_GROUP3_IO2</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G3_IO3-Channel">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ChannelIOs">
			<PossibleValue>TSC_GROUP3_IO3</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G3_IO4-Channel">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ChannelIOs">
			<PossibleValue>TSC_GROUP3_IO4</PossibleValue>
		</Parameter>
	</RefMode>

	<!--  
	**************************************** Goup 4 RefModes *********************************************
	-->
	<!-- Sampling Ref Mode for Group 4 -->
	<RefMode BaseMode="TSCSettings" Comment="" Name="G4_IO1-Sampling">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="SamplingIOs">
			<PossibleValue>TSC_GROUP4_IO1</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G4_IO2-Sampling">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="SamplingIOs">
			<PossibleValue>TSC_GROUP4_IO2</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G4_IO3-Sampling">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="SamplingIOs">
			<PossibleValue>TSC_GROUP4_IO3</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G4_IO4-Sampling">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="SamplingIOs">
			<PossibleValue>TSC_GROUP4_IO4</PossibleValue>
		</Parameter>
	</RefMode>	

	<!-- Shield Ref Mode for Group 4 -->
    <RefMode BaseMode="TSCSettings" Comment="" Name="G4_IO1-Shield">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ShieldIOs">
			<PossibleValue>TSC_GROUP4_IO1</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G4_IO2-Shield">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ShieldIOs">
			<PossibleValue>TSC_GROUP4_IO2</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G4_IO3-Shield">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ShieldIOs">
			<PossibleValue>TSC_GROUP4_IO3</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G4_IO4-Shield">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ShieldIOs">
			<PossibleValue>TSC_GROUP4_IO4</PossibleValue>
		</Parameter>
	</RefMode>	

	<!-- Channel Ref Mode for Group 4 -->
    <RefMode BaseMode="TSCSettings" Comment="" Name="G4_IO1-Channel">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ChannelIOs">
			<PossibleValue>TSC_GROUP4_IO1</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G4_IO2-Channel">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ChannelIOs">
			<PossibleValue>TSC_GROUP4_IO2</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G4_IO3-Channel">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ChannelIOs">
			<PossibleValue>TSC_GROUP4_IO3</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G4_IO4-Channel">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ChannelIOs">
			<PossibleValue>TSC_GROUP4_IO4</PossibleValue>
		</Parameter>
	</RefMode>

	<!--  
	**************************************** Goup 5 RefModes *********************************************
	-->
	<!-- Sampling Ref Mode for Group 5 -->
	<RefMode BaseMode="TSCSettings" Comment="" Name="G5_IO1-Sampling">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="SamplingIOs">
			<PossibleValue>TSC_GROUP5_IO1</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G5_IO2-Sampling">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="SamplingIOs">
			<PossibleValue>TSC_GROUP5_IO2</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G5_IO3-Sampling">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="SamplingIOs">
			<PossibleValue>TSC_GROUP5_IO3</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G5_IO4-Sampling">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="SamplingIOs">
			<PossibleValue>TSC_GROUP5_IO4</PossibleValue>
		</Parameter>
	</RefMode>	

	<!-- Shield Ref Mode for Group 5 -->
    <RefMode BaseMode="TSCSettings" Comment="" Name="G5_IO1-Shield">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ShieldIOs">
			<PossibleValue>TSC_GROUP5_IO1</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G5_IO2-Shield">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ShieldIOs">
			<PossibleValue>TSC_GROUP5_IO2</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G5_IO3-Shield">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ShieldIOs">
			<PossibleValue>TSC_GROUP5_IO3</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G5_IO4-Shield">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ShieldIOs">
			<PossibleValue>TSC_GROUP5_IO4</PossibleValue>
		</Parameter>
	</RefMode>	

	<!-- Channel Ref Mode for Group 5 -->
    <RefMode BaseMode="TSCSettings" Comment="" Name="G5_IO1-Channel">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ChannelIOs">
			<PossibleValue>TSC_GROUP5_IO1</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G5_IO2-Channel">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ChannelIOs">
			<PossibleValue>TSC_GROUP5_IO2</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G5_IO3-Channel">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ChannelIOs">
			<PossibleValue>TSC_GROUP5_IO3</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G5_IO4-Channel">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ChannelIOs">
			<PossibleValue>TSC_GROUP5_IO4</PossibleValue>
		</Parameter>
	</RefMode>

	<!--  
	**************************************** Goup 6 RefModes *********************************************
	-->
	<!-- Sampling Ref Mode for Group 6 -->
	<RefMode BaseMode="TSCSettings" Comment="" Name="G6_IO1-Sampling">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="SamplingIOs">
			<PossibleValue>TSC_GROUP6_IO1</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G6_IO2-Sampling">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="SamplingIOs">
			<PossibleValue>TSC_GROUP6_IO2</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G6_IO3-Sampling">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="SamplingIOs">
			<PossibleValue>TSC_GROUP6_IO3</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G6_IO4-Sampling">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="SamplingIOs">
			<PossibleValue>TSC_GROUP6_IO4</PossibleValue>
		</Parameter>
	</RefMode>	

	<!-- Shield Ref Mode for Group 6 -->
    <RefMode BaseMode="TSCSettings" Comment="" Name="G6_IO1-Shield">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ShieldIOs">
			<PossibleValue>TSC_GROUP6_IO1</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G6_IO2-Shield">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ShieldIOs">
			<PossibleValue>TSC_GROUP6_IO2</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G6_IO3-Shield">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ShieldIOs">
			<PossibleValue>TSC_GROUP6_IO3</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G6_IO4-Shield">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ShieldIOs">
			<PossibleValue>TSC_GROUP6_IO4</PossibleValue>
		</Parameter>
	</RefMode>	

	<!-- Channel Ref Mode for Group 6 -->
    <RefMode BaseMode="TSCSettings" Comment="" Name="G6_IO1-Channel">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ChannelIOs">
			<PossibleValue>TSC_GROUP6_IO1</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G6_IO2-Channel">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ChannelIOs">
			<PossibleValue>TSC_GROUP6_IO2</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G6_IO3-Channel">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ChannelIOs">
			<PossibleValue>TSC_GROUP6_IO3</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G6_IO4-Channel">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ChannelIOs">
			<PossibleValue>TSC_GROUP6_IO4</PossibleValue>
		</Parameter>
	</RefMode>

	<!--  
	**************************************** Goup 7 RefModes *********************************************
	-->
	<!-- Sampling Ref Mode for Group 7 -->
	<RefMode BaseMode="TSCSettings" Comment="" Name="G7_IO1-Sampling">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="SamplingIOs">
			<PossibleValue>TSC_GROUP7_IO1</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G7_IO2-Sampling">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="SamplingIOs">
			<PossibleValue>TSC_GROUP7_IO2</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G7_IO3-Sampling">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="SamplingIOs">
			<PossibleValue>TSC_GROUP7_IO3</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G7_IO4-Sampling">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="SamplingIOs">
			<PossibleValue>TSC_GROUP7_IO4</PossibleValue>
		</Parameter>
	</RefMode>	

	<!-- Shield Ref Mode for Group 7 -->
    <RefMode BaseMode="TSCSettings" Comment="" Name="G7_IO1-Shield">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ShieldIOs">
			<PossibleValue>TSC_GROUP7_IO1</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G7_IO2-Shield">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ShieldIOs">
			<PossibleValue>TSC_GROUP7_IO2</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G7_IO3-Shield">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ShieldIOs">
			<PossibleValue>TSC_GROUP7_IO3</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G7_IO4-Shield">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ShieldIOs">
			<PossibleValue>TSC_GROUP7_IO4</PossibleValue>
		</Parameter>
	</RefMode>	

	<!-- Channel Ref Mode for Group 7 -->
    <RefMode BaseMode="TSCSettings" Comment="" Name="G7_IO1-Channel">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ChannelIOs">
			<PossibleValue>TSC_GROUP7_IO1</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G7_IO2-Channel">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ChannelIOs">
			<PossibleValue>TSC_GROUP7_IO2</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G7_IO3-Channel">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ChannelIOs">
			<PossibleValue>TSC_GROUP7_IO3</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G7_IO4-Channel">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ChannelIOs">
			<PossibleValue>TSC_GROUP7_IO4</PossibleValue>
		</Parameter>
	</RefMode>

	<!--  
	**************************************** Goup 8 RefModes *********************************************
	-->
	<!-- Sampling Ref Mode for Group 8 -->
	<RefMode BaseMode="TSCSettings" Comment="" Name="G8_IO1-Sampling">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="SamplingIOs">
			<PossibleValue>TSC_GROUP8_IO1</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G8_IO2-Sampling">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="SamplingIOs">
			<PossibleValue>TSC_GROUP8_IO2</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G8_IO3-Sampling">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="SamplingIOs">
			<PossibleValue>TSC_GROUP8_IO3</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G8_IO4-Sampling">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="SamplingIOs">
			<PossibleValue>TSC_GROUP8_IO4</PossibleValue>
		</Parameter>
	</RefMode>	

	<!-- Shield Ref Mode for Group 8 -->
    <RefMode BaseMode="TSCSettings" Comment="" Name="G8_IO1-Shield">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ShieldIOs">
			<PossibleValue>TSC_GROUP8_IO1</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G8_IO2-Shield">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ShieldIOs">
			<PossibleValue>TSC_GROUP8_IO2</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G8_IO3-Shield">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ShieldIOs">
			<PossibleValue>TSC_GROUP8_IO3</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G8_IO4-Shield">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ShieldIOs">
			<PossibleValue>TSC_GROUP8_IO4</PossibleValue>
		</Parameter>
	</RefMode>	

	<!-- Channel Ref Mode for Group 8 -->
    <RefMode BaseMode="TSCSettings" Comment="" Name="G8_IO1-Channel">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ChannelIOs">
			<PossibleValue>TSC_GROUP8_IO1</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G8_IO2-Channel">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ChannelIOs">
			<PossibleValue>TSC_GROUP8_IO2</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G8_IO3-Channel">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ChannelIOs">
			<PossibleValue>TSC_GROUP8_IO3</PossibleValue>
		</Parameter>
	</RefMode>
	<RefMode BaseMode="TSCSettings" Comment="" Name="G8_IO4-Channel">
		<ConfigForMode>TSC_Init</ConfigForMode>
		<Parameter Name="ChannelIOs">
			<PossibleValue>TSC_GROUP8_IO4</PossibleValue>
		</Parameter>
	</RefMode>	

	<!-- Modes *******************************************************************-->
	<ModeLogicOperator Name="OR">
   		<Mode Name="G1" UserName="Group 1">
    		<ModeLogicOperator Name="OR">

    			<!-- The I/O Sampling choice -->
    		    <Mode Name="Sampling" UserName="Sampling">
    		    	<Condition Diagnostic="All IOs are selected as Channel IO in this group" Expression="!(Channel_IO1_G1_isSet &amp; Channel_IO2_G1_isSet &amp; Channel_IO3_G1_isSet &amp; Channel_IO4_G1_isSet)"/>
    			    <ModeLogicOperator Name="XOR">
       				     <Mode Name="G1_IO1-Sampling" UserName="G1_IO1">
       				     <Condition Diagnostic="This IO is selected as Shield or Channel IO in this group" Expression="!(Shield_IO1_G1_isSet|Channel_IO1_G1_isSet)"/>
       						<SignalLogicalOp Name="AND">
       					         <Signal IOMode="TSCAlternateFunctionSampling" Name="G1_IO1"/>
      				        </SignalLogicalOp>
       				       <Semaphore>Sampling_IO1_G1_isSet</Semaphore>
        			    </Mode>
            			<Mode Name="G1_IO2-Sampling" UserName="G1_IO2">
            			 <Condition Diagnostic="This IO is selected as Shield or Channel IO in this group" Expression="!(Shield_IO2_G1_isSet|Channel_IO2_G1_isSet)"/>
            			  <SignalLogicalOp Name="AND">
           				     <Signal IOMode="TSCAlternateFunctionSampling" Name="G1_IO2"/>
           					   </SignalLogicalOp>
          				    <Semaphore>Sampling_IO2_G1_isSet</Semaphore>
          				</Mode>
        			    <Mode Name="G1_IO3-Sampling" UserName="G1_IO3">
        			     <Condition Diagnostic="This IO is selected as Shield or Channel IO in this group" Expression="!(Shield_IO3_G1_isSet|Channel_IO3_G1_isSet)"/>
        			      <SignalLogicalOp Name="AND">
        			        <Signal IOMode="TSCAlternateFunctionSampling" Name="G1_IO3"/>
       					       </SignalLogicalOp>
       					    <Semaphore>Sampling_IO3_G1_isSet</Semaphore>
       				    </Mode>
       				     <Mode Name="G1_IO4-Sampling" UserName="G1_IO4">
       				     <Condition Diagnostic="This IO is selected as Shield or Channel IO in this group" Expression="!(Shield_IO4_G1_isSet|Channel_IO4_G1_isSet)"/>
      				        <SignalLogicalOp Name="AND">
       					       <Signal IOMode="TSCAlternateFunctionSampling" Name="G1_IO4"/>
         					     </SignalLogicalOp>
         					  <Semaphore>Sampling_IO4_G1_isSet</Semaphore>
         				</Mode>
        		  </ModeLogicOperator>
        		    <Semaphore>Sampling_IO_G1_isSet</Semaphore>
       		    </Mode>

                 <!-- The I/O Shield choice -->
                 <Mode Name="Shield" UserName="Shield">
                    <Condition Diagnostic="An IO is selected as Shield IO in other goups or as a Channel IO in this group" Expression="!(OneChannel_IO_G1_isSet|Shield_IO_G2_isSet|Shield_IO_G3_isSet|Shield_IO_G4_isSet|Shield_IO_G5_isSet|Shield_IO_G6_isSet|Shield_IO_G7_isSet|Shield_IO_G8_isSet)"/>
                    <ModeLogicOperator Name="XOR">
                           <Mode Name="G1_IO1-Shield" UserName="G1_IO1">
                           <Condition Diagnostic="This IO is selected as a Sampling IO in this group" Expression="!Sampling_IO1_G1_isSet"/>
                                <SignalLogicalOp Name="AND">
                                     <Signal IOMode="TSCAlternateFunctionChannel" Name="G1_IO1"/>
                                </SignalLogicalOp>
                               <Semaphore>Shield_IO1_G1_isSet</Semaphore>
                            </Mode>
                            <Mode Name="G1_IO2-Shield" UserName="G1_IO2">
                             <Condition Diagnostic="This IO is selected as a Sampling IO in this group" Expression="!Sampling_IO2_G1_isSet"/>
                              <SignalLogicalOp Name="AND">
                                 <Signal IOMode="TSCAlternateFunctionChannel" Name="G1_IO2"/>
                                   </SignalLogicalOp>
                                <Semaphore>Shield_IO2_G1_isSet</Semaphore>
                            </Mode>
                            <Mode Name="G1_IO3-Shield" UserName="G1_IO3">
                             <Condition Diagnostic="This IO is selected as a Sampling IO in this group" Expression="!Sampling_IO3_G1_isSet"/>
                              <SignalLogicalOp Name="AND">
                                <Signal IOMode="TSCAlternateFunctionChannel" Name="G1_IO3"/>
                                   </SignalLogicalOp>
                                <Semaphore>Shield_IO3_G1_isSet</Semaphore>
                            </Mode>
                             <Mode Name="G1_IO4-Shield" UserName="G1_IO4">
                              <Condition Diagnostic="This IO is selected as a Sampling IO in this group" Expression="!Sampling_IO4_G1_isSet"/>
                                <SignalLogicalOp Name="AND">
                                   <Signal IOMode="TSCAlternateFunctionChannel" Name="G1_IO4"/>
                                     </SignalLogicalOp>
                                   <Semaphore>Shield_IO4_G1_isSet</Semaphore>
                            </Mode>
                      </ModeLogicOperator>
                      <Semaphore>Shield_IO_G1_isSet</Semaphore>
                 </Mode>

                <!-- The I/O Channels choice -->
                <Mode Name="G1_IO1" RemoveCondition="Shield_IO_G1_isSet" UserName="G1_IO1">
                    <Condition Diagnostic="This IO is selected as Sampling IO in this group, or a Shield IO is used in this group" Expression="!(Sampling_IO1_G1_isSet|Shield_IO_G1_isSet)"/>
                      <ModeLogicOperator Name="OR">
                           <Mode Name="G1_IO1-Channel" UserName="G1_IO1">
                                 <SignalLogicalOp Name="AND">
                                      <Signal IOMode="TSCAlternateFunctionChannel" Name="G1_IO1"/>
                                </SignalLogicalOp>
                          </Mode>
                     </ModeLogicOperator>
                     <Semaphore>Channel_IO1_G1_isSet</Semaphore>
                     <Semaphore>OneChannel_IO_G1_isSet</Semaphore>
                </Mode>
                <Mode Name="G1_IO2" UserName="G1_IO2">
                    <Condition Diagnostic="This IO is selected as Sampling IO in this group, or a Shield IO is used in this group" Expression="!(Shield_IO_G1_isSet|Sampling_IO2_G1_isSet)"/>
                    <ModeLogicOperator Name="OR">
                        <Mode Name="G1_IO2-Channel" UserName="G1_IO2">
                            <SignalLogicalOp Name="AND">
                                <Signal IOMode="TSCAlternateFunctionChannel" Name="G1_IO2"/>
                              </SignalLogicalOp>
                        </Mode>
                    </ModeLogicOperator>
                    <Semaphore>Channel_IO2_G1_isSet</Semaphore>
                    <Semaphore>OneChannel_IO_G1_isSet</Semaphore>
                </Mode>
                <Mode Name="G1_IO3" UserName="G1_IO3">
                    <Condition Diagnostic="This IO is selected as Sampling IO in this group, or a Shield IO is used in this group" Expression="!(Shield_IO_G1_isSet|Sampling_IO3_G1_isSet)"/>
                    <ModeLogicOperator Name="OR">
                        <Mode Name="G1_IO3-Channel" UserName="G1_IO3">
                            <SignalLogicalOp Name="AND">
                                <Signal IOMode="TSCAlternateFunctionChannel" Name="G1_IO3"/>
                            </SignalLogicalOp>
                        </Mode>
                    </ModeLogicOperator>
                    <Semaphore>Channel_IO3_G1_isSet</Semaphore>
                    <Semaphore>OneChannel_IO_G1_isSet</Semaphore>
                </Mode>
                <Mode Name="G1_IO4" UserName="G1_IO4">
                     <Condition Diagnostic="This IO is selected as Sampling IO in this group, or a Shield IO is used in this group" Expression="!(Shield_IO_G1_isSet|Sampling_IO4_G1_isSet)"/>
                     <ModeLogicOperator Name="OR">
                           <Mode Name="G1_IO4-Channel" UserName="G1_IO4">
                             <SignalLogicalOp Name="AND">
                               <Signal IOMode="TSCAlternateFunctionChannel" Name="G1_IO4"/>
                             </SignalLogicalOp>
                          </Mode>
                     </ModeLogicOperator>
                     <Semaphore>Channel_IO4_G1_isSet</Semaphore>
                     <Semaphore>OneChannel_IO_G1_isSet</Semaphore>
                    </Mode>
                </ModeLogicOperator>
            <Semaphore>GROUP1_isUsed</Semaphore>
        </Mode>

        <Mode Name="G2" UserName="Group 2">
                <ModeLogicOperator Name="OR">

                    <!-- The I/O Sampling choice -->
                    <Mode Name="Sampling" UserName="Sampling">
                        <Condition Diagnostic="All IOs are selected as Channel IO in this group" Expression="!(Channel_IO1_G2_isSet &amp; Channel_IO2_G2_isSet &amp; Channel_IO3_G2_isSet &amp; Channel_IO4_G2_isSet)"/>
                        <ModeLogicOperator Name="XOR">
                             <Mode Name="G2_IO1-Sampling" UserName="G2_IO1">
                             <Condition Diagnostic="This IO is selected as Shield or Channel IO in this group" Expression="!(Shield_IO1_G2_isSet|Channel_IO1_G2_isSet)"/>
                                <SignalLogicalOp Name="AND">
                                     <Signal IOMode="TSCAlternateFunctionSampling" Name="G2_IO1"/>
                                </SignalLogicalOp>
                               <Semaphore>Sampling_IO1_G2_isSet</Semaphore>
                            </Mode>
                            <Mode Name="G2_IO2-Sampling" UserName="G2_IO2">
                             <Condition Diagnostic="This IO is selected as Shield or Channel IO in this group" Expression="!(Shield_IO2_G2_isSet|Channel_IO2_G2_isSet)"/>
                              <SignalLogicalOp Name="AND">
                                 <Signal IOMode="TSCAlternateFunctionSampling" Name="G2_IO2"/>
                                   </SignalLogicalOp>
                                <Semaphore>Sampling_IO2_G2_isSet</Semaphore>
                            </Mode>
                            <Mode Name="G2_IO3-Sampling" UserName="G2_IO3">
                             <Condition Diagnostic="This IO is selected as Shield or Channel IO in this group" Expression="!(Shield_IO3_G2_isSet|Channel_IO3_G2_isSet)"/>
                              <SignalLogicalOp Name="AND">
                                <Signal IOMode="TSCAlternateFunctionSampling" Name="G2_IO3"/>
                                   </SignalLogicalOp>
                                <Semaphore>Sampling_IO3_G2_isSet</Semaphore>
                            </Mode>
                             <Mode Name="G2_IO4-Sampling" UserName="G2_IO4">
                             <Condition Diagnostic="This IO is selected as Shield or Channel IO in this group" Expression="!(Shield_IO4_G2_isSet|Channel_IO4_G2_isSet)"/>
                                <SignalLogicalOp Name="AND">
                                   <Signal IOMode="TSCAlternateFunctionSampling" Name="G2_IO4"/>
                                     </SignalLogicalOp>
                                  <Semaphore>Sampling_IO4_G2_isSet</Semaphore>
                            </Mode>
                      </ModeLogicOperator>
                      <Semaphore>Sampling_IO_G2_isSet</Semaphore>
                 </Mode>

                 <!-- The I/O Shield choice -->
                 <Mode Name="Shield" UserName="Shield">
                    <Condition Diagnostic="An IO is selected as Shield IO in other goups or as a Channel IO in this group" Expression="!(OneChannel_IO_G2_isSet|Shield_IO_G1_isSet|Shield_IO_G3_isSet|Shield_IO_G4_isSet|Shield_IO_G5_isSet|Shield_IO_G6_isSet|Shield_IO_G7_isSet|Shield_IO_G8_isSet)"/>
                      <ModeLogicOperator Name="XOR">
                           <Mode Name="G2_IO1-Shield" UserName="G2_IO1">
                           <Condition Diagnostic="This IO is selected as a Sampling IO in this group" Expression="!Sampling_IO1_G2_isSet"/>
                                <SignalLogicalOp Name="AND">
                                     <Signal IOMode="TSCAlternateFunctionChannel" Name="G2_IO1"/>
                                </SignalLogicalOp>
                               <Semaphore>Shield_IO1_G2_isSet</Semaphore>
                            </Mode>
                            <Mode Name="G2_IO2-Shield" UserName="G2_IO2">
                             <Condition Diagnostic="This IO is selected as a Sampling IO in this group" Expression="!Sampling_IO2_G2_isSet"/>
                              <SignalLogicalOp Name="AND">
                                 <Signal IOMode="TSCAlternateFunctionChannel" Name="G2_IO2"/>
                                   </SignalLogicalOp>
                                <Semaphore>Shield_IO2_G2_isSet</Semaphore>
                            </Mode>
                            <Mode Name="G2_IO3-Shield" UserName="G2_IO3">
                             <Condition Diagnostic="This IO is selected as a Sampling IO in this group" Expression="!Sampling_IO3_G2_isSet"/>
                              <SignalLogicalOp Name="AND">
                                <Signal IOMode="TSCAlternateFunctionChannel" Name="G2_IO3"/>
                                   </SignalLogicalOp>
                                <Semaphore>Shield_IO3_G2_isSet</Semaphore>
                            </Mode>
                             <Mode Name="G2_IO4-Shield" UserName="G2_IO4">
                              <Condition Diagnostic="This IO is selected as a Sampling IO in this group" Expression="!Sampling_IO4_G2_isSet"/>
                                <SignalLogicalOp Name="AND">
                                   <Signal IOMode="TSCAlternateFunctionChannel" Name="G2_IO4"/>
                                     </SignalLogicalOp>
                                   <Semaphore>Shield_IO4_G2_isSet</Semaphore>
                            </Mode>
                      </ModeLogicOperator>
                      <Semaphore>Shield_IO_G2_isSet</Semaphore>
                 </Mode>

                <!-- The I/O Channels choice -->
                <Mode Name="G2_IO1" UserName="G2_IO1">
                    <Condition Diagnostic="This IO is selected as Sampling IO in this group, or a Shield IO is used in this group" Expression="!(Shield_IO_G2_isSet|Sampling_IO1_G2_isSet)"/>
                      <ModeLogicOperator Name="OR">
                           <Mode Name="G2_IO1-Channel" UserName="G2_IO1">
                                 <SignalLogicalOp Name="AND">
                                      <Signal IOMode="TSCAlternateFunctionChannel" Name="G2_IO1"/>
                                </SignalLogicalOp>
                          </Mode>
                     </ModeLogicOperator>
                     <Semaphore>Channel_IO1_G2_isSet</Semaphore>
                     <Semaphore>OneChannel_IO_G2_isSet</Semaphore>
                </Mode>
                <Mode Name="G2_IO2" UserName="G2_IO2">
                    <Condition Diagnostic="This IO is selected as Sampling IO in this group, or a Shield IO is used in this group" Expression="!(Shield_IO_G2_isSet|Sampling_IO2_G2_isSet)"/>
                    <ModeLogicOperator Name="OR">
                        <Mode Name="G2_IO2-Channel" UserName="G2_IO2">
                            <SignalLogicalOp Name="AND">
                                <Signal IOMode="TSCAlternateFunctionChannel" Name="G2_IO2"/>
                              </SignalLogicalOp>
                        </Mode>
                    </ModeLogicOperator>
                    <Semaphore>Channel_IO2_G2_isSet</Semaphore>
                    <Semaphore>OneChannel_IO_G2_isSet</Semaphore>
                </Mode>
                <Mode Name="G2_IO3" UserName="G2_IO3">
                    <Condition Diagnostic="This IO is selected as Sampling IO in this group, or a Shield IO is used in this group" Expression="!(Shield_IO_G2_isSet|Sampling_IO3_G2_isSet)"/>
                        <ModeLogicOperator Name="OR">
                            <Mode Name="G2_IO3-Channel" UserName="G2_IO3">
                                <SignalLogicalOp Name="AND">
                                    <Signal IOMode="TSCAlternateFunctionChannel" Name="G2_IO3"/>
                                </SignalLogicalOp>
                            </Mode>
                        </ModeLogicOperator>
                    <Semaphore>Channel_IO3_G2_isSet</Semaphore>
                    <Semaphore>OneChannel_IO_G2_isSet</Semaphore>
                </Mode>
                <Mode Name="G2_IO4" UserName="G2_IO4">
                     <Condition Diagnostic="This IO is selected as Sampling IO in this group, or a Shield IO is used in this group" Expression="!(Shield_IO_G2_isSet|Sampling_IO4_G2_isSet)"/>
                         <ModeLogicOperator Name="OR">
                               <Mode Name="G2_IO4-Channel" UserName="G2_IO4">
                                 <SignalLogicalOp Name="AND">
                                   <Signal IOMode="TSCAlternateFunctionChannel" Name="G2_IO4"/>
                                 </SignalLogicalOp>
                              </Mode>
                         </ModeLogicOperator>
                         <Semaphore>Channel_IO4_G2_isSet</Semaphore>
                         <Semaphore>OneChannel_IO_G2_isSet</Semaphore>
                </Mode>
          </ModeLogicOperator>
          <Semaphore>GROUP2_isUsed</Semaphore>
        </Mode>

<!--        <Mode Name="G3" RemoveCondition="(LQFP48|UFQFPN48)" UserName="Group 3">
        <Mode Name="G3" RemoveCondition="((LQFP48|UFQFPN48)&amp;DIE462) | (!(LQFP64|UFBGA64)&amp;DIE464 ) | (LQFP48|UFQFPN48)&amp;DIE495)" UserName="Group 3"> -->
        <Mode Name="G3" RemoveCondition="(((UFQFPN48|UFQFPN32)&amp;DIE464)  | ((LQFP48|UFQFPN48)&amp;DIE471))" UserName="Group 3">

                <ModeLogicOperator Name="OR">

                    <!-- The I/O Sampling choice -->
                    <Mode Name="Sampling" UserName="Sampling">
                        <Condition Diagnostic="All IOs are selected as Channel IO in this group" Expression="!(Channel_IO1_G3_isSet &amp; Channel_IO2_G3_isSet &amp; Channel_IO3_G3_isSet &amp; Channel_IO4_G3_isSet)"/>
                        <ModeLogicOperator Name="XOR">
                             <Mode Name="G3_IO1-Sampling" UserName="G3_IO1">
                             <Condition Diagnostic="This IO is selected as Shield or Channel IO in this group" Expression="!(Shield_IO1_G3_isSet|Channel_IO1_G3_isSet)"/>
                                <SignalLogicalOp Name="AND">
                                     <Signal IOMode="TSCAlternateFunctionSampling" Name="G3_IO1"/>
                                </SignalLogicalOp>
                               <Semaphore>Sampling_IO1_G3_isSet</Semaphore>
                            </Mode>
                            <Mode Name="G3_IO2-Sampling" UserName="G3_IO2">
                             <Condition Diagnostic="This IO is selected as Shield or Channel IO in this group" Expression="!(Shield_IO2_G3_isSet|Channel_IO2_G3_isSet)"/>
                              <SignalLogicalOp Name="AND">
                                 <Signal IOMode="TSCAlternateFunctionSampling" Name="G3_IO2"/>
                                   </SignalLogicalOp>
                                <Semaphore>Sampling_IO2_G3_isSet</Semaphore>
                            </Mode>
                            <Mode Name="G3_IO3-Sampling" UserName="G3_IO3">
                             <Condition Diagnostic="This IO is selected as Shield or Channel IO in this group" Expression="!(Shield_IO3_G3_isSet|Channel_IO3_G3_isSet)"/>
                              <SignalLogicalOp Name="AND">
                                <Signal IOMode="TSCAlternateFunctionSampling" Name="G3_IO3"/>
                                   </SignalLogicalOp>
                                <Semaphore>Sampling_IO3_G3_isSet</Semaphore>
                            </Mode>
                             <Mode Name="G3_IO4-Sampling" UserName="G3_IO4">
                             <Condition Diagnostic="This IO is selected as Shield or Channel IO in this group" Expression="!(Shield_IO4_G3_isSet|Channel_IO4_G3_isSet)"/>
                                <SignalLogicalOp Name="AND">
                                   <Signal IOMode="TSCAlternateFunctionSampling" Name="G3_IO4"/>
                                     </SignalLogicalOp>
                                  <Semaphore>Sampling_IO4_G3_isSet</Semaphore>
                            </Mode>
                      </ModeLogicOperator>
                      <Semaphore>Sampling_IO_G3_isSet</Semaphore>
                 </Mode>

                 <!-- The I/O Shield choice -->
                 <Mode Name="Shield" UserName="Shield">
                    <Condition Diagnostic="An IO is selected as Shield IO in other goups or as a Channel IO in this group" Expression="!(OneChannel_IO_G3_isSet|Shield_IO_G1_isSet|Shield_IO_G2_isSet|Shield_IO_G4_isSet|Shield_IO_G5_isSet|Shield_IO_G6_isSet|Shield_IO_G7_isSet|Shield_IO_G8_isSet)"/>
                      <ModeLogicOperator Name="XOR">
                           <Mode Name="G3_IO1-Shield" UserName="G3_IO1">
                           <Condition Diagnostic="This IO is selected as a Sampling IO in this group" Expression="!Sampling_IO1_G3_isSet"/>
                                <SignalLogicalOp Name="AND">
                                     <Signal IOMode="TSCAlternateFunctionChannel" Name="G3_IO1"/>
                                </SignalLogicalOp>
                               <Semaphore>Shield_IO1_G3_isSet</Semaphore>
                            </Mode>
                            <Mode Name="G3_IO2-Shield" UserName="G3_IO2">
                             <Condition Diagnostic="This IO is selected as a Sampling IO in this group" Expression="!Sampling_IO2_G3_isSet"/>
                              <SignalLogicalOp Name="AND">
                                 <Signal IOMode="TSCAlternateFunctionChannel" Name="G3_IO2"/>
                                   </SignalLogicalOp>
                                <Semaphore>Shield_IO2_G3_isSet</Semaphore>
                            </Mode>
                            <Mode Name="G3_IO3-Shield" UserName="G3_IO3">
                             <Condition Diagnostic="This IO is selected as a Sampling IO in this group" Expression="!Sampling_IO3_G3_isSet"/>
                              <SignalLogicalOp Name="AND">
                                <Signal IOMode="TSCAlternateFunctionChannel" Name="G3_IO3"/>
                                   </SignalLogicalOp>
                                <Semaphore>Shield_IO3_G3_isSet</Semaphore>
                            </Mode>
                             <Mode Name="G3_IO4-Shield" UserName="G3_IO4">
                              <Condition Diagnostic="This IO is selected as a Sampling IO in this group" Expression="!Sampling_IO4_G3_isSet"/>
                                <SignalLogicalOp Name="AND">
                                   <Signal IOMode="TSCAlternateFunctionChannel" Name="G3_IO4"/>
                                     </SignalLogicalOp>
                                   <Semaphore>Shield_IO4_G3_isSet</Semaphore>
                            </Mode>
                      </ModeLogicOperator>
                      <Semaphore>Shield_IO_G3_isSet</Semaphore>
                 </Mode>

                <!-- The I/O Channels choice -->
                <Mode Name="G3_IO1" UserName="G3_IO1">
                    <Condition Diagnostic="This IO is selected as Sampling IO in this group, or a Shield IO is used in this group" Expression="!(Shield_IO_G3_isSet|Sampling_IO1_G3_isSet)"/>
                      <ModeLogicOperator Name="OR">
                           <Mode Name="G3_IO1-Channel" UserName="G3_IO1">
                                 <SignalLogicalOp Name="AND">
                                      <Signal IOMode="TSCAlternateFunctionChannel" Name="G3_IO1"/>
                                </SignalLogicalOp>
                          </Mode>
                     </ModeLogicOperator>
                     <Semaphore>Channel_IO1_G3_isSet</Semaphore>
                     <Semaphore>OneChannel_IO_G3_isSet</Semaphore>
                </Mode>
                <Mode Name="G3_IO2" UserName="G3_IO2">
                    <Condition Diagnostic="This IO is selected as Sampling IO in this group, or a Shield IO is used in this group" Expression="!(Shield_IO_G3_isSet|Sampling_IO2_G3_isSet)"/>
                    <ModeLogicOperator Name="OR">
                        <Mode Name="G3_IO2-Channel" UserName="G3_IO2">
                            <SignalLogicalOp Name="AND">
                                <Signal IOMode="TSCAlternateFunctionChannel" Name="G3_IO2"/>
                              </SignalLogicalOp>
                        </Mode>
                    </ModeLogicOperator>
                    <Semaphore>Channel_IO2_G3_isSet</Semaphore>
                    <Semaphore>OneChannel_IO_G3_isSet</Semaphore>
                </Mode>
                <Mode Name="G3_IO3" UserName="G3_IO3">
                    <Condition Diagnostic="This IO is selected as Sampling IO in this group, or a Shield IO is used in this group" Expression="!(Shield_IO_G3_isSet|Sampling_IO3_G3_isSet)"/>
                        <ModeLogicOperator Name="OR">
                            <Mode Name="G3_IO3-Channel" UserName="G3_IO3">
                                <SignalLogicalOp Name="AND">
                                    <Signal IOMode="TSCAlternateFunctionChannel" Name="G3_IO3"/>
                                </SignalLogicalOp>
                            </Mode>
                        </ModeLogicOperator>
                    <Semaphore>Channel_IO3_G3_isSet</Semaphore>
                    <Semaphore>OneChannel_IO_G3_isSet</Semaphore>
                </Mode>
                <Mode Name="G3_IO4" UserName="G3_IO4">
                     <Condition Diagnostic="This IO is selected as Sampling IO in this group, or a Shield IO is used in this group" Expression="!(Shield_IO_G3_isSet|Sampling_IO4_G3_isSet)"/>
                         <ModeLogicOperator Name="OR">
                               <Mode Name="G3_IO4-Channel" UserName="G3_IO4">
                                 <SignalLogicalOp Name="AND">
                                   <Signal IOMode="TSCAlternateFunctionChannel" Name="G3_IO4"/>
                                 </SignalLogicalOp>
                              </Mode>
                         </ModeLogicOperator>
                         <Semaphore>Channel_IO4_G3_isSet</Semaphore>
                         <Semaphore>OneChannel_IO_G3_isSet</Semaphore>
                </Mode>
          </ModeLogicOperator>
          <Semaphore>GROUP3_isUsed</Semaphore>
        </Mode>

        <Mode Name="G4" UserName="Group 4">
                <ModeLogicOperator Name="OR">

                    <!-- The I/O Sampling choice -->
                    <Mode Name="Sampling" UserName="Sampling">
                        <Condition Diagnostic="All IOs are selected as Channel IO in this group" Expression="!(Channel_IO1_G3_isSet &amp; Channel_IO2_G3_isSet &amp; Channel_IO3_G3_isSet &amp; Channel_IO4_G3_isSet)"/>
                        <ModeLogicOperator Name="XOR">
                             <Mode Name="G4_IO1-Sampling" UserName="G4_IO1">
                             <Condition Diagnostic="This IO is selected as Shield or Channel IO in this group" Expression="!(Shield_IO1_G4_isSet|Channel_IO1_G4_isSet)"/>
                                <SignalLogicalOp Name="AND">
                                     <Signal IOMode="TSCAlternateFunctionSampling" Name="G4_IO1"/>
                                </SignalLogicalOp>
                               <Semaphore>Sampling_IO1_G4_isSet</Semaphore>
                            </Mode>
                            <Mode Name="G4_IO2-Sampling" UserName="G4_IO2">
                             <Condition Diagnostic="This IO is selected as Shield or Channel IO in this group" Expression="!(Shield_IO2_G4_isSet|Channel_IO2_G4_isSet)"/>
                              <SignalLogicalOp Name="AND">
                                 <Signal IOMode="TSCAlternateFunctionSampling" Name="G4_IO2"/>
                                   </SignalLogicalOp>
                                <Semaphore>Sampling_IO2_G4_isSet</Semaphore>
                            </Mode>
                            <Mode Name="G4_IO3-Sampling" UserName="G4_IO3">
                             <Condition Diagnostic="This IO is selected as Shield or Channel IO in this group" Expression="!(Shield_IO3_G4_isSet|Channel_IO3_G4_isSet)"/>
                              <SignalLogicalOp Name="AND">
                                <Signal IOMode="TSCAlternateFunctionSampling" Name="G4_IO3"/>
                                   </SignalLogicalOp>
                                <Semaphore>Sampling_IO3_G4_isSet</Semaphore>
                            </Mode>
                             <Mode Name="G4_IO4-Sampling" UserName="G4_IO4">
                             <Condition Diagnostic="This IO is selected as Shield or Channel IO in this group" Expression="!(Shield_IO4_G4_isSet|Channel_IO4_G4_isSet)"/>
                                <SignalLogicalOp Name="AND">
                                   <Signal IOMode="TSCAlternateFunctionSampling" Name="G4_IO4"/>
                                     </SignalLogicalOp>
                                  <Semaphore>Sampling_IO4_G4_isSet</Semaphore>
                            </Mode>
                      </ModeLogicOperator>
                      <Semaphore>Sampling_IO_G4_isSet</Semaphore>
                 </Mode>

                 <!-- The I/O Shield choice -->
                 <Mode Name="Shield" UserName="Shield">
                    <Condition Diagnostic="An IO is selected as Shield IO in other goups or as a Channel IO in this group" Expression="!(OneChannel_IO_G4_isSet|Shield_IO_G1_isSet|Shield_IO_G2_isSet|Shield_IO_G3_isSet|Shield_IO_G5_isSet|Shield_IO_G6_isSet|Shield_IO_G7_isSet|Shield_IO_G8_isSet)"/>
                      <ModeLogicOperator Name="XOR">
                           <Mode Name="G4_IO1-Shield" UserName="G4_IO1">
                           <Condition Diagnostic="This IO is selected as a Sampling IO in this group" Expression="!Sampling_IO1_G4_isSet"/>
                                <SignalLogicalOp Name="AND">
                                     <Signal IOMode="TSCAlternateFunctionChannel" Name="G4_IO1"/>
                                </SignalLogicalOp>
                               <Semaphore>Shield_IO1_G4_isSet</Semaphore>
                            </Mode>
                            <Mode Name="G4_IO2-Shield" UserName="G4_IO2">
                             <Condition Diagnostic="This IO is selected as a Sampling IO in this group" Expression="!Sampling_IO2_G4_isSet"/>
                              <SignalLogicalOp Name="AND">
                                 <Signal IOMode="TSCAlternateFunctionChannel" Name="G4_IO2"/>
                                   </SignalLogicalOp>
                                <Semaphore>Shield_IO2_G4_isSet</Semaphore>
                            </Mode>
                            <Mode Name="G4_IO3-Shield" UserName="G4_IO3">
                             <Condition Diagnostic="This IO is selected as a Sampling IO in this group" Expression="!Sampling_IO3_G4_isSet"/>
                              <SignalLogicalOp Name="AND">
                                <Signal IOMode="TSCAlternateFunctionChannel" Name="G4_IO3"/>
                                   </SignalLogicalOp>
                                <Semaphore>Shield_IO3_G4_isSet</Semaphore>
                            </Mode>
                             <Mode Name="G4_IO4-Shield" UserName="G4_IO4">
                              <Condition Diagnostic="This IO is selected as a Sampling IO in this group" Expression="!Sampling_IO4_G4_isSet"/>
                                <SignalLogicalOp Name="AND">
                                   <Signal IOMode="TSCAlternateFunctionChannel" Name="G4_IO4"/>
                                     </SignalLogicalOp>
                                   <Semaphore>Shield_IO4_G4_isSet</Semaphore>
                            </Mode>
                      </ModeLogicOperator>
                      <Semaphore>Shield_IO_G4_isSet</Semaphore>
                 </Mode>

                <!-- The I/O Channels choice -->
                <Mode Name="G4_IO1" UserName="G4_IO1">
                    <Condition Diagnostic="This IO is selected as Sampling IO in this group, or a Shield IO is used in this group" Expression="!(Shield_IO_G4_isSet|Sampling_IO1_G4_isSet)"/>
                      <ModeLogicOperator Name="OR">
                           <Mode Name="G4_IO1-Channel" UserName="G4_IO1">
                                 <SignalLogicalOp Name="AND">
                                      <Signal IOMode="TSCAlternateFunctionChannel" Name="G4_IO1"/>
                                </SignalLogicalOp>
                          </Mode>
                     </ModeLogicOperator>
                     <Semaphore>Channel_IO1_G4_isSet</Semaphore>
                     <Semaphore>OneChannel_IO_G4_isSet</Semaphore>
                </Mode>
                <Mode Name="G4_IO2" UserName="G4_IO2">
                    <Condition Diagnostic="This IO is selected as Sampling IO in this group, or a Shield IO is used in this group" Expression="!(Shield_IO_G4_isSet|Sampling_IO2_G4_isSet)"/>
                    <ModeLogicOperator Name="OR">
                        <Mode Name="G4_IO2-Channel" UserName="G4_IO2">
                            <SignalLogicalOp Name="AND">
                                <Signal IOMode="TSCAlternateFunctionChannel" Name="G4_IO2"/>
                              </SignalLogicalOp>
                        </Mode>
                    </ModeLogicOperator>
                    <Semaphore>Channel_IO2_G4_isSet</Semaphore>
                    <Semaphore>OneChannel_IO_G4_isSet</Semaphore>
                </Mode>
                <Mode Name="G4_IO3" UserName="G4_IO3">
                    <Condition Diagnostic="This IO is selected as Sampling IO in this group, or a Shield IO is used in this group" Expression="!(Shield_IO_G4_isSet|Sampling_IO3_G4_isSet)"/>
                        <ModeLogicOperator Name="OR">
                            <Mode Name="G4_IO3-Channel" UserName="G4_IO3">
                                <SignalLogicalOp Name="AND">
                                    <Signal IOMode="TSCAlternateFunctionChannel" Name="G4_IO3"/>
                                </SignalLogicalOp>
                            </Mode>
                        </ModeLogicOperator>
                    <Semaphore>Channel_IO3_G4_isSet</Semaphore>
                    <Semaphore>OneChannel_IO_G4_isSet</Semaphore>
                </Mode>
                <Mode Name="G4_IO4" UserName="G4_IO4">
                     <Condition Diagnostic="This IO is selected as Sampling IO in this group, or a Shield IO is used in this group" Expression="!(Shield_IO_G4_isSet|Sampling_IO4_G4_isSet)"/>
                         <ModeLogicOperator Name="OR">
                               <Mode Name="G4_IO4-Channel" UserName="G4_IO4">
                                 <SignalLogicalOp Name="AND">
                                   <Signal IOMode="TSCAlternateFunctionChannel" Name="G4_IO4"/>
                                 </SignalLogicalOp>
                              </Mode>
                         </ModeLogicOperator>
                         <Semaphore>Channel_IO4_G4_isSet</Semaphore>
                         <Semaphore>OneChannel_IO_G4_isSet</Semaphore>
                </Mode>
          </ModeLogicOperator>
          <Semaphore>GROUP4_isUsed</Semaphore>
        </Mode>

        <Mode Name="G5" UserName="Group 5">
                <ModeLogicOperator Name="OR">
                
                    <!-- The I/O Sampling choice -->
                    <Mode Name="Sampling" UserName="Sampling">
                        <Condition Diagnostic="All IOs are selected as Channel IO in this group" Expression="!(Channel_IO1_G5_isSet &amp; Channel_IO2_G5_isSet &amp; Channel_IO3_G5_isSet &amp; Channel_IO4_G5_isSet)"/>
                        <ModeLogicOperator Name="XOR">
                             <Mode Name="G5_IO1-Sampling" UserName="G5_IO1">
                             <Condition Diagnostic="This IO is selected as Shield or Channel IO in this group" Expression="!(Shield_IO1_G5_isSet|Channel_IO1_G5_isSet)"/>
                                <SignalLogicalOp Name="AND">
                                     <Signal IOMode="TSCAlternateFunctionSampling" Name="G5_IO1"/>
                                </SignalLogicalOp>
                               <Semaphore>Sampling_IO1_G5_isSet</Semaphore>
                            </Mode>
                            <Mode Name="G5_IO2-Sampling" UserName="G5_IO2">
                             <Condition Diagnostic="This IO is selected as Shield or Channel IO in this group" Expression="!(Shield_IO2_G5_isSet|Channel_IO2_G5_isSet)"/>
                              <SignalLogicalOp Name="AND">
                                 <Signal IOMode="TSCAlternateFunctionSampling" Name="G5_IO2"/>
                                   </SignalLogicalOp>
                                <Semaphore>Sampling_IO2_G5_isSet</Semaphore>
                            </Mode>
                            <Mode Name="G5_IO3-Sampling" UserName="G5_IO3">
                             <Condition Diagnostic="This IO is selected as Shield or Channel IO in this group" Expression="!(Shield_IO3_G5_isSet|Channel_IO3_G5_isSet)"/>
                              <SignalLogicalOp Name="AND">
                                <Signal IOMode="TSCAlternateFunctionSampling" Name="G5_IO3"/>
                                   </SignalLogicalOp>
                                <Semaphore>Sampling_IO3_G5_isSet</Semaphore>
                            </Mode>
                             <Mode Name="G5_IO4-Sampling" UserName="G5_IO4">
                             <Condition Diagnostic="This IO is selected as Shield or Channel IO in this group" Expression="!(Shield_IO4_G5_isSet|Channel_IO4_G5_isSet)"/>
                                <SignalLogicalOp Name="AND">
                                   <Signal IOMode="TSCAlternateFunctionSampling" Name="G5_IO4"/>
                                     </SignalLogicalOp>
                                  <Semaphore>Sampling_IO4_G5_isSet</Semaphore>
                            </Mode>
                      </ModeLogicOperator>
                      <Semaphore>Sampling_IO_G5_isSet</Semaphore>
                 </Mode>

                 <!-- The I/O Shield choice -->
                 <Mode Name="Shield" UserName="Shield">
                    <Condition Diagnostic="An IO is selected as Shield IO in other goups or as a Channel IO in this group" Expression="!(OneChannel_IO_G5_isSet|Shield_IO_G1_isSet|Shield_IO_G2_isSet|Shield_IO_G3_isSet|Shield_IO_G4_isSet|Shield_IO_G6_isSet|Shield_IO_G7_isSet|Shield_IO_G8_isSet)"/>
                      <ModeLogicOperator Name="XOR">
                           <Mode Name="G5_IO1-Shield" UserName="G5_IO1">
                           <Condition Diagnostic="This IO is selected as a Sampling IO in this group" Expression="!Sampling_IO1_G5_isSet"/>
                                <SignalLogicalOp Name="AND">
                                     <Signal IOMode="TSCAlternateFunctionChannel" Name="G5_IO1"/>
                                </SignalLogicalOp>
                               <Semaphore>Shield_IO1_G5_isSet</Semaphore>
                            </Mode>
                            <Mode Name="G5_IO2-Shield" UserName="G5_IO2">
                             <Condition Diagnostic="This IO is selected as a Sampling IO in this group" Expression="!Sampling_IO2_G5_isSet"/>
                              <SignalLogicalOp Name="AND">
                                 <Signal IOMode="TSCAlternateFunctionChannel" Name="G5_IO2"/>
                                   </SignalLogicalOp>
                                <Semaphore>Shield_IO2_G5_isSet</Semaphore>
                            </Mode>
                            <Mode Name="G5_IO3-Shield" UserName="G5_IO3">
                             <Condition Diagnostic="This IO is selected as a Sampling IO in this group" Expression="!Sampling_IO3_G5_isSet"/>
                              <SignalLogicalOp Name="AND">
                                <Signal IOMode="TSCAlternateFunctionChannel" Name="G5_IO3"/>
                                   </SignalLogicalOp>
                                <Semaphore>Shield_IO3_G5_isSet</Semaphore>
                            </Mode>
                             <Mode Name="G5_IO4-Shield" UserName="G5_IO4">
                              <Condition Diagnostic="This IO is selected as a Sampling IO in this group" Expression="!Sampling_IO4_G5_isSet"/>
                                <SignalLogicalOp Name="AND">
                                   <Signal IOMode="TSCAlternateFunctionChannel" Name="G5_IO4"/>
                                     </SignalLogicalOp>
                                   <Semaphore>Shield_IO4_G5_isSet</Semaphore>
                            </Mode>
                      </ModeLogicOperator>
                      <Semaphore>Shield_IO_G5_isSet</Semaphore>
                 </Mode>

                <!-- The I/O Channels choice -->
                <Mode Name="G5_IO1" UserName="G5_IO1">
                    <Condition Diagnostic="This IO is selected as Sampling IO in this group, or a Shield IO is used in this group" Expression="!(Shield_IO_G5_isSet|Sampling_IO1_G5_isSet)"/>
                      <ModeLogicOperator Name="OR">
                           <Mode Name="G5_IO1-Channel" UserName="G5_IO1">
                                 <SignalLogicalOp Name="AND">
                                      <Signal IOMode="TSCAlternateFunctionChannel" Name="G5_IO1"/>
                                </SignalLogicalOp>
                          </Mode>
                     </ModeLogicOperator>
                     <Semaphore>Channel_IO1_G5_isSet</Semaphore>
                     <Semaphore>OneChannel_IO_G5_isSet</Semaphore>
                </Mode>
                <Mode Name="G5_IO2" UserName="G5_IO2">
                    <Condition Diagnostic="This IO is selected as Sampling IO in this group, or a Shield IO is used in this group" Expression="!(Shield_IO_G5_isSet|Sampling_IO2_G5_isSet)"/>
                    <ModeLogicOperator Name="OR">
                        <Mode Name="G5_IO2-Channel" UserName="G5_IO2">
                            <SignalLogicalOp Name="AND">
                                <Signal IOMode="TSCAlternateFunctionChannel" Name="G5_IO2"/>
                              </SignalLogicalOp>
                        </Mode>
                    </ModeLogicOperator>
                    <Semaphore>Channel_IO2_G5_isSet</Semaphore>
                    <Semaphore>OneChannel_IO_G5_isSet</Semaphore>
                </Mode>
                <Mode Name="G5_IO3" UserName="G5_IO3">
                    <Condition Diagnostic="This IO is selected as Sampling IO in this group, or a Shield IO is used in this group" Expression="!(Shield_IO_G5_isSet|Sampling_IO3_G5_isSet)"/>
                        <ModeLogicOperator Name="OR">
                            <Mode Name="G5_IO3-Channel" UserName="G5_IO3">
                                <SignalLogicalOp Name="AND">
                                    <Signal IOMode="TSCAlternateFunctionChannel" Name="G5_IO3"/>
                                </SignalLogicalOp>
                            </Mode>
                        </ModeLogicOperator>
                    <Semaphore>Channel_IO3_G5_isSet</Semaphore>
                    <Semaphore>OneChannel_IO_G5_isSet</Semaphore>
                </Mode>
                <Mode Name="G5_IO4" UserName="G5_IO4">
                     <Condition Diagnostic="This IO is selected as Sampling IO in this group, or a Shield IO is used in this group" Expression="!(Shield_IO_G5_isSet|Sampling_IO4_G5_isSet)"/>
                         <ModeLogicOperator Name="OR">
                               <Mode Name="G5_IO4-Channel" UserName="G5_IO4">
                                 <SignalLogicalOp Name="AND">
                                   <Signal IOMode="TSCAlternateFunctionChannel" Name="G5_IO4"/>
                                 </SignalLogicalOp>
                              </Mode>
                         </ModeLogicOperator>
                         <Semaphore>Channel_IO4_G5_isSet</Semaphore>
                         <Semaphore>OneChannel_IO_G5_isSet</Semaphore>
                </Mode>
          </ModeLogicOperator>
          <Semaphore>GROUP5_isUsed</Semaphore>
        </Mode>

        <Mode Name="G6" UserName="Group 6">
                <ModeLogicOperator Name="OR">
                
                    <!-- The I/O Sampling choice -->
                    <Mode Name="Sampling" UserName="Sampling">
                        <Condition Diagnostic="All IOs are selected as Channel IO in this group" Expression="!(Channel_IO1_G6_isSet &amp; Channel_IO2_G6_isSet &amp; Channel_IO3_G6_isSet &amp; Channel_IO4_G6_isSet)"/>
                        <ModeLogicOperator Name="XOR">
                             <Mode Name="G6_IO1-Sampling" UserName="G6_IO1">
                             <Condition Diagnostic="This IO is selected as Shield or Channel IO in this group" Expression="!(Shield_IO1_G6_isSet|Channel_IO1_G6_isSet)"/>
                                <SignalLogicalOp Name="AND">
                                     <Signal IOMode="TSCAlternateFunctionSampling" Name="G6_IO1"/>
                                </SignalLogicalOp>
                               <Semaphore>Sampling_IO1_G6_isSet</Semaphore>
                            </Mode>
                            <Mode Name="G6_IO2-Sampling" UserName="G6_IO2">
                             <Condition Diagnostic="This IO is selected as Shield or Channel IO in this group" Expression="!(Shield_IO2_G6_isSet|Channel_IO2_G6_isSet)"/>
                              <SignalLogicalOp Name="AND">
                                 <Signal IOMode="TSCAlternateFunctionSampling" Name="G6_IO2"/>
                                   </SignalLogicalOp>
                                <Semaphore>Sampling_IO2_G6_isSet</Semaphore>
                            </Mode>
                            <Mode Name="G6_IO3-Sampling" UserName="G6_IO3">
                             <Condition Diagnostic="This IO is selected as Shield or Channel IO in this group" Expression="!(Shield_IO3_G6_isSet|Channel_IO3_G6_isSet)"/>
                              <SignalLogicalOp Name="AND">
                                <Signal IOMode="TSCAlternateFunctionSampling" Name="G6_IO3"/>
                                   </SignalLogicalOp>
                                <Semaphore>Sampling_IO3_G6_isSet</Semaphore>
                            </Mode>
                             <Mode Name="G6_IO4-Sampling" UserName="G6_IO4">
                             <Condition Diagnostic="This IO is selected as Shield or Channel IO in this group" Expression="!(Shield_IO4_G6_isSet|Channel_IO4_G6_isSet)"/>
                                <SignalLogicalOp Name="AND">
                                   <Signal IOMode="TSCAlternateFunctionSampling" Name="G6_IO4"/>
                                     </SignalLogicalOp>
                                  <Semaphore>Sampling_IO4_G6_isSet</Semaphore>
                            </Mode>
                      </ModeLogicOperator>
                      <Semaphore>Sampling_IO_G6_isSet</Semaphore>
                 </Mode>

                 <!-- The I/O Shield choice -->
                 <Mode Name="Shield" UserName="Shield">
                    <Condition Diagnostic="An IO is selected as Shield IO in other goups or as a Channel IO in this group" Expression="!(OneChannel_IO_G6_isSet|Shield_IO_G1_isSet|Shield_IO_G2_isSet|Shield_IO_G3_isSet|Shield_IO_G4_isSet|Shield_IO_G5_isSet|Shield_IO_G7_isSet|Shield_IO_G8_isSet)"/>
                      <ModeLogicOperator Name="XOR">
                           <Mode Name="G6_IO1-Shield" UserName="G6_IO1">
                           <Condition Diagnostic="This IO is selected as a Sampling IO in this group" Expression="!Sampling_IO1_G6_isSet"/>
                                <SignalLogicalOp Name="AND">
                                     <Signal IOMode="TSCAlternateFunctionChannel" Name="G6_IO1"/>
                                </SignalLogicalOp>
                               <Semaphore>Shield_IO1_G6_isSet</Semaphore>
                            </Mode>
                            <Mode Name="G6_IO2-Shield" UserName="G6_IO2">
                             <Condition Diagnostic="This IO is selected as a Sampling IO in this group" Expression="!Sampling_IO2_G6_isSet"/>
                              <SignalLogicalOp Name="AND">
                                 <Signal IOMode="TSCAlternateFunctionChannel" Name="G6_IO2"/>
                                   </SignalLogicalOp>
                                <Semaphore>Shield_IO2_G6_isSet</Semaphore>
                            </Mode>
                            <Mode Name="G6_IO3-Shield" UserName="G6_IO3">
                             <Condition Diagnostic="This IO is selected as a Sampling IO in this group" Expression="!Sampling_IO3_G6_isSet"/>
                              <SignalLogicalOp Name="AND">
                                <Signal IOMode="TSCAlternateFunctionChannel" Name="G6_IO3"/>
                                   </SignalLogicalOp>
                                <Semaphore>Shield_IO3_G6_isSet</Semaphore>
                            </Mode>
                             <Mode Name="G6_IO4-Shield" UserName="G6_IO4">
                              <Condition Diagnostic="This IO is selected as a Sampling IO in this group" Expression="!Sampling_IO4_G6_isSet"/>
                                <SignalLogicalOp Name="AND">
                                   <Signal IOMode="TSCAlternateFunctionChannel" Name="G6_IO4"/>
                                     </SignalLogicalOp>
                                   <Semaphore>Shield_IO4_G6_isSet</Semaphore>
                            </Mode>
                      </ModeLogicOperator>
                      <Semaphore>Shield_IO_G6_isSet</Semaphore>
                 </Mode>

                <!-- The I/O Channels choice -->
                <Mode Name="G6_IO1" UserName="G6_IO1">
                    <Condition Diagnostic="This IO is selected as Sampling IO in this group, or a Shield IO is used in this group" Expression="!(Shield_IO_G6_isSet|Sampling_IO1_G6_isSet)"/>
                      <ModeLogicOperator Name="OR">
                           <Mode Name="G6_IO1-Channel" UserName="G6_IO1">
                                 <SignalLogicalOp Name="AND">
                                      <Signal IOMode="TSCAlternateFunctionChannel" Name="G6_IO1"/>
                                </SignalLogicalOp>
                          </Mode>
                     </ModeLogicOperator>
                     <Semaphore>Channel_IO1_G6_isSet</Semaphore>
                     <Semaphore>OneChannel_IO_G6_isSet</Semaphore>
                </Mode>
                <Mode Name="G6_IO2" UserName="G6_IO2">
                    <Condition Diagnostic="This IO is selected as Sampling IO in this group, or a Shield IO is used in this group" Expression="!(Shield_IO_G6_isSet|Sampling_IO2_G6_isSet)"/>
                    <ModeLogicOperator Name="OR">
                        <Mode Name="G6_IO2-Channel" UserName="G6_IO2">
                            <SignalLogicalOp Name="AND">
                                <Signal IOMode="TSCAlternateFunctionChannel" Name="G6_IO2"/>
                              </SignalLogicalOp>
                        </Mode>
                    </ModeLogicOperator>
                    <Semaphore>Channel_IO2_G6_isSet</Semaphore>
                    <Semaphore>OneChannel_IO_G6_isSet</Semaphore>
                </Mode>
                <Mode Name="G6_IO3" UserName="G6_IO3">
                    <Condition Diagnostic="This IO is selected as Sampling IO in this group, or a Shield IO is used in this group" Expression="!(Shield_IO_G6_isSet|Sampling_IO3_G6_isSet)"/>
                        <ModeLogicOperator Name="OR">
                            <Mode Name="G6_IO3-Channel" UserName="G6_IO3">
                                <SignalLogicalOp Name="AND">
                                    <Signal IOMode="TSCAlternateFunctionChannel" Name="G6_IO3"/>
                                </SignalLogicalOp>
                            </Mode>
                        </ModeLogicOperator>
                    <Semaphore>Channel_IO3_G6_isSet</Semaphore>
                    <Semaphore>OneChannel_IO_G6_isSet</Semaphore>
                </Mode>
                <Mode Name="G6_IO4" UserName="G6_IO4">
                     <Condition Diagnostic="This IO is selected as Sampling IO in this group, or a Shield IO is used in this group" Expression="!(Shield_IO_G6_isSet|Sampling_IO4_G6_isSet)"/>
                         <ModeLogicOperator Name="OR">
                               <Mode Name="G6_IO4-Channel" UserName="G6_IO4">
                                 <SignalLogicalOp Name="AND">
                                   <Signal IOMode="TSCAlternateFunctionChannel" Name="G6_IO4"/>
                                 </SignalLogicalOp>
                              </Mode>
                         </ModeLogicOperator>
                         <Semaphore>Channel_IO4_G6_isSet</Semaphore>
                         <Semaphore>OneChannel_IO_G6_isSet</Semaphore>
                </Mode>
          </ModeLogicOperator>
          <Semaphore>GROUP6_isUsed</Semaphore>
        </Mode>

        <Mode Name="G7" UserName="Group 7">
                <ModeLogicOperator Name="OR">
                
                    <!-- The I/O Sampling choice -->
                    <Mode Name="Sampling" UserName="Sampling">
                        <Condition Diagnostic="All IOs are selected as Channel IO in this group" Expression="!(Channel_IO1_G7_isSet &amp; Channel_IO2_G7_isSet &amp; Channel_IO3_G7_isSet &amp; Channel_IO4_G7_isSet)"/>
                        <ModeLogicOperator Name="XOR">
                             <Mode Name="G7_IO1-Sampling" UserName="G7_IO1">
                             <Condition Diagnostic="This IO is selected as Shield or Channel IO in this group" Expression="!(Shield_IO1_G7_isSet|Channel_IO1_G7_isSet)"/>
                                <SignalLogicalOp Name="AND">
                                     <Signal IOMode="TSCAlternateFunctionSampling" Name="G7_IO1"/>
                                </SignalLogicalOp>
                               <Semaphore>Sampling_IO1_G7_isSet</Semaphore>
                            </Mode>
                            <Mode Name="G7_IO2-Sampling" UserName="G7_IO2">
                             <Condition Diagnostic="This IO is selected as Shield or Channel IO in this group" Expression="!(Shield_IO2_G7_isSet|Channel_IO2_G7_isSet)"/>
                              <SignalLogicalOp Name="AND">
                                 <Signal IOMode="TSCAlternateFunctionSampling" Name="G7_IO2"/>
                                   </SignalLogicalOp>
                                <Semaphore>Sampling_IO2_G7_isSet</Semaphore>
                            </Mode>
                            <Mode Name="G7_IO3-Sampling" UserName="G7_IO3">
                             <Condition Diagnostic="This IO is selected as Shield or Channel IO in this group" Expression="!(Shield_IO3_G7_isSet|Channel_IO3_G7_isSet)"/>
                              <SignalLogicalOp Name="AND">
                                <Signal IOMode="TSCAlternateFunctionSampling" Name="G7_IO3"/>
                                   </SignalLogicalOp>
                                <Semaphore>Sampling_IO3_G7_isSet</Semaphore>
                            </Mode>
                             <Mode Name="G7_IO4-Sampling" UserName="G7_IO4">
                             <Condition Diagnostic="This IO is selected as Shield or Channel IO in this group" Expression="!(Shield_IO4_G7_isSet|Channel_IO4_G7_isSet)"/>
                                <SignalLogicalOp Name="AND">
                                   <Signal IOMode="TSCAlternateFunctionSampling" Name="G7_IO4"/>
                                     </SignalLogicalOp>
                                  <Semaphore>Sampling_IO4_G7_isSet</Semaphore>
                            </Mode>
                      </ModeLogicOperator>
                      <Semaphore>Sampling_IO_G7_isSet</Semaphore>
                 </Mode>

                 <!-- The I/O Shield choice -->
                 <Mode Name="Shield" UserName="Shield">
                    <Condition Diagnostic="An IO is selected as Shield IO in other goups or as a Channel IO in this group" Expression="!(OneChannel_IO_G7_isSet|Shield_IO_G1_isSet|Shield_IO_G2_isSet|Shield_IO_G3_isSet|Shield_IO_G4_isSet|Shield_IO_G5_isSet|Shield_IO_G6_isSet|Shield_IO_G8_isSet)"/>
                      <ModeLogicOperator Name="XOR">
                           <Mode Name="G7_IO1-Shield" UserName="G7_IO1">
                           <Condition Diagnostic="This IO is selected as a Sampling IO in this group" Expression="!Sampling_IO1_G7_isSet"/>
                                <SignalLogicalOp Name="AND">
                                     <Signal IOMode="TSCAlternateFunctionChannel" Name="G7_IO1"/>
                                </SignalLogicalOp>
                               <Semaphore>Shield_IO1_G7_isSet</Semaphore>
                            </Mode>
                            <Mode Name="G7_IO2-Shield" UserName="G7_IO2">
                             <Condition Diagnostic="This IO is selected as a Sampling IO in this group" Expression="!Sampling_IO2_G7_isSet"/>
                              <SignalLogicalOp Name="AND">
                                 <Signal IOMode="TSCAlternateFunctionChannel" Name="G7_IO2"/>
                                   </SignalLogicalOp>
                                <Semaphore>Shield_IO2_G7_isSet</Semaphore>
                            </Mode>
                            <Mode Name="G7_IO3-Shield" UserName="G7_IO3">
                             <Condition Diagnostic="This IO is selected as a Sampling IO in this group" Expression="!Sampling_IO3_G7_isSet"/>
                              <SignalLogicalOp Name="AND">
                                <Signal IOMode="TSCAlternateFunctionChannel" Name="G7_IO3"/>
                                   </SignalLogicalOp>
                                <Semaphore>Shield_IO3_G7_isSet</Semaphore>
                            </Mode>
                             <Mode Name="G7_IO4-Shield" UserName="G7_IO4">
                              <Condition Diagnostic="This IO is selected as a Sampling IO in this group" Expression="!Sampling_IO4_G7_isSet"/>
                                <SignalLogicalOp Name="AND">
                                   <Signal IOMode="TSCAlternateFunctionChannel" Name="G7_IO4"/>
                                     </SignalLogicalOp>
                                   <Semaphore>Shield_IO4_G7_isSet</Semaphore>
                            </Mode>
                      </ModeLogicOperator>
                      <Semaphore>Shield_IO_G7_isSet</Semaphore>
                 </Mode>

                <!-- The I/O Channels choice -->
                <Mode Name="G7_IO1" UserName="G7_IO1">
                    <Condition Diagnostic="This IO is selected as Sampling IO in this group, or a Shield IO is used in this group" Expression="!(Shield_IO_G7_isSet|Sampling_IO1_G7_isSet)"/>
                      <ModeLogicOperator Name="OR">
                           <Mode Name="G7_IO1-Channel" UserName="G7_IO1">
                                 <SignalLogicalOp Name="AND">
                                      <Signal IOMode="TSCAlternateFunctionChannel" Name="G7_IO1"/>
                                </SignalLogicalOp>
                          </Mode>
                     </ModeLogicOperator>
                     <Semaphore>Channel_IO1_G7_isSet</Semaphore>
                     <Semaphore>OneChannel_IO_G7_isSet</Semaphore>
                </Mode>
                <Mode Name="G7_IO2" UserName="G7_IO2">
                    <Condition Diagnostic="This IO is selected as Sampling IO in this group, or a Shield IO is used in this group" Expression="!(Shield_IO_G7_isSet|Sampling_IO2_G7_isSet)"/>
                    <ModeLogicOperator Name="OR">
                        <Mode Name="G7_IO2-Channel" UserName="G7_IO2">
                            <SignalLogicalOp Name="AND">
                                <Signal IOMode="TSCAlternateFunctionChannel" Name="G7_IO2"/>
                              </SignalLogicalOp>
                        </Mode>
                    </ModeLogicOperator>
                    <Semaphore>Channel_IO2_G7_isSet</Semaphore>
                    <Semaphore>OneChannel_IO_G7_isSet</Semaphore>
                </Mode>
                <Mode Name="G7_IO3" UserName="G7_IO3">
                    <Condition Diagnostic="This IO is selected as Sampling IO in this group, or a Shield IO is used in this group" Expression="!(Shield_IO_G7_isSet|Sampling_IO3_G7_isSet)"/>
                        <ModeLogicOperator Name="OR">
                            <Mode Name="G7_IO3-Channel" UserName="G7_IO3">
                                <SignalLogicalOp Name="AND">
                                    <Signal IOMode="TSCAlternateFunctionChannel" Name="G7_IO3"/>
                                </SignalLogicalOp>
                            </Mode>
                        </ModeLogicOperator>
                    <Semaphore>Channel_IO3_G7_isSet</Semaphore>
                    <Semaphore>OneChannel_IO_G7_isSet</Semaphore>
                </Mode>
                <Mode Name="G7_IO4" UserName="G7_IO4">
                     <Condition Diagnostic="This IO is selected as Sampling IO in this group, or a Shield IO is used in this group" Expression="!(Shield_IO_G7_isSet|Sampling_IO4_G7_isSet)"/>
                         <ModeLogicOperator Name="OR">
                               <Mode Name="G7_IO4-Channel" UserName="G7_IO4">
                                 <SignalLogicalOp Name="AND">
                                   <Signal IOMode="TSCAlternateFunctionChannel" Name="G7_IO4"/>
                                 </SignalLogicalOp>
                              </Mode>
                         </ModeLogicOperator>
                         <Semaphore>Channel_IO4_G7_isSet</Semaphore>
                         <Semaphore>OneChannel_IO_G7_isSet</Semaphore>
                </Mode>
          </ModeLogicOperator>
          <Semaphore>GROUP7_isUsed</Semaphore>
        </Mode>

        <Mode Name="G8" UserName="Group 8">
                <ModeLogicOperator Name="OR">

                    <!-- The I/O Sampling choice -->
                    <Mode Name="Sampling" UserName="Sampling">
                        <Condition Diagnostic="All IOs are selected as Channel IO in this group" Expression="!(Channel_IO1_G8_isSet &amp; Channel_IO2_G8_isSet &amp; Channel_IO3_G8_isSet &amp; Channel_IO4_G8_isSet)"/>
                        <ModeLogicOperator Name="XOR">
                             <Mode Name="G8_IO1-Sampling" UserName="G8_IO1">
                             <Condition Diagnostic="This IO is selected as Shield or Channel IO in this group" Expression="!(Shield_IO1_G8_isSet|Channel_IO1_G8_isSet)"/>
                                <SignalLogicalOp Name="AND">
                                     <Signal IOMode="TSCAlternateFunctionSampling" Name="G8_IO1"/>
                                </SignalLogicalOp>
                               <Semaphore>Sampling_IO1_G8_isSet</Semaphore>
                            </Mode>
                            <Mode Name="G8_IO2-Sampling" UserName="G8_IO2">
                             <Condition Diagnostic="This IO is selected as Shield or Channel IO in this group" Expression="!(Shield_IO2_G8_isSet|Channel_IO2_G8_isSet)"/>
                              <SignalLogicalOp Name="AND">
                                 <Signal IOMode="TSCAlternateFunctionSampling" Name="G8_IO2"/>
                                   </SignalLogicalOp>
                                <Semaphore>Sampling_IO2_G8_isSet</Semaphore>
                            </Mode>
                            <Mode Name="G8_IO3-Sampling" UserName="G8_IO3">
                             <Condition Diagnostic="This IO is selected as Shield or Channel IO in this group" Expression="!(Shield_IO3_G8_isSet|Channel_IO3_G8_isSet)"/>
                              <SignalLogicalOp Name="AND">
                                <Signal IOMode="TSCAlternateFunctionSampling" Name="G8_IO3"/>
                                   </SignalLogicalOp>
                                <Semaphore>Sampling_IO3_G8_isSet</Semaphore>
                            </Mode>
                             <Mode Name="G8_IO4-Sampling" UserName="G8_IO4">
                             <Condition Diagnostic="This IO is selected as Shield or Channel IO in this group" Expression="!(Shield_IO4_G8_isSet|Channel_IO4_G8_isSet)"/>
                                <SignalLogicalOp Name="AND">
                                   <Signal IOMode="TSCAlternateFunctionSampling" Name="G8_IO4"/>
                                     </SignalLogicalOp>
                                  <Semaphore>Sampling_IO4_G8_isSet</Semaphore>
                            </Mode>
                      </ModeLogicOperator>
                      <Semaphore>Sampling_IO_G8_isSet</Semaphore>
                 </Mode>

                 <!-- The I/O Shield choice -->
                 <Mode Name="Shield" UserName="Shield">
                    <Condition Diagnostic="An IO is selected as Shield IO in other goups or as a Channel IO in this group" Expression="!(OneChannel_IO_G8_isSet|Shield_IO_G1_isSet|Shield_IO_G2_isSet|Shield_IO_G3_isSet|Shield_IO_G4_isSet|Shield_IO_G5_isSet|Shield_IO_G6_isSet|Shield_IO_G7_isSet)"/>
                      <ModeLogicOperator Name="XOR">
                           <Mode Name="G8_IO1-Shield" UserName="G8_IO1">
                           <Condition Diagnostic="This IO is selected as a Sampling IO in this group" Expression="!Sampling_IO1_G8_isSet"/>
                                <SignalLogicalOp Name="AND">
                                     <Signal IOMode="TSCAlternateFunctionChannel" Name="G8_IO1"/>
                                </SignalLogicalOp>
                               <Semaphore>Shield_IO1_G8_isSet</Semaphore>
                            </Mode>
                            <Mode Name="G8_IO2-Shield" UserName="G8_IO2">
                             <Condition Diagnostic="This IO is selected as a Sampling IO in this group" Expression="!Sampling_IO2_G8_isSet"/>
                              <SignalLogicalOp Name="AND">
                                 <Signal IOMode="TSCAlternateFunctionChannel" Name="G8_IO2"/>
                                   </SignalLogicalOp>
                                <Semaphore>Shield_IO2_G8_isSet</Semaphore>
                            </Mode>
                            <Mode Name="G8_IO3-Shield" UserName="G8_IO3">
                             <Condition Diagnostic="This IO is selected as a Sampling IO in this group" Expression="!Sampling_IO3_G8_isSet"/>
                              <SignalLogicalOp Name="AND">
                                <Signal IOMode="TSCAlternateFunctionChannel" Name="G8_IO3"/>
                                   </SignalLogicalOp>
                                <Semaphore>Shield_IO3_G8_isSet</Semaphore>
                            </Mode>
                             <Mode Name="G8_IO4-Shield" UserName="G8_IO4">
                              <Condition Diagnostic="This IO is selected as a Sampling IO in this group" Expression="!Sampling_IO4_G8_isSet"/>
                                <SignalLogicalOp Name="AND">
                                   <Signal IOMode="TSCAlternateFunctionChannel" Name="G8_IO4"/>
                                     </SignalLogicalOp>
                                   <Semaphore>Shield_IO4_G8_isSet</Semaphore>
                            </Mode>
                      </ModeLogicOperator>
                      <Semaphore>Shield_IO_G8_isSet</Semaphore>
                 </Mode>

                <!-- The I/O Channels choice -->
                <Mode Name="G8_IO1" UserName="G8_IO1">
                    <Condition Diagnostic="This IO is selected as Sampling IO in this group, or a Shield IO is used in this group" Expression="!(Shield_IO_G8_isSet|Sampling_IO1_G8_isSet)"/>
                      <ModeLogicOperator Name="OR">
                           <Mode Name="G8_IO1-Channel" UserName="G8_IO1">
                                 <SignalLogicalOp Name="AND">
                                      <Signal IOMode="TSCAlternateFunctionChannel" Name="G8_IO1"/>
                                </SignalLogicalOp>
                          </Mode>
                     </ModeLogicOperator>
                     <Semaphore>Channel_IO1_G8_isSet</Semaphore>
                     <Semaphore>OneChannel_IO_G8_isSet</Semaphore>
                </Mode>
                <Mode Name="G8_IO2" UserName="G8_IO2">
                    <Condition Diagnostic="This IO is selected as Sampling IO in this group, or a Shield IO is used in this group" Expression="!(Shield_IO_G8_isSet|Sampling_IO2_G8_isSet)"/>
                    <ModeLogicOperator Name="OR">
                        <Mode Name="G8_IO2-Channel" UserName="G8_IO2">
                            <SignalLogicalOp Name="AND">
                                <Signal IOMode="TSCAlternateFunctionChannel" Name="G8_IO2"/>
                              </SignalLogicalOp>
                        </Mode>
                    </ModeLogicOperator>
                    <Semaphore>Channel_IO2_G8_isSet</Semaphore>
                    <Semaphore>OneChannel_IO_G8_isSet</Semaphore>
                </Mode>
                <Mode Name="G8_IO3" UserName="G8_IO3">
                    <Condition Diagnostic="This IO is selected as Sampling IO in this group, or a Shield IO is used in this group" Expression="!(Shield_IO_G8_isSet|Sampling_IO3_G8_isSet)"/>
                        <ModeLogicOperator Name="OR">
                            <Mode Name="G8_IO3-Channel" UserName="G8_IO3">
                                <SignalLogicalOp Name="AND">
                                    <Signal IOMode="TSCAlternateFunctionChannel" Name="G8_IO3"/>
                                </SignalLogicalOp>
                            </Mode>
                        </ModeLogicOperator>
                    <Semaphore>Channel_IO3_G8_isSet</Semaphore>
                    <Semaphore>OneChannel_IO_G8_isSet</Semaphore>
                </Mode>
                <Mode Name="G8_IO4" UserName="G8_IO4">
                     <Condition Diagnostic="This IO is selected as Sampling IO in this group, or a Shield IO is used in this group" Expression="!(Shield_IO_G8_isSet|Sampling_IO4_G8_isSet)"/>
                         <ModeLogicOperator Name="OR">
                               <Mode Name="G8_IO4-Channel" UserName="G8_IO4">
                                 <SignalLogicalOp Name="AND">
                                   <Signal IOMode="TSCAlternateFunctionChannel" Name="G8_IO4"/>
                                 </SignalLogicalOp>
                              </Mode>
                         </ModeLogicOperator>
                         <Semaphore>Channel_IO4_G8_isSet</Semaphore>
                         <Semaphore>OneChannel_IO_G8_isSet</Semaphore>
                </Mode>
          </ModeLogicOperator>
          <Semaphore>GROUP8_isUsed</Semaphore>
        </Mode>

        <!-- Synchronized acquisition mode -->
        <Mode Name="SYNC">
            <Condition Diagnostic="Available only if at least one group is used" Expression="GROUP1_isUsed|GROUP2_isUsed|GROUP3_isUsed|GROUP4_isUsed|GROUP5_isUsed|GROUP6_isUsed|GROUP7_isUsed|GROUP8_isUsed"/>
			<ModeLogicOperator Name="OR">
				<Mode Name="SYNC">
					<SignalLogicalOp Name="AND">
						<Signal Name="SYNC"/>
					</SignalLogicalOp>
				</Mode>
			</ModeLogicOperator>
			<Semaphore>SYNC_Pin_Selected</Semaphore>
		</Mode>
	</ModeLogicOperator>

	<!-- Signals -->
	<RefSignal IOMode="Sync" Name="SYNC"/>
	<RefSignal IOMode="TSCAlternateFunctionChannel" Name="G1_IO1"/>
	<RefSignal IOMode="TSCAlternateFunctionChannel" Name="G1_IO2"/>
	<RefSignal IOMode="TSCAlternateFunctionChannel" Name="G1_IO3"/>
	<RefSignal IOMode="TSCAlternateFunctionChannel" Name="G1_IO4"/>
	<RefSignal IOMode="TSCAlternateFunctionChannel" Name="G2_IO1"/>
	<RefSignal IOMode="TSCAlternateFunctionChannel" Name="G2_IO2"/>
	<RefSignal IOMode="TSCAlternateFunctionChannel" Name="G2_IO3"/>
	<RefSignal IOMode="TSCAlternateFunctionChannel" Name="G2_IO4"/>
	<RefSignal IOMode="TSCAlternateFunctionChannel" Name="G2_IO5"/>
	<RefSignal IOMode="TSCAlternateFunctionChannel" Name="G3_IO1"/>
	<RefSignal IOMode="TSCAlternateFunctionChannel" Name="G3_IO2"/>
	<RefSignal IOMode="TSCAlternateFunctionChannel" Name="G3_IO3"/>
	<RefSignal IOMode="TSCAlternateFunctionChannel" Name="G3_IO4"/>
	<RefSignal IOMode="TSCAlternateFunctionChannel" Name="G3_IO5"/>
	<RefSignal IOMode="TSCAlternateFunctionChannel" Name="G4_IO1"/>
	<RefSignal IOMode="TSCAlternateFunctionChannel" Name="G4_IO2"/>
	<RefSignal IOMode="TSCAlternateFunctionChannel" Name="G4_IO3"/>
	<RefSignal IOMode="TSCAlternateFunctionChannel" Name="G4_IO4"/>
	<RefSignal IOMode="TSCAlternateFunctionChannel" Name="G5_IO1"/>
	<RefSignal IOMode="TSCAlternateFunctionChannel" Name="G5_IO2"/>
	<RefSignal IOMode="TSCAlternateFunctionChannel" Name="G5_IO3"/>
	<RefSignal IOMode="TSCAlternateFunctionChannel" Name="G5_IO4"/>
	<RefSignal IOMode="TSCAlternateFunctionChannel" Name="G6_IO1"/>
	<RefSignal IOMode="TSCAlternateFunctionChannel" Name="G6_IO2"/>
	<RefSignal IOMode="TSCAlternateFunctionChannel" Name="G6_IO3"/>
	<RefSignal IOMode="TSCAlternateFunctionChannel" Name="G6_IO4"/>
	<RefSignal IOMode="TSCAlternateFunctionChannel" Name="G7_IO1"/>
	<RefSignal IOMode="TSCAlternateFunctionChannel" Name="G7_IO2"/>
	<RefSignal IOMode="TSCAlternateFunctionChannel" Name="G7_IO3"/>
	<RefSignal IOMode="TSCAlternateFunctionChannel" Name="G7_IO4"/>
	<RefSignal IOMode="TSCAlternateFunctionChannel" Name="G7_IO5"/>
	<RefSignal IOMode="TSCAlternateFunctionChannel" Name="G7_IO6"/>
	<RefSignal IOMode="TSCAlternateFunctionChannel" Name="G7_IO7"/>
	<RefSignal IOMode="TSCAlternateFunctionChannel" Name="G8_IO1"/>
	<RefSignal IOMode="TSCAlternateFunctionChannel" Name="G8_IO2"/>
	<RefSignal IOMode="TSCAlternateFunctionChannel" Name="G8_IO3"/>
	<RefSignal IOMode="TSCAlternateFunctionChannel" Name="G8_IO4"/>

</IP>
