<root>
<document schema='101' license='1,leoo,0T84PB' title='' description='' target='PIC16.24F.24FJ128GA202' >
	<config data='!0,bf2f!10,b23e!20,feff!30,7e7f%0,f%4,0%5,1%6,0%8,3%a,1%c,1%d,1%e,0%10,2%13,3%15,1%16,0%18,2%1c,1%1d,1%1f,1%20,7f%28,0%29,3%2b,1%2c,1%2d,1%2e,1%2f,1%30,1f%35,1%36,1%37,0%38,0%3a,f%3e,1%3f,0' clkspd='24576000' simspd='1' usewdt='1' 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 >
		<watch expr='Idx' />
		<watch expr='Idx2' />
		<watch expr='StrLenBt' />
		<watch expr='DataAvailBt' />
		<watch expr='StatSockBt' />
		<watch expr='RxBt' />
		<watch expr='RxStr' />
		<watch expr='NumInCircBuffBt' />
		<watch expr='NumOfPortsBt' />
		<watch expr='BaudBt' />
		<watch expr='PromValBt' />
		<watch expr='MACAddrBt' />
		<watch expr='FactRstFlg' />
		<watch expr='BaudBt' />
		<watch expr='IPAddrBt' />
		<watch expr='PortHiBt' />
		<watch expr='PortLoBt' />
		<watch expr='SubnetBt' />
		<watch expr='DsplyStr' />
		<watch expr='PwdBt' />
		<watch expr='TempStr' />
		<watch expr='Idx3' />
		<watch expr='PortNumCalcUInt' />
		<watch expr='RstMCUFlg' />
		<watch expr='GateBt' />
		<watch expr='SNBt' />
		<watch expr='SNCalcUInt' />
		<watch expr='FactRstButBt' />
		<watch expr='RetryBt' />
		<watch expr='PromAddrBt' />
		<watch expr='TempInt' />
		<watch expr='PromValBt' />
		<watch expr='PromWrite.Data' />
		<watch expr='PromWrite.PromAddress' />
	</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='1' />
			<data name='DataPort' value='1' />
			<data name='DataPin' value='0' />
			<data name='UseDefaultPins' value='1' />
			<data name='WrapEnabled' value='1' />
			<data name='CommsDelayOverridden' value='0' />
			<data name='CommsDelay' value='7' />
			<data name='CalculatedCommsDelay' value='7' />
		</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='f67cadae-bf1a-4354-b808-9e6a138637ce' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='Misc' 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='MAC3' target='TCP_IP_EB023_00_2::mac3' typeid='14' hidden='0' locked='0' info='' />
			</properties>
			<values >
				<value target='TCP_IP_EB023_00_2::mac3' data='0' />
			</values>
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='CS_Deselect' type='s16' description='' isconst='1' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CR' type='s16' description='' isconst='1' isinit='1' usrinit='13' setinit='13' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='READ' type='s16' description='Tell eeprom you want to do a READ' isconst='1' isinit='1' usrinit='3' setinit='3' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Idx' type='u8' description='Counter for stepping through loops' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PromAddrBt' type='u8' description='Start Address For MAC Address read' isconst='0' isinit='1' usrinit='250' setinit='0xFA' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='LF' type='s16' description='' isconst='1' isinit='1' usrinit='10' setinit='10' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='A4' type='u8' description='Dummy to read in A4' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CS_Select' type='s16' description='' isconst='1' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='MACAddrBt' type='u8' description='Holds MAC Add' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='6' />
					</def>
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='InitComps' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Init UART1' cmdcolor='1975743' cmdcolor_sec='1975743' component='UART1' macro='Initialise' />
						<command class_type='call' title='Init EB013' cmdcolor='1975743' cmdcolor_sec='1975743' component='SPI_Master_EB013' macro='Initialise' />
						<command class_type='call' title='Need this for PCB to run properly' cmdcolor='1975743' cmdcolor_sec='1975743' component='TCP_IP_EB023_00_2' macro='Initialise' />
						<command class_type='input' title='Make A4 an Input' cmdcolor='3610239' cmdcolor_sec='3610239' mode='1' port='1048576' mask='16' exp='A4' />
					</flowline>
				</macro>
				<macro >
					<flowline name='MACRead' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='PromAddr' type='u8' description='Address to Start readinh' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Index' type='u8' description='MAC Address array index' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='comment' title='' comment='CS = Lo
Send &quot;read&quot; cmd
Send 8 bit address
Read back data - byte_1 ....byte_n
CS = Hi' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='output' title='Chip Select Eeprom' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048576' mask='1' exp='CS_Select' />
						<command class_type='call' title='Send Read Enable' cmdcolor='1975743' cmdcolor_sec='1975743' component='SPI_Master_EB013' macro='SendChar' >
							<argument exp='READ' />
						</command>
						<command class_type='call' title='Send Lo Address' cmdcolor='1975743' cmdcolor_sec='1975743' component='SPI_Master_EB013' macro='SendChar' >
							<argument exp='.PromAddr' />
						</command>
						<command class_type='call' title='Read Address 0xFA' cmdcolor='1975743' cmdcolor_sec='1975743' component='SPI_Master_EB013' macro='GetChar' >
							<return exp='MACAddrBt[.Index]' />
						</command>
						<command class_type='output' title='Drop Eeprom Chip select' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048576' mask='1' exp='CS_Deselect' />
						<command class_type='delay' title='Delay' cmdcolor='7895044' cmdcolor_sec='7895044' exp='1' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='HARDWARE: ProCon3 Rev 2.0.0
' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='delay' title='Delay' cmdcolor='7895044' cmdcolor_sec='7895044' exp='100' type='1' />
						<command class_type='label' title='Connection Point' cmdcolor='3389439' cmdcolor_sec='3389439' labelid='0' labelname='A' />
						<command class_type='calculation' title='Set number of Ports for Initialization purposes' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='MACAddrBt[0] = 0' />
							<exp exp='MACAddrBt[1] = 0' />
							<exp exp='MACAddrBt[2] = 0' />
							<exp exp='MACAddrBt[3] = 0' />
							<exp exp='MACAddrBt[4] = 0' />
							<exp exp='MACAddrBt[5] = 0' />
						</command>
						<command class_type='call' title='Initialize all components' cmdcolor='1975743' cmdcolor_sec='1975743' macro='InitComps' />
						<command class_type='output' title='Drop Eeprom Chip select' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048576' mask='1' exp='CS_Deselect' />
						<command class_type='delay' title='Delay' cmdcolor='7895044' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='calculation' title='Set up MAC read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='PromAddrBt = 0xFA' />
							<exp exp='Idx = 0' />
						</command>
						<command class_type='loop' title='Read MAC Address' cmdcolor='3568629' cmdcolor_sec='3568629' type='2' exp='6' >
							<flowline >
								<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='MACRead' >
									<argument exp='PromAddrBt' />
									<argument exp='Idx' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='PromAddrBt = 255' swap='0' >
									<flowline />
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='PromAddrBt = PromAddrBt + 1' />
											<exp exp='Idx = Idx + 1' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='Idx = 0' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='3568629' cmdcolor_sec='3568629' type='2' exp='6' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='UART1' macro='SendNumber' >
									<argument exp='MACAddrBt[Idx]' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='UART1' macro='SendChar' >
									<argument exp='0x3A' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='Idx = Idx + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='UART1' macro='SendChar' >
							<argument exp='CR' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='UART1' macro='SendChar' >
							<argument exp='LF' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='3568629' cmdcolor_sec='3568629' type='0' exp='1' >
							<flowline />
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='d6db973b-a543-4743-91b5-176f9c6613df' vmin='8' vmaj='1' codename='TCP_IP_EB023_00_2' x='0' y='289.58' z='0.755' xsz='130' ysz='60.0001' 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='label' data='EB023 TCP/IP' />
					<value target='max_channels' data='4' />
					<value target='ORDINAL' data='000' />
					<value target='channel' data='000' />
					<value target='int_pin' data='$PORTA.4' />
					<value target='cs_pin' data='$PORTA.1' />
					<value target='mosi_pin' data='$PORTB.2' />
					<value target='miso_pin' data='$PORTB.4' />
					<value target='sck_pin' data='$PORTB.3' />
					<value target='MosiRemap' data='002' />
					<value target='MisoRemap' data='004' />
					<value target='ClkRemap' data='003' />
					<value target='gateway0' data='192' />
					<value target='gateway1' data='168' />
					<value target='gateway2' data='168' />
					<value target='gateway3' data='100' />
					<value target='subnet0' data='255' />
					<value target='subnet1' data='255' />
					<value target='subnet2' data='255' />
					<value target='subnet3' data='0' />
					<value target='ip0' data='192' />
					<value target='ip1' data='168' />
					<value target='ip2' data='168' />
					<value target='ip3' data='1' />
					<value target='mac0' data='84' />
					<value target='mac1' data='16' />
					<value target='mac2' data='236' />
					<value target='mac3' data='0' />
					<value target='mac4' data='0' />
					<value target='mac5' data='0' />
					<value target='MIAC_SYSTEM' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='c73616d1-7ad0-45d9-aada-69ccfa4c5efc' vmin='0' vmaj='2' codename='UART1' x='0' y='370.657' z='0.755' xsz='130' ysz='60.0001' 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='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='TX' data='$PORTB.11' />
					<value target='RX' data='$PORTB.10' />
					<value target='CTS' data='$PORTB.1' />
					<value target='RTS' data='$PORTB.2' />
					<value target='TXRemap' data='010' />
					<value target='RXRemap' data='010' />
					<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='4627d2fb-b41e-44cf-b125-e8511e5ebaa4' vmin='3' vmaj='1' codename='SPI_Master_EB013' x='0' y='210' z='0.755' xsz='130' ysz='60.0001' 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='000' />
					<value target='PR_SCALE' data='008' />
					<value target='CKP' data='000' />
					<value target='CKE' data='001' />
					<value target='SMP' data='000' />
					<value target='Version' data='003' />
					<value target='DAC_En' data='$PORTA.4' />
					<value target='NVM_En' data='$PORTA.0' />
					<value target='MOSI' data='$PORTB.2' />
					<value target='MISO' data='$PORTB.4' />
					<value target='CLK' data='$PORTB.3' />
					<value target='MosiRemap' data='002' />
					<value target='MisoRemap' data='004' />
					<value target='ClkRemap' data='003' />
					<value target='label' data='SPI  Master' />
					<value target='ScopeTraces' data='0' />
					<value target='ConsoleData' data='1' />
					<value target='Injector' data='000' />
					<value target='InjectorHandle' 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='-13.1217' ye='125.121' ze='262.976' xt='-13.1217' yt='125.121' 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='-57.847' ye='-21.3385' ze='331.148' xt='-57.847' yt='-21.3385' 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---------------------wUAAAAYAAAAIAQAAIgDAAA' zoom='70' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='MACRead' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAIAQAAIgDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='InitComps' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAIAQAAIgDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
