<root>
<document schema='101' license='1,howard123,GT8CJE' title='' description='' target='PIC.18F.18F45K22' >
	<config data='!0,2800!10,fce7!20,fd00!30,bb!40,ffff!50,ffff!60,ffff%8,8%c,0%d,1%e,0%f,0%10,1%11,3%13,0%18,0%1a,f%28,1%29,0%2a,1%2b,1%2c,1%2d,1%2f,1%30,1%32,0%36,0%37,1%40,1%41,1%42,1%43,1%4e,1%4f,1%50,1%51,1%52,1%53,1%5d,1%5e,1%5f,1%60,1%61,1%62,1%63,1%6e,1' clkspd='16000000' simspd='1' usewdt='0' constif='0' />
	<plugins >
		<dll_dbg_icd enabled='0' >
			<data name='debug' value='1' />
			<data name='userpins' value='0' />
			<data name='speed' value='0' />
			<data name='usev9' value='0' />
			<data name='breaks' value='8' />
			<data name='stacks' value='8' />
			<data name='clkport' value='1' />
			<data name='clkbit' value='6' />
			<data name='dataport' value='1' />
			<data name='databit' value='7' />
			<data name='ghostype' value='0' />
			<data name='monitor' value='1' />
			<data name='ictloop' value='0' />
			<data name='ictrate' value='20000' />
			<data name='ictmask' value='0' />
			<data name='anlpres' value='19' />
			<data name='digmask1' value='-1' />
			<data name='digmask2' value='-1' />
		</dll_dbg_icd>
		<dll_models enabled='1' />
		<dll_upgrader enabled='1' />
		<dll_webhelp enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug />
	<ghost >
		<FK2 >
			<data name='FK2D0' port='4294967295' pin='4294967295' />
			<data name='FK2D1' port='4294967295' pin='4294967295' />
			<data name='FK2D2' port='4294967295' pin='4294967295' />
			<data name='FK2D3' port='4294967295' pin='4294967295' />
			<data name='FK2D4' port='4294967295' pin='4294967295' />
			<data name='FK2D5' port='4294967295' pin='4294967295' />
			<data name='FK2D6' port='4294967295' pin='4294967295' />
			<data name='FK2D7' port='4294967295' pin='4294967295' />
			<data name='FK2D8' port='4294967295' pin='4294967295' />
			<data name='FK2D9' port='4294967295' pin='4294967295' />
			<data name='FK2D10' port='4294967295' pin='4294967295' />
			<data name='FK2D11' port='4294967295' pin='4294967295' />
			<data name='FK2D12' port='4294967295' pin='4294967295' />
			<data name='FK2D13' port='4294967295' pin='4294967295' />
			<data name='FK2D14' port='4294967295' pin='4294967295' />
			<data name='FK2D15' port='4294967295' pin='4294967295' />
			<data name='FK2A0' port='4294967295' pin='4294967295' />
			<data name='FK2A1' port='4294967295' pin='4294967295' />
			<data name='FK2A2' port='4294967295' pin='4294967295' />
			<data name='FK2A3' port='4294967295' pin='4294967295' />
			<data name='FK2A4' port='4294967295' pin='4294967295' />
			<data name='FK2A5' port='4294967295' pin='4294967295' />
		</FK2>
		<ICD >
			<data name='AnalogPrescaleValue' value='19' />
			<data name='DigitalSampleRate' value='100000' />
			<data name='BreakpointCount' value='8' />
			<data name='CallStackDepthCount' value='8' />
			<data name='ClockPort' value='1' />
			<data name='ClockPin' value='6' />
			<data name='DataPort' value='1' />
			<data name='DataPin' value='7' />
			<data name='UseDefaultPins' value='1' />
			<data name='WrapEnabled' value='1' />
			<data name='CommsDelayOverridden' value='0' />
			<data name='CommsDelay' value='11' />
			<data name='CalculatedCommsDelay' value='11' />
		</ICD>
		<pins >
			<digital A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
			<analog A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
		</pins>
	</ghost>
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='24e52c4f-2814-48e3-84a2-0b8e0f22face' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='1' iconpath='' />
		<component class_type='root' codename='panel' x='0' y='0' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
			<resources />
			<properties />
			<values />
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='TickPulseCounter' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PushSwitch2' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PT1000MSB' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PushSwitch1' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Pump' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='RainRaw' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='AddressADCwrite' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ParameterArray' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='14' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ValveThermo' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='false' type='b1' description='' isconst='1' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='AddressADCread' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Pulse2counts' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TraceNumberOne' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Therm1LSB' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ValveFloodPast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CounterUARTtimeout' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FlagSMPScountReset' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Pulse1counts' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Current' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Switch4' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Heater' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FloodRawPast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Switch3' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Switch2' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TickOneSecondRaw' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Switch1' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Radiance' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='RainRawPast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='RainRawPastPast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='StatusByte' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CounterTiming' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TickOneSecondRawPast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FloodRawPastPast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='SMPSpowered' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ValveFlood' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Therm1MSB' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Therm2LSB' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FloodRaw' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PT1000LSB' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ValveThermoPast' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CounterSMPSon' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TraceNumberTwo' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Rain' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TickOneSecond' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Flood' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CounterADCchannel' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='true' type='b1' description='' isconst='1' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TickADC' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Therm2MSB' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='TimingISR' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='runs at 100Hz' textarea='85,-93,85,-93' cmdcolor='4812195' cmdcolor_sec='11391487' />
						<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
							<exp exp='CounterTiming = CounterTiming + 1' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='CounterTiming &gt; 99' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='CounterTiming = 1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='CounterTiming = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='TickOneSecondRaw = 1' />
								</command>
								<command class_type='comment' title='' comment='heartbeat' textarea='36,-67,36,-67' cmdcolor='4812195' cmdcolor_sec='11391487' />
								<command class_type='output' title='Output' disable='1' cmdcolor='255' cmdcolor_sec='10535167' mode='1' port='1048579' mask='8' exp='1' />
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='CounterTiming = 50' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='TickOneSecondRaw = 0' />
								</command>
								<command class_type='comment' title='' comment='heartbeat' textarea='36,-67,36,-67' cmdcolor='4812195' cmdcolor_sec='11391487' />
								<command class_type='output' title='Output' disable='1' cmdcolor='255' cmdcolor_sec='10535167' mode='1' port='1048579' mask='8' exp='0' />
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='FloodAndRain' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='TickOneSecond = 1' swap='0' >
							<flowline >
								<command class_type='input' title='Input' cmdcolor='16752895' cmdcolor_sec='9036497' mode='1' port='1048580' mask='2' exp='FloodRaw' />
								<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='(FloodRaw = 1) &amp;&amp; (FloodRawPast = 1) &amp;&amp; (FloodRawPastPast = 1)' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
											<exp exp='Flood = 1' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='(FloodRaw = 0) &amp;&amp; (FloodRawPast = 0) &amp;&amp; (FloodRawPastPast = 0)' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
											<exp exp='Flood = 1' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='FloodRawPastPast = FloodRawPast' />
									<exp exp='FloodRawPast = FloodRaw' />
								</command>
								<command class_type='input' title='Input' cmdcolor='16752895' cmdcolor_sec='9036497' mode='1' port='1048580' mask='4' exp='RainRaw' />
								<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='(RainRaw = 1) &amp;&amp; (RainRawPast = 1) &amp;&amp; (RainRawPastPast = 1)' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
											<exp exp='Rain = 1' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='(RainRaw = 0) &amp;&amp; (RainRawPast = 0) &amp;&amp; (RainRawPastPast = 0)' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
											<exp exp='Rain = 1' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='RainRawPastPast = RainRawPast' />
									<exp exp='RainRawPast = Rain' />
								</command>
								<command class_type='comment' title='' comment='Mapping' textarea='272,-107,272,-107' cmdcolor='4812195' cmdcolor_sec='11391487' />
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='StatusByte = StatusByte &amp; 0b01111111' />
									<exp exp='StatusByte = StatusByte | (Flood &lt;&lt; 7)' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='StatusByte = StatusByte &amp; 0b10111111' />
									<exp exp='StatusByte = StatusByte | (Rain &lt;&lt; 6)' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='ParameterArray[13] = StatusByte' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='TraceUART' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<local name='Temp' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='InputNumber' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='LoopCount' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='NumberSegmented' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='5' />
						</local>
						<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='TickOneSecond = 1' swap='0' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='1 = 1' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='UART2' macro='SendChar' >
											<argument exp='254' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='UART2' macro='SendChar' >
											<argument exp='1' />
										</command>
										<command class_type='delay' title='Delay' cmdcolor='16777215' cmdcolor_sec='14390211' exp='4' type='1' />
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='UART2' macro='SendChar' >
											<argument exp='254' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='UART2' macro='SendChar' >
											<argument exp='2' />
										</command>
										<command class_type='comment' title='' comment='print line 1' textarea='323,-232,323,-232' cmdcolor='4812195' cmdcolor_sec='11391487' />
										<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
											<exp exp='.InputNumber = TraceNumberOne' />
											<exp exp='' />
										</command>
										<command class_type='comment' title='' comment='extract individual numbers' textarea='226,18,226,18' cmdcolor='4812195' cmdcolor_sec='11391487' />
										<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
											<exp exp='.LoopCount = 0' />
										</command>
										<command class_type='loop' title='Loop' cmdcolor='16777215' cmdcolor_sec='15910009' type='2' exp='5' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
													<exp exp='.Temp = .InputNumber MOD 10' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
													<exp exp='.NumberSegmented[.LoopCount] = .Temp' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
													<exp exp='.LoopCount = .LoopCount + 1' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
													<exp exp='.InputNumber = .InputNumber / 10' />
												</command>
											</flowline>
										</command>
										<command class_type='comment' title='' comment='reverse number order' textarea='226,18,226,18' cmdcolor='4812195' cmdcolor_sec='11391487' />
										<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
											<exp exp='.LoopCount = 4' />
										</command>
										<command class_type='loop' title='Loop' cmdcolor='16777215' cmdcolor_sec='15910009' type='2' exp='5' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
													<exp exp='.Temp = .NumberSegmented[.LoopCount]' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='UART2' macro='SendNumber' >
													<argument exp='.Temp' />
												</command>
												<command class_type='calculation' title='Calculation' textarea='56,-29,56,-29' cmdcolor='65280' cmdcolor_sec='10551200' >
													<exp exp='.LoopCount = .LoopCount - 1' />
												</command>
											</flowline>
										</command>
										<command class_type='comment' title='' comment='line 2 (DDRAM address)' textarea='377,-78,377,-78' cmdcolor='4812195' cmdcolor_sec='11391487' />
										<command class_type='delay' title='Delay' cmdcolor='16777215' cmdcolor_sec='14390211' exp='3' type='1' />
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='UART2' macro='SendChar' >
											<argument exp='254' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='UART2' macro='SendChar' >
											<argument exp='0xC0' />
										</command>
										<command class_type='comment' title='' comment='print line 2' textarea='323,-232,323,-232' cmdcolor='4812195' cmdcolor_sec='11391487' />
										<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
											<exp exp='.InputNumber = TraceNumberTwo' />
											<exp exp='' />
										</command>
										<command class_type='comment' title='' comment='extract individual numbers' textarea='226,18,226,18' cmdcolor='4812195' cmdcolor_sec='11391487' />
										<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
											<exp exp='.LoopCount = 0' />
										</command>
										<command class_type='loop' title='Loop' cmdcolor='16777215' cmdcolor_sec='15910009' type='2' exp='5' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
													<exp exp='.Temp = .InputNumber MOD 10' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
													<exp exp='.NumberSegmented[.LoopCount] = .Temp' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
													<exp exp='.LoopCount = .LoopCount + 1' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
													<exp exp='.InputNumber = .InputNumber / 10' />
												</command>
											</flowline>
										</command>
										<command class_type='comment' title='' comment='reverse number order' textarea='226,18,226,18' cmdcolor='4812195' cmdcolor_sec='11391487' />
										<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
											<exp exp='.LoopCount = 4' />
										</command>
										<command class_type='loop' title='Loop' cmdcolor='16777215' cmdcolor_sec='15910009' type='2' exp='5' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
													<exp exp='.Temp = .NumberSegmented[.LoopCount]' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='UART2' macro='SendNumber' >
													<argument exp='.Temp' />
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
													<exp exp='.LoopCount = .LoopCount - 1' />
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ADC2' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='' cmdcolor='13816530' cmdcolor_sec='15910009' exp='TickOneSecond = 1' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='adc_base1' macro='GetByte' >
									<return exp='Current' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='ParameterArray[12] = Current' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='OneSecondTick' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='One second tick runs for 1 iteration, for use by all' textarea='309,-114,309,-114' cmdcolor='4812195' cmdcolor_sec='11391487' />
						<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='(TickOneSecondRaw = 1) &amp;&amp; (TickOneSecondRawPast = 0)' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='TickOneSecond = 1' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='TickOneSecond = 0' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
							<exp exp='TickOneSecondRawPast = TickOneSecondRaw' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ADC' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='MCP3428 requires at least 66mS at 16 bit resolution' textarea='623,206,623,206' cmdcolor='4812195' cmdcolor_sec='11391487' />
						<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='TickADC = 1' swap='0' >
							<flowline >
								<command class_type='output' title='Output' cmdcolor='255' cmdcolor_sec='10535167' mode='1' port='1048579' mask='8' exp='1' />
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='TickADC = 0' />
								</command>
								<command class_type='comment' title='' comment='PT1000' textarea='206,-123,206,-123' cmdcolor='4812195' cmdcolor_sec='11391487' />
								<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='CounterADCchannel = 1' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='I2C_Master1' macro='Start' />
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='I2C_Master1' macro='TransmitByte' >
											<argument exp='AddressADCwrite' />
										</command>
										<command class_type='comment' title='' comment='ch1, cont, 16 bit, X1' textarea='12,0,12,0' cmdcolor='4812195' cmdcolor_sec='11391487' />
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='I2C_Master1' macro='TransmitByte' >
											<argument exp='0b10011000' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='I2C_Master1' macro='Stop' />
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='CounterADCchannel = 5' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='I2C_Master1' macro='Start' />
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='I2C_Master1' macro='TransmitByte' >
											<argument exp='AddressADCread' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='I2C_Master1' macro='ReceiveByte' >
											<return exp='PT1000MSB' />
											<argument exp='0' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='I2C_Master1' macro='ReceiveByte' >
											<return exp='PT1000LSB' />
											<argument exp='1' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='I2C_Master1' macro='Stop' />
									</flowline>
									<flowline />
								</command>
								<command class_type='comment' title='' comment='Therm 1' textarea='206,-123,206,-123' cmdcolor='4812195' cmdcolor_sec='11391487' />
								<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='CounterADCchannel = 9' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='I2C_Master1' macro='Start' />
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='I2C_Master1' macro='TransmitByte' >
											<argument exp='AddressADCwrite' />
										</command>
										<command class_type='comment' title='' comment='ch2, cont, 16 bit, X1' textarea='12,0,12,0' cmdcolor='4812195' cmdcolor_sec='11391487' />
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='I2C_Master1' macro='TransmitByte' >
											<argument exp='0b10111000' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='I2C_Master1' macro='Stop' />
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='CounterADCchannel = 13' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='I2C_Master1' macro='Start' />
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='I2C_Master1' macro='TransmitByte' >
											<argument exp='AddressADCread' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='I2C_Master1' macro='ReceiveByte' >
											<return exp='Therm1MSB' />
											<argument exp='0' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='I2C_Master1' macro='ReceiveByte' >
											<return exp='Therm1LSB' />
											<argument exp='1' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='I2C_Master1' macro='Stop' />
									</flowline>
									<flowline />
								</command>
								<command class_type='comment' title='' comment='Therm 2' textarea='206,-123,206,-123' cmdcolor='4812195' cmdcolor_sec='11391487' />
								<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='CounterADCchannel = 17' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='I2C_Master1' macro='Start' />
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='I2C_Master1' macro='TransmitByte' >
											<argument exp='AddressADCwrite' />
										</command>
										<command class_type='comment' title='' comment='ch3, cont, 16 bit, X1' textarea='12,0,12,0' cmdcolor='4812195' cmdcolor_sec='11391487' />
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='I2C_Master1' macro='TransmitByte' >
											<argument exp='0b11011000' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='I2C_Master1' macro='Stop' />
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='CounterADCchannel = 21' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='I2C_Master1' macro='Start' />
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='I2C_Master1' macro='TransmitByte' >
											<argument exp='AddressADCread' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='I2C_Master1' macro='ReceiveByte' >
											<return exp='Therm2MSB' />
											<argument exp='0' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='I2C_Master1' macro='ReceiveByte' >
											<return exp='Therm2LSB' />
											<argument exp='1' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='I2C_Master1' macro='Stop' />
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='CounterADCchannel = 25' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='I2C_Master1' macro='Start' />
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='I2C_Master1' macro='TransmitByte' >
											<argument exp='AddressADCwrite' />
										</command>
										<command class_type='comment' title='' comment='ch4, cont, 16 bit, X8' textarea='12,0,12,0' cmdcolor='4812195' cmdcolor_sec='11391487' />
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='I2C_Master1' macro='TransmitByte' >
											<argument exp='0b11111011' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='I2C_Master1' macro='Stop' />
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='CounterADCchannel = 29' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='I2C_Master1' macro='Start' />
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='I2C_Master1' macro='TransmitByte' >
											<argument exp='AddressADCread' />
										</command>
										<command class_type='comment' title='' comment='dummy read' textarea='46,-66,46,-66' cmdcolor='4812195' cmdcolor_sec='11391487' />
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='I2C_Master1' macro='ReceiveByte' >
											<return exp='Radiance' />
											<argument exp='0' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='I2C_Master1' macro='ReceiveByte' >
											<return exp='Radiance' />
											<argument exp='1' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='I2C_Master1' macro='Stop' />
									</flowline>
									<flowline />
								</command>
								<command class_type='comment' title='' comment='Mapping' textarea='300,-80,300,-80' cmdcolor='4812195' cmdcolor_sec='11391487' />
								<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='CounterADCchannel = 33' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
											<exp exp='ParameterArray[0] = Therm1MSB' />
											<exp exp='ParameterArray[1] = Therm1LSB' />
											<exp exp='ParameterArray[2] = Therm2MSB' />
											<exp exp='ParameterArray[3] = Therm2LSB' />
											<exp exp='ParameterArray[4] = PT1000MSB' />
											<exp exp='ParameterArray[5] = PT1000LSB' />
											<exp exp='ParameterArray[9] = Radiance' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
							<flowline >
								<command class_type='output' title='Output' cmdcolor='255' cmdcolor_sec='10535167' mode='1' port='1048579' mask='8' exp='0' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Simulation' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='Temperature simulation' textarea='269,-113,269,-113' cmdcolor='4812195' cmdcolor_sec='11391487' />
						<command class_type='input' title='Input' cmdcolor='16752895' cmdcolor_sec='9036497' mode='1' port='1048577' mask='32' exp='PushSwitch1' />
						<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='PushSwitch1 = 1' swap='0' >
							<flowline >
								<command class_type='comment' title='' comment='tank 50
outside 30
panel 80
' textarea='296,122,296,122' cmdcolor='4812195' cmdcolor_sec='11391487' />
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='ParameterArray[0] = 63 //Therm1MSB' />
									<exp exp='ParameterArray[1] = 122 //Therm1LSB' />
									<exp exp='ParameterArray[2] = 37 //Therm2MSB' />
									<exp exp='ParameterArray[3] = 174 //Therm2LSB' />
									<exp exp='ParameterArray[4] = 103 //PT1000MSB' />
									<exp exp='ParameterArray[5] = 122 //PT1000LSB' />
									<exp exp='ParameterArray[6] = 1 //PressureMSB' />
									<exp exp='ParameterArray[7] = 1 //PressureLSB' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='comment' title='' comment='Other simulation' textarea='269,-113,269,-113' cmdcolor='4812195' cmdcolor_sec='11391487' />
						<command class_type='input' title='Input' cmdcolor='16752895' cmdcolor_sec='9036497' mode='1' port='1048577' mask='16' exp='PushSwitch2' />
						<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='PushSwitch2 = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='ParameterArray[8] = 5 //board temperature' />
									<exp exp='ParameterArray[9] = 10 //radiance' />
									<exp exp='ParameterArray[10] = 15 //wind' />
									<exp exp='ParameterArray[11] = 20 //water' />
									<exp exp='ParameterArray[12] = 25 //current' />
									<exp exp='ParameterArray[13] = 30 //status byte' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='calculation' title='Calculation' disable='1' cmdcolor='65280' cmdcolor_sec='10551200' >
							<exp exp='TraceNumberOne = ParameterArray[12]' />
							<exp exp='TraceNumberTwo = ParameterArray[13]' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ADCcounterIRS' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='IRS runs at 15.3 Hz
65mS between samples as requires by ADC - 15SPS @ 16 bit' textarea='206,-187,206,-187' cmdcolor='4812195' cmdcolor_sec='11391487' />
						<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
							<exp exp='TickADC = 1' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
							<exp exp='CounterADCchannel = CounterADCchannel + 1' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='CounterADCchannel &gt; 9' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='CounterADCchannel = 1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='comment' title='' comment='IRS runs at 60 Hz
65mS between samples as requires by ADC - 15SPS @ 16 bit' textarea='206,-187,206,-187' disable='1' cmdcolor='4812195' cmdcolor_sec='11391487' />
						<command class_type='calculation' title='Calculation' disable='1' cmdcolor='65280' cmdcolor_sec='10551200' >
							<exp exp='CounterADCchannel = CounterADCchannel + 1' />
						</command>
						<command class_type='decision' title='Decision' disable='1' cmdcolor='13816530' cmdcolor_sec='15910009' exp='CounterADCchannel &gt; 36' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' disable='1' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='CounterADCchannel = 1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' disable='1' cmdcolor='13816530' cmdcolor_sec='15910009' exp='(CounterADCchannel = 1) || (CounterADCchannel = 5) || (CounterADCchannel = 9) || (CounterADCchannel = 13) || (CounterADCchannel = 17) || (CounterADCchannel = 21) || (CounterADCchannel = 25) || (CounterADCchannel = 29) || (CounterADCchannel = 33)' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' disable='1' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='TickADC = 1' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='PulseCounters' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='TickPulseCounter = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='TickPulseCounter=0' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='TickPulseCounter = 0' />
								</command>
								<command class_type='native' title='C Code' ccode='FCV_PULSE1COUNTS=TMR1L;// Only low byte required
FCV_PULSE2COUNTS=TMR5L;// Only low byte required' cmdcolor='17100' cmdcolor_sec='6596351' language='C' />
								<command class_type='comment' title='' comment='Mapping' textarea='109,-75,109,-75' cmdcolor='4812195' cmdcolor_sec='11391487' />
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='ParameterArray[10] = Pulse1counts' />
									<exp exp='ParameterArray[11] = Pulse2counts' />
								</command>
								<command class_type='comment' title='' comment='Zero counter LSB' textarea='93,-145,93,-145' cmdcolor='4812195' cmdcolor_sec='11391487' />
								<command class_type='native' title='C Code' ccode='TMR1L=0;
TMR5L=0;' cmdcolor='17100' cmdcolor_sec='6596351' language='C' />
								<command class_type='calculation' title='Calculation' disable='1' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='TraceNumberOne = ParameterArray[10]' />
									<exp exp='TraceNumberTwo = ParameterArray[11]' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Outputs' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='UART test for comms' textarea='200,-124,200,-124' cmdcolor='4812195' cmdcolor_sec='11391487' />
						<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='TickOneSecond = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='CounterUARTtimeout = CounterUARTtimeout + 1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='CounterUARTtimeout &gt; 10 //10 seconds' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='CounterUARTtimeout = 11' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='Heater = 0' />
									<exp exp='Pump = 0' />
									<exp exp='ValveFlood = 0' />
									<exp exp='ValveThermo = 0' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='comment' title='' comment='Bypass switches' textarea='200,-124,200,-124' cmdcolor='4812195' cmdcolor_sec='11391487' />
						<command class_type='input' title='Input' cmdcolor='16752895' cmdcolor_sec='9036497' mode='1' port='1048576' mask='128' exp='Switch1' />
						<command class_type='input' title='Input' cmdcolor='16752895' cmdcolor_sec='9036497' mode='1' port='1048576' mask='64' exp='Switch2' />
						<command class_type='input' title='Input' cmdcolor='16752895' cmdcolor_sec='9036497' mode='1' port='1048579' mask='32' exp='Switch3' />
						<command class_type='input' title='Input' cmdcolor='16752895' cmdcolor_sec='9036497' mode='1' port='1048579' mask='16' exp='Switch4' />
						<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='(Switch1 = 0) &amp;&amp; (Switch2 = 0) &amp;&amp; (Switch3 = 0) &amp;&amp; (Switch4 = 0)' swap='0' >
							<flowline />
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='Switch1 = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
											<exp exp='Heater = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
											<exp exp='Heater = 0' />
											<exp exp='' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='Switch2 = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
											<exp exp='Pump = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
											<exp exp='Pump = 0' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='Switch3 = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
											<exp exp='ValveFlood = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
											<exp exp='ValveFlood = 0' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='Switch4 = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
											<exp exp='ValveThermo = 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
											<exp exp='ValveThermo = 0' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='comment' title='' comment='SMPS switch off' textarea='200,-124,200,-124' cmdcolor='4812195' cmdcolor_sec='11391487' />
						<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='ValveFlood = ValveFloodPast' swap='0' >
							<flowline />
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='ValveFloodPast = ValveFlood' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='FlagSMPScountReset = 1' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='ValveThermo = ValveThermoPast' swap='0' >
							<flowline />
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='ValveThermoPast = ValveThermo' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='FlagSMPScountReset = 1' />
								</command>
							</flowline>
						</command>
						<command class_type='comment' title='' comment='Outputs' textarea='200,-124,200,-124' cmdcolor='4812195' cmdcolor_sec='11391487' />
						<command class_type='output' title='Output' cmdcolor='255' cmdcolor_sec='10535167' mode='1' port='1048577' mask='8' exp='Heater' />
						<command class_type='output' title='Output' cmdcolor='255' cmdcolor_sec='10535167' mode='1' port='1048577' mask='4' exp='Pump' />
						<command class_type='output' title='Output' cmdcolor='255' cmdcolor_sec='10535167' mode='1' port='1048577' mask='2' exp='ValveFlood' />
						<command class_type='output' title='Output' cmdcolor='255' cmdcolor_sec='10535167' mode='1' port='1048577' mask='1' exp='ValveThermo' />
						<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='FlagSMPScountReset = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='FlagSMPScountReset = 0' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='CounterSMPSon = 0' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='TickOneSecond = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='CounterSMPSon = CounterSMPSon + 1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='CounterSMPSon &gt; 30' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='CounterSMPSon = 30' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='(CounterSMPSon &lt; 15) || (Heater = 1) || (Pump = 1)' swap='0' >
							<flowline >
								<command class_type='output' title='Output' cmdcolor='255' cmdcolor_sec='10535167' mode='1' port='1048579' mask='4' exp='0' />
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='SMPSpowered = 1' />
								</command>
							</flowline>
							<flowline >
								<command class_type='output' title='Output' cmdcolor='255' cmdcolor_sec='10535167' mode='1' port='1048579' mask='4' exp='1' />
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='SMPSpowered = 0' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
							<exp exp='TraceNumberOne = CounterSMPSon' />
							<exp exp='TraceNumberTwo = SMPSpowered' />
						</command>
						<command class_type='comment' title='' comment='Mapping' textarea='236,-174,236,-174' cmdcolor='4812195' cmdcolor_sec='11391487' />
						<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
							<exp exp='StatusByte = StatusByte &amp; 0b11011111' />
							<exp exp='StatusByte = StatusByte | (SMPSpowered &lt;&lt; 5)' />
							<exp exp='' />
							<exp exp='StatusByte = StatusByte &amp; 0b11111110' />
							<exp exp='StatusByte = StatusByte | (Heater)' />
							<exp exp='' />
							<exp exp='StatusByte = StatusByte &amp; 0b11111101' />
							<exp exp='StatusByte = StatusByte | (Pump &lt; 1)' />
							<exp exp='' />
							<exp exp='StatusByte = StatusByte &amp; 0b11111011' />
							<exp exp='StatusByte = StatusByte | (ValveFlood &lt; 2)' />
							<exp exp='' />
							<exp exp='StatusByte = StatusByte &amp; 0b11110111' />
							<exp exp='StatusByte = StatusByte | (ValveThermo &lt; 3)' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
							<exp exp='ParameterArray[13] = StatusByte' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='UART1_ISR' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<local name='UARTreceive' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='index' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='UART1' macro='ReceiveChar' >
							<return exp='.UARTreceive' />
							<argument exp='0' />
						</command>
						<command class_type='comment' title='' comment='Counters zero' textarea='328,-189,328,-189' cmdcolor='4812195' cmdcolor_sec='11391487' />
						<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='.UARTreceive = 10' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='TickPulseCounter = 1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='comment' title='' comment='4 hardware instructions' textarea='352,-197,352,-197' cmdcolor='4812195' cmdcolor_sec='11391487' />
						<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='.UARTreceive = 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='Pump = 0' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='.UARTreceive = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='Pump = 1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='.UARTreceive = 2' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='Heater = 0' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='.UARTreceive = 3' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='Heater = 1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='.UARTreceive = 4' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='ValveThermo = 0' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='.UARTreceive = 5' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='ValveThermo = 1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='.UARTreceive = 6' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='ValveFlood = 0' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='.UARTreceive = 7' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='ValveFlood = 1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='comment' title='' comment='Data calls - high byte first' textarea='352,-197,352,-197' cmdcolor='4812195' cmdcolor_sec='11391487' />
						<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
							<exp exp='.index = 0' />
						</command>
						<command class_type='loop' title='Loop' textarea='36,146,36,146' cmdcolor='16777215' cmdcolor_sec='15910009' type='2' exp='14' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='13816530' cmdcolor_sec='15910009' exp='.UARTreceive = .index + 10' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='UART1' macro='SendChar' >
											<argument exp='ParameterArray[.index]' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
									<exp exp='.index = .index + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='comment' title='' comment='UART timout count strobe' textarea='375,-158,375,-158' cmdcolor='4812195' cmdcolor_sec='11391487' />
						<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
							<exp exp='CounterUARTtimeout = 0' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='native' title='C Code' textarea='229,50,229,50' ccode='OSCCON=0b11110110; //16 meg internal RC
SLRCON=0b00011111;//all ports slow slew
ADCON1=0b00001000;//fixed voltage to AD ref
VREFCON0=0b11100000;//select 2.048 for AD ref.
' cmdcolor='17100' cmdcolor_sec='6596351' language='C' />
						<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='I2C_Master1' macro='Initialise' />
						<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='UART1' macro='Initialise' />
						<command class_type='call' title='Call Component Macro' cmdcolor='10535167' cmdcolor_sec='6619135' component='UART2' macro='Initialise' />
						<command class_type='interrupt' title='Interrupt' cmdcolor='16760919' cmdcolor_sec='6740479' enable='1' name='RXINT0' call='UART1_ISR' >
							<settings timer='0' prescale='-1' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
							</settings>
						</command>
						<command class_type='interrupt' title='Interrupt' cmdcolor='16760919' cmdcolor_sec='6740479' enable='1' name='TMR3' call='ADCcounterIRS' >
							<settings timer='1' prescale='4' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='2' />
								<option value='0' />
								<option value='2' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
							</settings>
						</command>
						<command class_type='interrupt' title='Interrupt' cmdcolor='16760919' cmdcolor_sec='6740479' enable='1' name='TMR4' call='TimingISR' >
							<settings timer='1' prescale='16' postscale='10' rollover='250' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='2' />
								<option value='9' />
								<option value='250' />
								<option value='-1' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
							</settings>
						</command>
						<command class_type='comment' title='' comment='Counter setup' textarea='199,-144,199,-144' cmdcolor='4812195' cmdcolor_sec='11391487' />
						<command class_type='native' title='C Code' ccode='T1CON=0b10000001;
T1GCON=0b00000001;
T5CON=0b10000001;
T5GCON=0b00000001;' cmdcolor='17100' cmdcolor_sec='6596351' language='C' />
						<command class_type='calculation' title='Calculation' cmdcolor='65280' cmdcolor_sec='10551200' >
							<exp exp='AddressADCread = (0b1101000 &lt;&lt; 1) + 1' />
							<exp exp='AddressADCwrite = (0b1101000 &lt;&lt; 1) + 0' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='16777215' cmdcolor_sec='15910009' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='Call Macro' cmdcolor='10535167' cmdcolor_sec='6619135' macro='OneSecondTick' />
								<command class_type='call' title='Call Macro' cmdcolor='10535167' cmdcolor_sec='6619135' macro='ADC' />
								<command class_type='call' title='Call Macro' cmdcolor='10535167' cmdcolor_sec='6619135' macro='ADC2' />
								<command class_type='call' title='Call Macro' cmdcolor='10535167' cmdcolor_sec='6619135' macro='PulseCounters' />
								<command class_type='call' title='Call Macro' cmdcolor='10535167' cmdcolor_sec='6619135' macro='FloodAndRain' />
								<command class_type='call' title='Call Macro' cmdcolor='10535167' cmdcolor_sec='6619135' macro='Outputs' />
								<command class_type='call' title='Call Macro' cmdcolor='10535167' cmdcolor_sec='6619135' macro='Simulation' />
								<command class_type='call' title='Call Macro' cmdcolor='10535167' cmdcolor_sec='6619135' macro='TraceUART' />
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='c73616d1-7ad0-45d9-aada-69ccfa4c5efc' vmin='0' vmaj='2' codename='UART1' x='0' y='0' z='0' xsz='60' ysz='26' zsz='1.51' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='CHANNEL' data='001' />
					<value target='BAUD_LIST' data='007' />
					<value target='BAUD' data='9600' />
					<value target='DBITS' data='008' />
					<value target='RETURN' data='000' />
					<value target='ToutVal' data='255' />
					<value target='FLOWEN' data='000' />
					<value target='ECHO' data='000' />
					<value target='cal_uart::TX' data='$PORTC.6' />
					<value target='cal_uart::TXAlt' data='0' />
					<value target='cal_uart::RX' data='$PORTC.7' />
					<value target='cal_uart::RXAlt' data='0' />
					<value target='CTS' data='$PORTB.1' />
					<value target='RTS' data='$PORTB.2' />
					<value target='TXRemap' data='' />
					<value target='RXRemap' data='' />
					<value target='label' data='UART' />
					<value target='ScopeTraces' data='0' />
					<value target='ConsoleData' data='0' />
					<value target='ConsoleColumns' data='64' />
					<value target='DataSource' data='001' />
					<value target='com_port' data='003' />
					<value target='Injector' data='000' />
					<value target='InjectorHandle' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='24219805-113d-4b12-b6bd-e1b0b0c33981' vmin='4' vmaj='1' codename='I2C_Master1' x='0' y='0' z='0.755' xsz='60' ysz='26' zsz='1.51' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='CHANNEL' data='001' />
					<value target='BAUD_LIST' data='001' />
					<value target='SRC' data='000' />
					<value target='SMB' data='000' />
					<value target='StopDelay' data='1' />
					<value target='BAUD' data='50000' />
					<value target='SDA' data='$PORTC.4' />
					<value target='SCL' data='$PORTC.3' />
					<value target='cal_i2c::SDAPins' data='002' />
					<value target='cal_i2c::SCLPins' data='010' />
					<value target='label' data='I2C Master' />
					<value target='ScopeTraces' data='0' />
					<value target='ConsoleData' data='' />
					<value target='Injector' data='000' />
					<value target='InjectorHandle' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='c73616d1-7ad0-45d9-aada-69ccfa4c5efc' vmin='0' vmaj='2' codename='UART2' x='0' y='0' z='2.265' xsz='60' ysz='26' zsz='1.51' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='CHANNEL' data='002' />
					<value target='BAUD_LIST' data='004' />
					<value target='BAUD' data='9600' />
					<value target='DBITS' data='008' />
					<value target='RETURN' data='000' />
					<value target='ToutVal' data='255' />
					<value target='FLOWEN' data='000' />
					<value target='ECHO' data='000' />
					<value target='cal_uart::TX' data='$PORTD.6' />
					<value target='cal_uart::TXAlt' data='0' />
					<value target='cal_uart::RX' data='$PORTD.7' />
					<value target='cal_uart::RXAlt' data='0' />
					<value target='CTS' data='$PORTB.1' />
					<value target='RTS' data='$PORTB.2' />
					<value target='TXRemap' data='' />
					<value target='RXRemap' data='' />
					<value target='label' data='UART' />
					<value target='ScopeTraces' data='0' />
					<value target='ConsoleData' data='0' />
					<value target='ConsoleColumns' data='64' />
					<value target='DataSource' data='001' />
					<value target='com_port' data='003' />
					<value target='Injector' data='000' />
					<value target='InjectorHandle' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='7aad74d6-b24e-4dab-91eb-5d72a973f12d' vmin='3' vmaj='1' codename='adc_base1' x='0' y='0' z='0' xsz='25' ysz='25' zsz='25' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='channel' data='1' />
					<value target='vrefvol' data='205' />
					<value target='vrefop' data='001' />
					<value target='convspd' data='005' />
					<value target='actime' data='400' />
					<value target='bits' data='10' />
					<value target='bitmul' data='0.002002' />
					<value target='ScopeTraces' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='2105930' img='' style='0' />
		<camera xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel2d>
	<panel3d shadows='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='7884836' img='' style='0' size='25' />
		<camera xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey0 xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey1 xe='-3.67394e-14' ye='0' ze='-300' xt='0' yt='0' zt='0' xquat='0' yquat='1' zquat='0' wquat='6.12323e-17' />
		<camerakey2 xe='0' ye='-300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.707107' yquat='0' zquat='0' wquat='0.707107' />
		<camerakey3 xe='-3.67394e-14' ye='300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-4.32978e-17' yquat='0.707107' zquat='0.707107' wquat='4.32978e-17' />
		<camerakey4 xe='-300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='0.5' zquat='0.5' wquat='0.5' />
		<camerakey5 xe='300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='-0.5' zquat='-0.5' wquat='0.5' />
		<camerakey6 xe='-173.205' ye='-173.205' ze='173.205' xt='0' yt='0' zt='0' xquat='-0.424708' yquat='0.17592' zquat='0.339851' wquat='0.820473' />
	</panel3d>
	<layout >
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAWQcAAKQDAAA' zoom='85' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='TraceUART' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAWQcAAKQDAAA' zoom='75' scrollx='0' scrolly='364' flags='0' />
		<view type='0' name='TimingISR' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAWQcAAKQDAAA' zoom='70' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Outputs' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAWQcAAKQDAAA' zoom='75' scrollx='0' scrolly='2647' flags='0' />
		<view type='0' name='Simulation' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAWQcAAKQDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='UART1_ISR' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAWQcAAKQDAAA' zoom='65' scrollx='0' scrolly='1100' flags='0' />
		<view type='0' name='OneSecondTick' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAWQcAAKQDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='FloodAndRain' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAWQcAAKQDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ADC' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAWQcAAKQDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ADCcounterIRS' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAWQcAAKQDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='PulseCounters' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAWQcAAKQDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ADC2' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAWQcAAKQDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
