<root>
<document schema='101' license='1,CSQUAREDENG1NEER1NG,1XA2CT' title='' description='' target='PIC.16F.16F877A' >
	<config data='!0,3f72%0,2%2,0%3,0%6,1%7,0%9,3%b,1%8,1%d,1' clkspd='19660800' simspd='6' 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='255' />
			<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 />
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='80a7bd85-f38c-41dd-b7c2-78a58d5ccadb' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='0' 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 >
				<property name='Simulation' hidden='0' >
					<property name='Start Angle' target='angle_start' typeid='15' hidden='0' locked='0' info='Angle the control points to at its lowest setting.  Measured counter-clockwise from the positive x-axis.' />
					<property name='Sweep Angle' target='angle_sweep' typeid='15' hidden='0' locked='0' info='Angle through which the control sweeps as it turns from minimum to maximum.' />
					<property name='Scope Traces' target='ScopeTraces' typeid='7' hidden='0' locked='0' info='Selects if the scope traces are automatically generated or not' />
				</property>
				<property name='Connections' hidden='0' >
					<property name='C02 ' target='CO2' typeid='6' hidden='0' locked='0' info='' expansion='$(type)_$(module)__$(variable:u)' initialiser='($(value))' />
				</property>
				<property name='Settings' hidden='0' >
					<property name='VRef voltage' target='vrefvol' typeid='14' hidden='0' locked='0' info='+Vref voltage x 10mV
Default 500 = 5V' />
					<property name='VRef option' target='vrefop' typeid='16' hidden='0' locked='0' info='Defines what is used as the ADC Vref source.' filter='000VDD
001VRef+ Pin
' />
					<property name='Conversion speed' target='convspd' typeid='16' hidden='0' locked='0' info='Clock setting to set how fast the ADC peripheral is driven.' filter='000Fosc / 2
001Fosc / 8
002Fosc / 32
003FRC
004Fosc / 4
005Fosc / 16
006Fosc / 64
' />
					<property name='Aquisition cycles' target='actime' typeid='14' hidden='0' locked='0' info='Number of micro seconds to wait for the ACD input to charge before starting the analogue sample.' />
				</property>
				<property name='Bit Depth' target='bits' typeid='14' hidden='1' locked='0' info='' />
				<property name='Voltage multiplier' target='bitmul' typeid='15' hidden='1' locked='0' info='' />
			</properties>
			<values >
				<value target='angle_start' data='225.000000' />
				<value target='angle_sweep' data='270.000000' />
				<value target='ScopeTraces' data='1' />
				<value target='CO2' data='0' />
				<value target='vrefvol' data='500' />
				<value target='vrefop' data='000' />
				<value target='convspd' data='003' />
				<value target='actime' data='40' />
				<value target='bits' data='10' />
				<value target='bitmul' data='0.004883' />
			</values>
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='HUM_OVLD' type='b1' description='HUM_OVLD' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</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='CO2_HIGH_SET' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='C02_LOCAL' type='u8' description='C02' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='C02' type='u8' description='C02 SIGNAL' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CO2_LOW_SET' type='u8' description='CO2 POT LOW SET' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CO2_SOL' type='b1' description='CO2_SOL' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='true' type='b1' description='' isconst='1' isinit='1' usrinit='1' setinit='1' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='CO2_LO_SET' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='output' title='SELECT C02 LOW POT MUX' mode='0' port='1048577' mask='0' exp='1' />
						<command class_type='delay' title='' exp='1' type='1' />
						<command class_type='call' title='READ CO2 LOW SET INTO VARIABLE' component='CO2_LO_SET' macro='GetByte' >
							<return exp='CO2_LOW_SET' />
						</command>
						<command class_type='delay' title='Delay' exp='1' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='C02_DECISON_SET' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<local name='CO2' type='u8' description='CO2 INPUT VALUE' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='output' title='SET MUX TO C02' mode='0' port='1048577' mask='0' exp='2' />
						<command class_type='delay' title='Delay' exp='1' type='1' />
						<command class_type='call' title='READ C02 SIGNAL' macro='C02_DECISON_SET' />
						<command class_type='decision' title='CO2 ON DECISION' exp='C02 &lt; CO2_LO_SET' swap='0' >
							<flowline >
								<command class_type='output' title='TURN ON C02 SOLENOID AND LED' mode='0' port='1048578' mask='0' exp='1' />
							</flowline>
							<flowline />
						</command>
						<command class_type='delay' title='Delay' exp='1' type='2' />
						<command class_type='decision' title='C02 OFF DECISION' exp='C02 &gt; CO2_HIGH_SET' swap='0' >
							<flowline >
								<command class_type='output' title='TURN OFF CO2 SOLENOID' mode='0' port='1048578' mask='0' exp='0' />
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='CO2_HI_SET' description='' >
						<return name='Return' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='C02_HI_SET' type='u8' description='C02_HI_SET' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='output' title='SELECT PORT B C02 HI' mode='0' port='1048577' mask='0' exp='0' />
						<command class_type='delay' title='Delay' exp='1' type='1' />
						<command class_type='call' title='READ C02 HIGH SET INTO VARIABLE' component='CO2_HI_SET' macro='GetByte' >
							<return exp='CO2_HIGH_SET' />
						</command>
						<command class_type='delay' title='Delay' exp='1' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='MUX_SIGNALS' description='RETRIEVE ALL MUX SIGNALS' >
						<return name='Return' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='CO2' type='u8' description='CO2 SENSOR' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='output' title='ADDRESS C02 SIGNAL ON MUX' mode='0' port='1048577' mask='0' exp='2' />
						<command class_type='delay' title='Delay' exp='1' type='1' />
						<command class_type='call' title='Call Component Macro' component='' macro='' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='output' title='PORT B INITIALIZE' mode='0' port='1048577' mask='0' exp='0' />
						<command class_type='loop' title='Loop' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='READ MUX SIGNALS' macro='MUX_SIGNALS' />
								<command class_type='call' title='CO2 HI SET' macro='CO2_HI_SET' />
								<command class_type='call' title='CO2 LO SET ' macro='CO2_LO_SET' />
								<command class_type='call' title='C02 DECISION SET' macro='C02_DECISON_SET' />
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='8c97cc7d-3c7b-41b6-b255-6694b6b8eed9' vmin='4' vmaj='1' codename='CO2_HI_SET' x='-64' y='40' z='15.75' 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='1' >
				<resources />
				<properties />
				<values >
					<value target='angle_start' data='225.000000' />
					<value target='angle_sweep' data='270.000000' />
					<value target='ScopeTraces' data='0' />
					<value target='channel' data='0' />
					<value target='vrefvol' data='500' />
					<value target='vrefop' data='000' />
					<value target='convspd' data='003' />
					<value target='actime' data='40' />
					<value target='bits' data='10' />
					<value target='bitmul' data='0.004883' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='8c97cc7d-3c7b-41b6-b255-6694b6b8eed9' vmin='4' vmaj='1' codename='CO2_LO_SET' x='-72' y='-72' 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='1' >
				<resources />
				<properties />
				<values >
					<value target='angle_start' data='225.000000' />
					<value target='angle_sweep' data='270.000000' />
					<value target='ScopeTraces' data='0' />
					<value target='channel' data='0' />
					<value target='vrefvol' data='500' />
					<value target='vrefop' data='000' />
					<value target='convspd' data='003' />
					<value target='actime' data='40' />
					<value target='bits' data='10' />
					<value target='bitmul' data='0.004883' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='7fdaec78-394e-4ec9-a578-4f1a12a12076' vmin='1' vmaj='1' codename='led_5mm_clip1' x='-104' y='-112' 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 >
					<value target='pin' data='$PORTC.0' />
					<value target='polarity' data='001' />
					<value target='on_color' data='8453975' />
					<value target='show_label' data='002' />
					<value target='label_property' data='pin' />
					<value target='label_color' data='16777215' />
					<value target='label_scale' data='2.000000' />
					<value target='label_auto_scale' data='1' />
					<value target='label_position' data='003' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='c8da67a7-fc7b-48c0-8c3f-3264c74f4024' vmin='0' vmaj='2' codename='led_array1' x='0' y='120' z='10.7847' xsz='2.71186' ysz='2.71186' zsz='2.71186' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='1' >
				<resources />
				<properties />
				<values >
					<value target='count' data='8' />
					<value target='port' data='001' />
					<value target='pin0' data='$PORTB.0' />
					<value target='pin1' data='$PORTB.1' />
					<value target='pin2' data='$PORTB.2' />
					<value target='pin3' data='$PORTB.3' />
					<value target='pin4' data='$PORTB.4' />
					<value target='pin5' data='$PORTB.5' />
					<value target='pin6' data='$PORTB.6' />
					<value target='pin7' data='$PORTB.7' />
					<value target='polarity' data='001' />
					<value target='full_port' data='$PORTB' />
					<value target='align' data='000' />
					<value target='spacing' data='7.000000' />
					<value target='reverse' data='0' />
					<value target='target_object' data='' />
					<value target='shape' data='007' />
					<value target='width' data='5.000000' />
					<value target='height' data='5.000000' />
					<value target='depth' data='2.500000' />
					<value target='color_same' data='1' />
					<value target='color_led0' data='65280' />
					<value target='color_led1' data='65280' />
					<value target='color_led2' data='65280' />
					<value target='color_led3' data='65280' />
					<value target='color_led4' data='65535' />
					<value target='color_led5' data='65535' />
					<value target='color_led6' data='255' />
					<value target='color_led7' data='255' />
					<value target='bitmask' data='255' />
					<value target='inv_bitmask' data='-256' />
					<value target='show_label' data='000' />
					<value target='label_property' data='pin' />
					<value target='label_color' data='10289344' />
					<value target='label_scale' data='5.000000' />
					<value target='label_auto_scale' data='1' />
					<value target='label_position' data='003' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='8c97cc7d-3c7b-41b6-b255-6694b6b8eed9' vmin='4' vmaj='1' codename='pot_chicken_hd1' x='0' y='0' z='8.4' 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='1' poslock='1' >
				<resources />
				<properties />
				<values >
					<value target='angle_start' data='225.000000' />
					<value target='angle_sweep' data='270.000000' />
					<value target='ScopeTraces' data='0' />
					<value target='channel' data='0' />
					<value target='vrefvol' data='500' />
					<value target='vrefop' data='000' />
					<value target='convspd' data='003' />
					<value target='actime' data='40' />
					<value target='bits' data='10' />
					<value target='bitmul' data='0.004883' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='7fdaec78-394e-4ec9-a578-4f1a12a12076' vmin='1' vmaj='1' codename='led_5mm_clip3' x='0' y='0' z='12.15' 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='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='' />
					<value target='polarity' data='001' />
					<value target='on_color' data='8453975' />
					<value target='show_label' data='002' />
					<value target='label_property' data='pin' />
					<value target='label_color' data='16777215' />
					<value target='label_scale' data='1.000000' />
					<value target='label_auto_scale' data='0' />
					<value target='label_position' data='003' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='9737364' 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='7360576' 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' />
	</panel3d>
	<layout >
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAApwMAACICAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='C02_DECISON_SET' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAApwMAACICAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='MUX_SIGNALS' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAApwMAACICAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='CO2_HI_SET' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAApwMAACICAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='CO2_LO_SET' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAApwMAACICAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
