<root>
<document schema='101' license='1,Martin Whitlock,JQE1YE' title='' description='' target='PIC.16F.16F883' >
	<config data='!0,3fff!10,3fff%0,7%3,1%4,1%5,1%6,1%7,1%8,3%a,1%b,1%c,1%d,1%19,3%18,1' clkspd='19660800' 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='monitor' value='1' />
			<data name='ictloop' value='0' />
			<data name='ictrate' value='20000' />
			<data name='ictmask' value='0' />
		</dll_dbg_icd>
		<dll_models enabled='1' />
		<dll_upgrader enabled='1' />
		<dll_webhelp enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug >
		<watch expr='Cycles' />
		<watch expr='TotCycle1' />
		<watch expr='TotCycle2' />
		<watch expr='TotCycle3' />
		<watch expr='TotCycle4' />
	</debug>
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='e5ac0e8c-4d07-454e-b2fe-88fe6f7f4e91' 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='TotCycle4' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TotCycle3' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TotCycle2' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TotCycle1' type='u8' description='' 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='Cycles' type='u32' description='' 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='Main' description='' >
						<command class_type='comment' title='' comment='ULong number to store within EEPROM' textarea='36,56,36,56' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='Cycles = 1234567890' />
						</command>
						<command class_type='comment' title='' comment='seperate number into individual bytes' textarea='46,87,46,87' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='TotCycle1 = (Cycles &amp; 0xFF000000) &gt;&gt; 24' />
							<exp exp='TotCycle2 = (Cycles &amp; 0xFF0000) &gt;&gt; 16' />
							<exp exp='TotCycle3 = (Cycles &amp; 0xFF00) &gt;&gt; 8' />
							<exp exp='TotCycle4 = (Cycles &amp; 0xFF)' />
						</command>
						<command class_type='comment' title='' comment='Write bytes into 4 EEPROM addresses' textarea='66,140,66,140' />
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Write' >
							<argument exp='22' />
							<argument exp='22' />
						</command>
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Write' >
							<argument exp='1' />
							<argument exp='TotCycle1' />
						</command>
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Write' >
							<argument exp='2' />
							<argument exp='TotCycle2' />
						</command>
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Write' >
							<argument exp='3' />
							<argument exp='TotCycle3' />
						</command>
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Write' >
							<argument exp='4' />
							<argument exp='TotCycle4' />
						</command>
						<command class_type='comment' title='' comment='Clear all variables' textarea='36,106,36,106' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='TotCycle1 = 0' />
							<exp exp='TotCycle2 = 0' />
							<exp exp='TotCycle3 = 0' />
							<exp exp='TotCycle4 = 0' />
							<exp exp='Cycles = 0' />
						</command>
						<command class_type='comment' title='' comment='Read 4 EEPROM addesses where ULong number has been stored' textarea='40,112,40,112' />
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Read' >
							<return exp='TotCycle1' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Read' >
							<return exp='TotCycle2' />
							<argument exp='2' />
						</command>
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Read' >
							<return exp='TotCycle3' />
							<argument exp='3' />
						</command>
						<command class_type='call' title='Call Component Macro' component='eeprom1' macro='Read' >
							<return exp='TotCycle4' />
							<argument exp='4' />
						</command>
						<command class_type='comment' title='' comment='Combine seperate bytes back in to ULong variable' textarea='157,79,157,79' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='Cycles = TotCycle1 * 16777216 + TotCycle2 * 65536 + TotCycle3 * 256 + TotCycle4' />
						</command>
						<command class_type='loop' title='Loop' type='0' exp='1' >
							<flowline />
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='dcbf571f-a6fa-402d-bdd4-be00cca4070f' vmin='1' vmaj='1' codename='eeprom1' x='0' y='0' z='1.24088' xsz='20' ysz='20' zsz='20' 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='EESize' data='256 byte' />
					<value target='EEbitdepth' data='8 bit' />
					<value target='InitialValues' data='' />
					<value target='InitValsParsed' data='' />
				</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---------------------wAAAAAUAAAADgMAAFkDAAA' zoom='75' scrollx='0' scrolly='728' flags='0' />
	</layout>
</document>
</root>
