<root>
<document schema='101' license='1,howard123,GT8CJE' title='' description='' target='PIC16.24F.24FV16KA304' >
	<config data='!0,ffff!10,ffff!20,ff59!30,ffbf!40,ff5f!50,ffff!60,ffff!70,ffff%0,1%1,7%10,1%11,1%20,1%25,0%26,1%27,0%30,3%32,1%33,3%35,1%36,2%40,f%44,1%45,0%46,1%50,3%52,1%53,1%54,1%55,3%57,1%60,3%67,1%70,f%74,1%76,1%77,1' clkspd='16000000' simspd='2' 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_upgrader enabled='1' />
		<dll_webhelp enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug >
		<watch expr='value_return' />
		<watch expr='value_return_plus_one' />
		<watch expr='value_return_out' />
		<watch expr='temperature_return' />
	</debug>
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='3e9748da-4cbe-44f1-8353-6442c26d7413' 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 />
			<values />
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='value_return_plus_one' type='u16' 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='temperature_return' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='index' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='value_return' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='temperature_count' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='value_return_out' type='u16' 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>
			</variables>
			<macros >
				<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='92,20,92,20' ccode='CLKDIV=0b0001000100000000; // 16 meg after (8/2)*4PLL
OSCCON=0b0001000110000000; //16 meg internal RC
' cmdcolor='3389439' cmdcolor_sec='3389439' language='C' />
						<command class_type='calculation' title='test input of  temp count' cmdcolor='2408448' cmdcolor_sec='8978276' >
							<exp exp='temperature_count = 23176' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='16734207' cmdcolor_sec='16711750' type='0' exp='1' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='2408448' cmdcolor_sec='8978276' >
									<exp exp='index = 0' />
									<exp exp='' />
									<exp exp='' />
								</command>
								<command class_type='output' title='loop period test' ccode='// period test
// Output: 0 -&gt; B0
FCP_SET(M, B, 0x0001, 0, (0));' cmdcolor='16729600' cmdcolor_sec='16755300' mode='1' port='1048577' mask='128' exp='1' />
								<command class_type='loop' title='Loop' cmdcolor='16734207' cmdcolor_sec='16711750' type='1' exp='(temperature_count &gt;= value_return) &amp;&amp; (temperature_count &lt; value_return_plus_one) //|| (index &gt; 1250) //escape if outside range' start='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='2408448' cmdcolor_sec='8978276' >
											<exp exp='index = index + 1' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='5767167' cmdcolor_sec='5751039' component='Thermistor_LUT' macro='GetInt' >
											<return exp='value_return' />
											<argument exp='index' />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='5767167' cmdcolor_sec='5751039' component='Thermistor_LUT' macro='GetInt' >
											<return exp='value_return_plus_one' />
											<argument exp='index+1' />
										</command>
									</flowline>
								</command>
								<command class_type='output' title='loop period test' ccode='// period test
// Output: 0 -&gt; B0
FCP_SET(M, B, 0x0001, 0, (0));' cmdcolor='16729600' cmdcolor_sec='16755300' mode='1' port='1048577' mask='128' exp='0' />
								<command class_type='calculation' title='approx temp calc for simulator' cmdcolor='2408448' cmdcolor_sec='8978276' >
									<exp exp='temperature_return = (index / 10) - 10' />
								</command>
								<command class_type='delay' title='Delay' cmdcolor='16752832' cmdcolor_sec='16777215' exp='1' type='1' />
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='dfb4d07a-3d70-45d5-83ef-07e3c95d86ab' vmin='4' vmaj='1' codename='Thermistor_LUT' 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='intfixed' data='1727,1736,1746,1755,1765,1774,1784,1793,1803,1813,1823,1832,1842,1852,1862,1872,1882,1892,1902,1913,1923,1933,1943,1954,1964,1974,1985,1995,2006,2017,2027,2038,2049,2059,2070,2081,2092,2103,2114,2125,2136,2147,2159,2170,2181,2192,2204,2215,2227,2238,2250,2261,2273,2285,2297,2308,2320,2332,2344,2356,2368,2380,2392,2405,2417,2429,2441,2454,2466,2479,2491,2504,2516,2529,2542,2555,2567,2580,2593,2606,2619,2632,2646,2659,2672,2685,2699,2712,2725,2739,2752,2766,2780,2793,2807,2821,2835,2849,2863,2877,2891,2905,2919,2933,2947,2962,2976,2991,3005,3020,3034,3049,3063,3078,3093,3108,3123,3138,3153,3168,3183,3198,3213,3229,3244,3259,3275,3290,3306,3321,3337,3353,3369,3384,3400,3416,3432,3448,3464,3481,3497,3513,3529,3546,3562,3579,3595,3612,3629,3645,3662,3679,3696,3713,3730,3747,3764,3781,3798,3816,3833,3850,3868,3885,3903,3921,3938,3956,3974,3992,4010,4028,4046,4064,4082,4100,4118,4137,4155,4174,4192,4211,4229,4248,4267,4285,4304,4323,4342,4361,4380,4399,4419,4438,4457,4477,4496,4516,4535,4555,4574,4594,4614,4634,4654,4674,4694,4714,4734,4754,4774,4795,4815,4835,4856,4876,4897,4918,4938,4959,4980,5001,5022,5043,5064,5085,5106,5128,5149,5170,5192,5213,5235,5256,5278,5300,5322,5343,5365,5387,5409,5431,5453,5476,5498,5520,5543,5565,5588,5610,5633,5655,5678,5701,5724,5747,5770,5793,5816,5839,5862,5885,5909,5932,5955,5979,6002,6026,6050,6073,6097,6121,6145,6169,6193,6217,6241,6265,6289,6314,6338,6362,6387,6411,6436,6461,6485,6510,6535,6560,6585,6610,6635,6660,6685,6710,6735,6761,6786,6811,6837,6862,6888,6914,6939,6965,6991,7017,7043,7069,7095,7121,7147,7173,7199,7226,7252,7278,7305,7331,7358,7385,7411,7438,7465,7492,7518,7545,7572,7599,7627,7654,7681,7708,7735,7763,7790,7818,7845,7873,7900,7928,7956,7984,8011,8039,8067,8095,8123,8151,8179,8208,8236,8264,8292,8321,8349,8378,8406,8435,8463,8492,8521,8550,8578,8607,8636,8665,8694,8723,8752,8781,8811,8840,8869,8898,8928,8957,8987,9016,9046,9075,9105,9135,9164,9194,9224,9254,9284,9314,9344,9374,9404,9434,9464,9494,9525,9555,9585,9616,9646,9677,9707,9738,9768,9799,9829,9860,9891,9922,9952,9983,10014,10045,10076,10107,10138,10169,10200,10232,10263,10294,10325,10357,10388,10419,10451,10482,10514,10545,10577,10608,10640,10672,10703,10735,10767,10799,10831,10862,10894,10926,10958,10990,11022,11054,11086,11119,11151,11183,11215,11247,11280,11312,11344,11377,11409,11442,11474,11506,11539,11572,11604,11637,11669,11702,11735,11767,11800,11833,11866,11898,11931,11964,11997,12030,12063,12096,12129,12162,12195,12228,12261,12294,12327,12360,12393,12427,12460,12493,12526,12559,12593,12626,12659,12693,12726,12759,12793,12826,12860,12893,12927,12960,12994,13027,13061,13094,13128,13161,13195,13229,13262,13296,13330,13363,13397,13431,13464,13498,13532,13566,13599,13633,13667,13701,13734,13768,13802,13836,13870,13904,13938,13971,14005,14039,14073,14107,14141,14175,14209,14243,14277,14311,14345,14379,14413,14447,14481,14515,14549,14583,14617,14651,14685,14719,14753,14787,14821,14855,14889,14923,14957,14991,15025,15059,15093,15127,15162,15196,15230,15264,15298,15332,15366,15400,15434,15468,15502,15536,15570,15604,15638,15672,15706,15740,15774,15808,15842,15876,15910,15944,15978,16012,16046,16080,16114,16148,16182,16216,16250,16284,16318,16352,16386,16420,16454,16488,16521,16555,16589,16623,16657,16691,16725,16758,16792,16826,16860,16893,16927,16961,16995,17028,17062,17096,17129,17163,17197,17230,17264,17298,17331,17365,17398,17432,17465,17499,17532,17566,17599,17633,17666,17700,17733,17766,17800,17833,17866,17900,17933,17966,17999,18033,18066,18099,18132,18165,18198,18232,18265,18298,18331,18364,18397,18430,18463,18496,18529,18561,18594,18627,18660,18693,18726,18758,18791,18824,18856,18889,18922,18954,18987,19019,19052,19084,19117,19149,19182,19214,19247,19279,19311,19344,19376,19408,19440,19472,19505,19537,19569,19601,19633,19665,19697,19729,19761,19793,19825,19856,19888,19920,19952,19984,20015,20047,20079,20110,20142,20173,20205,20236,20268,20299,20330,20362,20393,20424,20456,20487,20518,20549,20580,20611,20642,20673,20704,20735,20766,20797,20828,20859,20890,20920,20951,20982,21012,21043,21074,21104,21135,21165,21196,21226,21256,21287,21317,21347,21377,21408,21438,21468,21498,21528,21558,21588,21618,21648,21678,21707,21737,21767,21797,21826,21856,21886,21915,21945,21974,22003,22033,22062,22092,22121,22150,22179,22208,22238,22267,22296,22325,22354,22383,22411,22440,22469,22498,22527,22555,22584,22613,22641,22670,22698,22727,22755,22783,22812,22840,22868,22896,22925,22953,22981,23009,23037,23065,23093,23120,23148,23176,23204,23232,23259,23287,23314,23342,23369,23397,23424,23452,23479,23506,23534,23561,23588,23615,23642,23669,23696,23723,23750,23777,23804,23830,23857,23884,23910,23937,23964,23990,24017,24043,24069,24096,24122,24148,24174,24201,24227,24253,24279,24305,24331,24357,24383,24408,24434,24460,24486,24511,24537,24562,24588,24613,24639,24664,24690,24715,24740,24765,24791,24816,24841,24866,24891,24916,24941,24966,24990,25015,25040,25065,25089,25114,25138,25163,25187,25212,25236,25260,25285,25309,25333,25357,25381,25406,25430,25454,25477,25501,25525,25549,25573,25597,25620,25644,25667,25691,25714,25738,25761,25785,25808,25831,25855,25878,25901,25924,25947,25970,25993,26016,26039,26062,26084,26107,26130,26153,26175,26198,26220,26243,26265,26288,26310,26332,26355,26377,26399,26421,26443,26465,26487,26509,26531,26553,26575,26597,26619,26640,26662,26684,26705,26727,26748,26770,26791,26812,26834,26855,26876,26897,26919,26940,26961,26982,27003,27024,27045,27065,27086,27107,27128,27148,27169,27190,27210,27231,27251,27272,27292,27312,27333,27353,27373,27393,27413,27434,27454,27474,27494,27513,27533,27553,27573,27593,27612,27632,27652,27671,27691,27710,27730,27749,27769,27788,27807,27827,27846,27865,27884,27903,27922,27941,27960,27979,27998,28017,28036,28055,28073,28092,28111,28129,28148,28166,28185,28203,28222,28240,28258,28277,28295,28313,28331,28349,28368,28386,28404,28422,28440,28457,28475,28493,28511,28529,28546,28564,28582,28599,28617,28634,28652,28669,28687,28704,28721,28738,28756,28773,28790,28807,28824,28841,28858,28875,28892,28909,28926,28943,28960,28976,28993,29010,29026,29043,29059,29076,29092,29109,29125,29142,29158,29174,29191,29207,29223,29239,29255,29271' />
					<value target='floatfixed' data='' />
					<value target='fixedexp' data='0' />
					<value target='EmbedIntoC' data='1' />
				</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---------------------wUAAAAYAAAAUwcAAJcCAAA' zoom='100' scrollx='0' scrolly='504' flags='0' />
	</layout>
</document>
</root>
