<root>
<document schema='101' license='1,Streammaster,MFE9Y2' title='' description='' target='PIC.18F.ECIO-40' >
	<config data='' clkspd='48000000' 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 >
		<watch expr='SIM_Update_TXT_labels.bit' />
		<watch expr='SIM_Update_TXT_labels.ind' />
		<watch expr='Input' />
		<watch expr='Option' />
		<watch expr='Output' />
		<watch expr='Polarity' />
		<watch expr='Ev_Initialise.tempstring' />
		<watch expr='Configuration' />
		<watch expr='Input' />
		<watch expr='Interupt' />
		<watch expr='Option' />
		<watch expr='Output' />
		<watch expr='Polarity' />
		<watch expr='Num2Bin.Return' />
		<watch expr='Num2Bin.Number' />
		<watch expr='Num2Bin.idx' />
		<watch expr='Num2Bin.value' />
		<watch expr='Slave_adr' />
		<watch expr='SIM_Update_Input_Registers.Color' />
		<watch expr='SIM_Update_Input_Registers.Temp' />
		<watch expr='SIM_Update_Input_Registers.bit' />
		<watch expr='SIM_Update_Input_Registers.idx' />
		<watch expr='SIM_Update_Input_Registers.state' />
		<watch expr='BL' />
		<watch expr='SIM_Update_Input_Registers.Input' />
		<watch expr='SIM_Update_Input_Registers.Color' />
		<watch expr='SIM_Update_Input_Registers.Input' />
		<watch expr='SIM_Update_Input_Registers.Temp' />
		<watch expr='SIM_Update_Input_Registers.bit' />
		<watch expr='SIM_Update_Input_Registers.idx' />
		<watch expr='SIM_Update_Input_Registers.state' />
	</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='2' />
			<data name='ClockPin' value='4' />
			<data name='DataPort' value='4' />
			<data name='DataPin' value='2' />
			<data name='UseDefaultPins' value='1' />
			<data name='WrapEnabled' value='1' />
			<data name='CommsDelayOverridden' value='0' />
			<data name='CommsDelay' value='4' />
			<data name='CalculatedCommsDelay' value='4' />
		</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='0' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='97258177-0288-4e80-9749-1c3452c17de7' vstate='40' vmin='0' vmaj='1' srcleaf='TCA6408A-V2.fcfx' visiblename='8bit IO Expander' description='' category='Storage' catenable='1' author='streammaster' manuname='TCA6408A' manucode='TCA6408A' sysinfo='1069835' keywords='' dynamic='1' iconpath='.\TCA6408A.PNG' />
		<component class_type='root' codename='TCA6408A' 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' macronames='$(type)_$(module)__$(macro)' >
			<resources />
			<properties >
				<property name='Channel' target='CHANNEL' typeid='16' hidden='0' locked='0' info='' filter='000Software
001Channel 1
' />
				<property name='SCL' target='SCL' typeid='5' hidden='0' locked='0' info='' />
				<property name='SDA' target='SDA' typeid='5' hidden='0' locked='0' info='' />
				<property name='Slave Address' target='Slave_addres' typeid='16' hidden='0' locked='0' hexview='1' info='' filter='0000x20
0010x21' expansion='$(type)_$(module)__$(variable:u)' initialiser='($(value))' />
				<property name='INT' target='io_INTERUPT' typeid='5' hidden='0' locked='0' info='' expansion='$(type)_$(module)__$(variable:u)' initialiser='($(value))' />
				<property name='RESET' target='io_RESET' typeid='5' hidden='0' locked='0' info='' />
			</properties>
			<values >
				<value target='CHANNEL' data='000' />
				<value target='SCL' data='$PORTB.1' />
				<value target='SDA' data='$PORTB.0' />
				<value target='Slave_addres' data='000' />
				<value target='io_INTERUPT' data='$PORTA.4' />
				<value target='io_RESET' data='$PORTE.3' />
			</values>
			<events >
				<event class='Simulation' event='Start' target='Ev_Initialise' />
				<event class='Components' event='Property' target='Ev_Initialise' />
				<event class='Mouse' event='Release' target='Ev_Click' />
				<event class='Components' event='Initialise' target='Ev_Initialise' />
			</events>
			<apis >
				<api name='Read_Pin' alt='Read_Pin' type='1' proto='1' />
				<api name='Read_Port_Direction' alt='Read_Port_Direction' type='1' proto='1' />
				<api name='Write_Pin' alt='Write_Pin' type='1' proto='1' />
				<api name='Write_Port' alt='Write_Port' type='1' proto='1' />
				<api name='Read_Port' alt='Read_Port' type='1' proto='1' />
				<api name='Read_port_Inversion' alt='Read_port_Inversion' type='1' proto='1' />
				<api name='Initialise' alt='Initialise' type='1' proto='1' />
			</apis>
			<variables >
				<variable public='0' >
					<def class_type='variable' name='BL' type='h32' description='' isconst='0' isinit='1' usrinit='0' setinit='0' >
						<array size='8' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='i2C_Read_Byte' type='u8' 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='Configuration' type='u8' description='Pin direction configuration register (0= Output, 1= Input)' isconst='0' isinit='1' usrinit='255' setinit='0b11111111' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CR_Config_addr' type='s16' description='Control register address for configuration register - Output (read/write)' isconst='1' isinit='1' usrinit='3' setinit='0x03' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Output' type='u8' description='Output register' isconst='0' isinit='1' usrinit='0' setinit='0b00000000' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CR_Polarity_addr' type='s16' description='Control register address for Polarity inversion register (Read/Write)' isconst='1' isinit='1' usrinit='2' setinit='0x02' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='RetVal' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CR_OUTPUT_PORT_addr' type='s16' description='Control register address for port register - Output (read/write)' isconst='1' isinit='1' usrinit='1' setinit='0x01' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Input' type='u8' description='Input register' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CR_INPUT_PORT_addr' type='s16' description='Control register address for setting Input poart register (Read port)' isconst='1' isinit='1' usrinit='0' setinit='0x00' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Slave_adr' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Polarity' type='u8' description='Polarity Inversion Register' isconst='0' isinit='1' usrinit='0' setinit='0b00000000' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Option' type='u8' description='' isconst='0' isinit='1' usrinit='58' setinit='58' />
				</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='Output_reg' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Interupt' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='Reset' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Initialise' />
					</flowline>
				</macro>
				<macro >
					<flowline name='SIM_Update_Input_Registers' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<local name='bit' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='state' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='idx' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Temp' type='u32' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Color' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<local name='Input' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='.idx = 0' />
							<exp exp='.Input = 0' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='3568629' cmdcolor_sec='3568629' type='0' exp='.idx &lt; 8' >
							<flowline >
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.GetValue' >
									<return exp='.Color' />
									<argument exp='BL[.idx]' />
									<argument exp='&quot;Color&quot;' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='.Temp = StringToInt$ (.color)' />
									<exp exp='' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.Temp = 255' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='.Input = .input + (1 &lt;&lt; .idx)' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='.idx = .idx + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='Input = .input XOR Polarity' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Read_Pin' description='Read status of single IO port pin' >
						<return name='Return' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Pin_num' type='u8' description='Pin number (0...7)' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Byte' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Read_Port' >
							<return exp='.Byte' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='.Return = .Byte &gt;&gt; .Pin_num' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Read_Port_Direction' description='Read 8 pins from the IO port' >
						<return name='Return' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='i2C_Read' >
							<return exp='.Return' />
							<argument exp='Slave_adr' />
							<argument exp='CR_Config_addr' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Ev_Initialise' description='Initialisation routine for the component once the component is linked to its parent' >
						<return name='Return' type='u32' description='Non-zero to prevent initialisation' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='tempstring' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' component='cal_i2c1' macro='GetList' >
							<return exp='.tempstring' />
							<argument exp='&quot;CHANNEL&quot;' />
						</command>
						<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.SetFilter' >
							<argument exp='this' />
							<argument exp='&quot;CHANNEL&quot;' />
							<argument exp='.tempstring' />
						</command>
						<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.GetValue' >
							<return exp='.tempstring' />
							<argument exp='this' />
							<argument exp='&quot;CHANNEL&quot;' />
						</command>
						<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' component='cal_i2c1' macro='SetValue' >
							<argument exp='&quot;CHANNEL&quot;' />
							<argument exp='.tempstring' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='CHANNEL = 0' swap='0' >
							<flowline >
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.SetWritable' >
									<argument exp='this' />
									<argument exp='&quot;SDA&quot;' />
									<argument exp='1' />
								</command>
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.SetWritable' >
									<argument exp='this' />
									<argument exp='&quot;SCL&quot;' />
									<argument exp='1' />
								</command>
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.GetValue' >
									<return exp='.tempstring' />
									<argument exp='this' />
									<argument exp='&quot;SDA&quot;' />
								</command>
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' component='cal_i2c1' macro='SetValue' >
									<argument exp='&quot;SDA&quot;' />
									<argument exp='.tempstring' />
								</command>
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.GetValue' >
									<return exp='.tempstring' />
									<argument exp='this' />
									<argument exp='&quot;SCL&quot;' />
								</command>
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' component='cal_i2c1' macro='GetValue' >
									<argument exp='&quot;SCL&quot;' />
								</command>
							</flowline>
							<flowline >
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.SetWritable' >
									<argument exp='this' />
									<argument exp='&quot;SDA&quot;' />
									<argument exp='0' />
								</command>
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.SetWritable' >
									<argument exp='this' />
									<argument exp='&quot;SCL&quot;' />
									<argument exp='0' />
								</command>
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' component='cal_i2c1' macro='GetValue' >
									<return exp='.tempstring' />
									<argument exp='&quot;SDA&quot;' />
								</command>
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.SetValue' >
									<argument exp='this' />
									<argument exp='&quot;SDA&quot;' />
									<argument exp='.tempstring' />
								</command>
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' component='cal_i2c1' macro='GetValue' >
									<return exp='.tempstring' />
									<argument exp='&quot;SCL&quot;' />
								</command>
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.SetValue' >
									<argument exp='this' />
									<argument exp='&quot;SCL&quot;' />
									<argument exp='.tempstring' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='Slave_addres' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='Slave_adr = 0x21' />
								</command>
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' component='ADR' macro='TurnOn' />
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='Slave_adr = 0x20' />
								</command>
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' component='ADR' macro='TurnOff' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='i2C_Read' description='' >
						<return name='Return' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='i2C_Device_Address' type='u8' description='Address of Device as 8bits ( 7bit Address +0)' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Register_to_Read' type='u8' description='Register Pointer Address' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='comment' title='' comment='Start --&gt; DevAddress+W --&gt; RegAddress --&gt; ReStart --&gt; DevAddress+R --&gt; ReadData --&gt; Stop
R = 1
W = 0' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Start' cmdcolor='1975743' cmdcolor_sec='1975743' component='cal_i2c1' macro='Master_Start' />
						<command class_type='call' title='Send Slave Address + Write' cmdcolor='1975743' cmdcolor_sec='1975743' component='cal_i2c1' macro='Master_TxByte' >
							<argument exp='.i2C_Device_Address &lt;&lt; 1' />
						</command>
						<command class_type='call' title='Send Register Pointer' cmdcolor='1975743' cmdcolor_sec='1975743' component='cal_i2c1' macro='Master_TxByte' >
							<argument exp='.Register_to_Read' />
						</command>
						<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' component='dash_IO_flasher1' macro='FlashRx' />
						<command class_type='call' title='Re-Start' cmdcolor='1975743' cmdcolor_sec='1975743' component='cal_i2c1' macro='Master_Restart' />
						<command class_type='call' title='Send Slave Address + Read' cmdcolor='1975743' cmdcolor_sec='1975743' component='cal_i2c1' macro='Master_TxByte' >
							<argument exp='(.i2C_Device_Address &lt;&lt; 1) + 1' />
						</command>
						<command class_type='call' title='Read Byte from Register' cmdcolor='1975743' cmdcolor_sec='1975743' component='cal_i2c1' macro='Master_RxByte' >
							<return exp='.Return' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Stop' cmdcolor='1975743' cmdcolor_sec='1975743' component='cal_i2c1' macro='Master_Stop' />
						<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' component='dash_IO_flasher1' macro='FlashTx' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Set_Port_Inversion' description='Write byte to the IO port' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='port_inversion_data' type='u8' description='Port data  to set the port Output(Byte)' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='i2C_Write' >
							<argument exp='Slave_adr' />
							<argument exp='CR_OUTPUT_PORT_addr' />
							<argument exp='.port_inversion_data' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='SIM_Update_Input_Registers' />
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='SIM_Update_TXT_labels' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Num2Bin' description='' >
						<return name='Return' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' />
						<param name='Number' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='idx' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='value' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<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='0' exp='.idx &lt; 8' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.Number &amp; (0x80 &gt;&gt; .idx)' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='.Return = .Return + &quot;1&quot;' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='.Return = .Return + &quot;0&quot;' />
										</command>
									</flowline>
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='.idx = .idx + 1' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Write_Pin' description='Set single pin on IO port (0...7)' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='port_write_Pin_stat' type='b1' description='Pin Status to set (Bool 1, 0)' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='port_write_pin_number' type='u8' description='Pin Address (0..7)' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Bit_A' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Byte' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Read_Output_reg' >
							<return exp='Output_reg' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='.Bit_A = Output_reg &gt;&gt; .port_write_pin_number' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.Bit_A = .port_write_Pin_stat' swap='1' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='.Byte = Output_reg XOR (0b1 &lt;&lt; .port_write_pin_number)' />
								</command>
								<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Write_Port' >
									<argument exp='.Byte' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Write_Port' description='Write byte to the IO port' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='port_write_data' type='u8' description='Port data  to set the port Output(Byte)' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='i2C_Write' >
							<argument exp='Slave_adr' />
							<argument exp='CR_OUTPUT_PORT_addr' />
							<argument exp='.port_write_data' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='SIM_Update_Output_Colors' />
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='SIM_Update_Input_Registers' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Read_Output_reg' description='Read 8 pins from the IO port' >
						<return name='Return' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='i2C_Read' >
							<return exp='.Return' />
							<argument exp='Slave_adr' />
							<argument exp='CR_OUTPUT_PORT_addr' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SIM_Update_Output_Colors' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<local name='bit' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='state' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='idx' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Temp' type='u32' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Color' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<local name='Input' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='.idx = 0' />
							<exp exp='.Input = 0' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='3568629' cmdcolor_sec='3568629' type='0' exp='.idx &lt; 8' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='.bit = Output &gt;&gt; .idx' />
									<exp exp='.state = Configuration &gt;&gt; .idx' />
									<exp exp='' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.bit = 1 AND .state = 0' swap='0' >
									<flowline >
										<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.SetColor' >
											<argument exp='BL[.idx]' />
											<argument exp='255' />
											<argument exp='0' />
											<argument exp='0' />
										</command>
									</flowline>
									<flowline >
										<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.bit = 0 AND .state = 0' swap='0' >
											<flowline >
												<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.SetColor' >
													<argument exp='BL[.idx]' />
													<argument exp='0' />
													<argument exp='255' />
													<argument exp='0' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='.idx = .idx + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='Input = .Input XOR Polarity' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Read_Port' description='Read 8 pins from the IO port' >
						<return name='Return' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='i2C_Read' >
							<return exp='.Return' />
							<argument exp='Slave_adr' />
							<argument exp='CR_INPUT_PORT_addr' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='io_INTERUPT = 0' />
						</command>
						<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' component='INT' macro='TurnOff' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Read_port_Inversion' description='Read 8 pins from the IO port' >
						<return name='Return' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='i2C_Read' >
							<return exp='.Return' />
							<argument exp='Slave_adr' />
							<argument exp='CR_INPUT_PORT_addr' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SIM_Update_TXT_labels' description='Update Dashboard text' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<local name='idx' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='bit' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='s_polar' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='8' />
						</local>
						<local name='s_input' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='8' />
						</local>
						<local name='s_Output' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='8' />
						</local>
						<local name='s_Conf' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='8' />
						</local>
						<local name='Value' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Num2Bin' >
							<return exp='.s_polar' />
							<argument exp='Polarity' />
						</command>
						<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' component='dashboard_text1' macro='PrintLine' >
							<argument exp='.s_polar' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Num2Bin' >
							<return exp='.s_input' />
							<argument exp='Input' />
						</command>
						<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' component='dashboard_text1' macro='PrintLine' >
							<argument exp='.s_input' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Num2Bin' >
							<return exp='.s_Output' />
							<argument exp='Output' />
						</command>
						<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' component='dashboard_text1' macro='PrintLine' >
							<argument exp='.s_Output' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Num2dir' >
							<return exp='.s_Conf' />
							<argument exp='Configuration' />
						</command>
						<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' component='dashboard_text1' macro='PrintLine' >
							<argument exp='.s_Conf' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='i2C_Write' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='i2C_Device_Address' type='u8' description='Device Address as 8Bit ( 7bit Device Address +0 )' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Register_Address' type='u8' description='Register Pointer Address' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Data' type='u8' description='Data value to be written to register' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='comment' title='' comment='Start --&gt; Address+R --&gt; Register --&gt; Data --&gt; Stop' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Start' cmdcolor='1975743' cmdcolor_sec='1975743' component='cal_i2c1' macro='Master_Start' />
						<command class_type='call' title='Send Slave Address' cmdcolor='1975743' cmdcolor_sec='1975743' component='cal_i2c1' macro='Master_TxByte' >
							<argument exp='.i2C_Device_Address &lt;&lt; 1' />
						</command>
						<command class_type='call' title='Send Register Pointer' cmdcolor='1975743' cmdcolor_sec='1975743' component='cal_i2c1' macro='Master_TxByte' >
							<return exp='RetVal' />
							<argument exp='.Register_Address' />
						</command>
						<command class_type='call' title='Send Data to Register' cmdcolor='1975743' cmdcolor_sec='1975743' component='cal_i2c1' macro='Master_TxByte' >
							<argument exp='.Data' />
						</command>
						<command class_type='call' title='Stop' cmdcolor='1975743' cmdcolor_sec='1975743' component='cal_i2c1' macro='Master_Stop' />
						<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' component='dash_IO_flasher1' macro='FlashRx' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Set_Port_Direction' description='Write byte to the IO port' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<param name='port_direction_data' type='u8' description='Port data  to set the port Output(Byte)' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='i2C_Write' >
							<argument exp='Slave_adr' />
							<argument exp='CR_OUTPUT_PORT_addr' />
							<argument exp='.port_direction_data' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='SIM_Update_TXT_labels' />
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='SIM_Update_Output_Colors' />
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='SIM_Update_Input_Registers' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Initialise' />
						<command class_type='loop' title='Loop' cmdcolor='3568629' cmdcolor_sec='3568629' type='0' exp='1' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='io_RESET = 0' swap='0' >
									<flowline >
										<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Reset' />
										<command class_type='delay' title='Delay' cmdcolor='7895044' cmdcolor_sec='7895044' exp='1' type='2' />
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Ev_Click' description='Post when the mouse is clicked on a child of the component during simulation' >
						<return name='Return' type='u32' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='Component' type='h32' description='The component clicked on' isconst='0' isinit='0' usrinit='0' setinit='' />
						<param name='X' type='f32' description='X coordinate relative to &apos;Component&apos;' isconst='0' isinit='0' usrinit='0.0' setinit='' />
						<param name='Y' type='f32' description='Y coordinate relative to &apos;Component&apos;' isconst='0' isinit='0' usrinit='0.0' setinit='' />
						<param name='Z' type='f32' description='Z coordinate relative to &apos;Component&apos;' isconst='0' isinit='0' usrinit='0.0' setinit='' />
						<local name='Value' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Indx' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Bit_A' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Bit_B' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Temp' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Bit_C' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Bit_D' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.GetValue' >
							<return exp='.Value' />
							<argument exp='.Component' />
							<argument exp='&quot;Color&quot;' />
						</command>
						<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.Component' >
							<case >
								<flowline >
									<command class_type='goto' title='Goto Connection Point' cmdcolor='3389439' cmdcolor_sec='3389439' labelid='0' labelname='' />
								</flowline>
							</case>
							<case exp='B0 + 2' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
										<exp exp='.Indx = 0' />
										<exp exp='BL[0] = .Component' />
									</command>
								</flowline>
							</case>
							<case exp='B1 + 2' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
										<exp exp='.Indx = 1' />
										<exp exp='BL[1] = .Component' />
									</command>
								</flowline>
							</case>
							<case exp='B2 + 2' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
										<exp exp='.Indx = 2' />
										<exp exp='BL[2] = .Component' />
									</command>
								</flowline>
							</case>
							<case exp='B3 + 2' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
										<exp exp='.Indx = 3' />
										<exp exp='BL[3] = .Component' />
									</command>
								</flowline>
							</case>
							<case exp='B4 + 2' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
										<exp exp='.Indx = 4' />
										<exp exp='BL[4] = .Component' />
									</command>
								</flowline>
							</case>
							<case exp='B5 + 2' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
										<exp exp='.Indx = 5' />
										<exp exp='BL[5] = .Component' />
									</command>
								</flowline>
							</case>
							<case exp='B6 + 2' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
										<exp exp='.Indx = 6' />
										<exp exp='BL[6] = .Component' />
									</command>
								</flowline>
							</case>
							<case exp='B7 + 6' >
								<flowline >
									<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
										<exp exp='.Indx = 7' />
										<exp exp='BL[7] = .Component' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='.Bit_A = Configuration &gt;&gt; .Indx' />
							<exp exp='.Bit_B = Output &gt;&gt; .Indx' />
							<exp exp='.Bit_C = Input &gt;&gt; .Indx' />
							<exp exp='.Bit_D = Polarity &gt;&gt; .Indx' />
						</command>
						<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='' />
						<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.Bit_A = 0 AND .Bit_B = 1' swap='0' >
							<flowline >
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.SetColor' >
									<argument exp='.Component' />
									<argument exp='255' />
									<argument exp='00' />
									<argument exp='00' />
								</command>
								<command class_type='goto' title='Goto Connection Point' cmdcolor='3389439' cmdcolor_sec='3389439' labelid='0' labelname='' />
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.Bit_A = 0 AND .Bit_B = 0' swap='0' >
							<flowline >
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.SetColor' >
									<argument exp='.Component' />
									<argument exp='00' />
									<argument exp='255' />
									<argument exp='00' />
								</command>
								<command class_type='goto' title='Goto Connection Point' cmdcolor='3389439' cmdcolor_sec='3389439' labelid='0' labelname='' />
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.Value = 0x0000FF' swap='0' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='(.Bit_C = 1 AND .Bit_D = 0) OR (.Bit_C = 0 AND .Bit_D = 1)' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='input = input XOR (1 &lt;&lt; .Indx)' />
											<exp exp='Interupt = 1' />
										</command>
										<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' component='INT' macro='TurnOn' />
									</flowline>
									<flowline />
								</command>
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.SetColor' >
									<argument exp='.Component' />
									<argument exp='00' />
									<argument exp='255' />
									<argument exp='00' />
								</command>
							</flowline>
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='(.Bit_C = 0 AND .Bit_D = 0) OR (.Bit_C = 1 AND .Bit_D = 1)' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='input = input XOR (1 &lt;&lt; .Indx)' />
											<exp exp='Interupt = 1' />
										</command>
										<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' component='INT' macro='TurnOn' />
									</flowline>
									<flowline />
								</command>
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' macro='Component.Property.SetColor' >
									<argument exp='.Component' />
									<argument exp='255' />
									<argument exp='00' />
									<argument exp='00' />
								</command>
							</flowline>
						</command>
						<command class_type='label' title='Connection Point' cmdcolor='3389439' cmdcolor_sec='3389439' labelid='0' labelname='A' />
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='SIM_Update_TXT_labels' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Initialise' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='Slave_addres' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='Slave_adr = 0x21' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='Slave_adr = 0x20' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' component='cal_i2c1' macro='Master_Init' />
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='SIM_Update_TXT_labels' />
						<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' component='INT' macro='TurnOff' />
						<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' component='RESET' macro='TurnOff' />
						<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='Slave_adr = 0x21' swap='0' >
							<flowline >
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' component='ADR' macro='TurnOn' />
							</flowline>
							<flowline >
								<command class_type='sim' title='Simulation' cmdcolor='1975743' cmdcolor_sec='1975743' component='ADR' macro='TurnOff' />
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='BL[0] = 251' />
							<exp exp='BL[1] = 247' />
							<exp exp='BL[2] = 243' />
							<exp exp='BL[3] = 239' />
							<exp exp='BL[4] = 235' />
							<exp exp='BL[5] = 231' />
							<exp exp='BL[6] = 227' />
							<exp exp='BL[7] = 223' />
							<exp exp='Configuration = 255' />
							<exp exp='io_RESET = 1' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='SIM_Update_Output_Colors' />
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='SIM_Update_Input_Registers' />
						<command class_type='call' title='Call Macro' cmdcolor='1975743' cmdcolor_sec='1975743' macro='SIM_Update_TXT_labels' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Num2dir' description='' >
						<return name='Return' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' />
						<param name='Number' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='idx' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='value' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<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='0' exp='.idx &lt; 8' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='3568629' cmdcolor_sec='3568629' exp='.Number &amp; (0x80 &gt;&gt; .idx)' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='.Return = .Return + &quot;^&quot;' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
											<exp exp='.Return = .Return + &quot;v&quot;' />
										</command>
									</flowline>
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
									<exp exp='.idx = .idx + 1' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label3' x='-153.219' y='39.4328' z='0' xsz='3.88847' ysz='6.16531' zsz='0' 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='Color' data='16777215' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='Invert &lt;&gt;' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label4' x='-153.056' y='-107.806' z='0.25' xsz='3.11643' ysz='6.1492' zsz='0' 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='Color' data='16777215' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='Direction&lt;&gt;' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label17' x='-151.477' y='-58.695' z='0' xsz='3.69014' ysz='6.14838' zsz='0' 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='Color' data='16777215' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='Output&lt;&gt;' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='caf757fd-8813-421e-bf75-1a365b20dbc5' vmin='0' vmaj='1' codename='INT' x='-96.6472' y='124.193' z='6.3227' xsz='39.5168' ysz='34.5106' zsz='12.6454' 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='col_on' data='65280' />
					<value target='col_off' data='128' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='caf757fd-8813-421e-bf75-1a365b20dbc5' vmin='0' vmaj='1' codename='RESET' x='-96.6472' y='166.208' z='6.3227' xsz='39.5168' ysz='34.5106' zsz='12.6454' 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='col_on' data='65280' />
					<value target='col_off' data='128' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label1' x='-197.396' y='167.298' z='0' xsz='3.38372' ysz='4.49247' zsz='0' 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='Color' data='16777215' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='RESET (inv) &gt;' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label2' x='-189.515' y='125.982' z='0' xsz='3.77014' ysz='4.49247' zsz='0' 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='Color' data='16777215' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data=' INT (inv) &lt;' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label6' x='40.4479' y='225.771' z='0' xsz='7.45144' ysz='7.41706' zsz='0' 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='Color' data='16777215' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial Black' />
					<value target='Text' data='TCA6408A' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='caf757fd-8813-421e-bf75-1a365b20dbc5' vmin='0' vmaj='1' codename='ADR' x='-96.2441' y='81.117' z='6.3227' xsz='39.5168' ysz='34.5106' zsz='12.6454' 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='col_on' data='255' />
					<value target='col_off' data='1212416' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label19' x='-166.941' y='84.5323' z='0' xsz='3.67405' ysz='4.49247' zsz='0' 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='Color' data='16777215' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='ADR  &gt;' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='ed3a5141-43bb-43e0-86b0-2243fd1147ca' vmin='3' vmaj='1' codename='cal_i2c1' x='58.0973' y='576.981' z='-725.963' xsz='98.792' ysz='98.792' zsz='98.792' xang='0' yang='0' zang='90.8623' xquat='0' yquat='0' zquat='0.712408' wquat='0.701766' visible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='REF' data='1' />
					<value target='CHANNEL' data='000' />
					<value target='SDA' data='$PORTB.0' />
					<value target='SCL' data='$PORTB.1' />
					<value target='BAUD_LIST' data='002' />
					<value target='BAUD' data='400000' />
					<value target='SRC' data='000' />
					<value target='SMB' data='000' />
					<value target='StopDel' data='1' />
					<value target='BMODE' data='0' />
					<value target='SDA_PORT' data='$PORTB.0' />
					<value target='SDA_TRIS' data='$PORTB.0' />
					<value target='SDA_PIN' data='0' />
					<value target='SCL_PORT' data='$PORTB.1' />
					<value target='SCL_TRIS' data='$PORTB.1' />
					<value target='SCL_PIN' data='1' />
					<value target='MASTER' data='1' />
					<value target='ScopeTraces' data='0' />
					<value target='ConsoleData' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='175423b4-b359-4aa7-9bc4-1867301742af' vmin='1' vmaj='1' codename='dash_IO_flasher1' x='87.526' y='134.118' z='3.58945' xsz='4.75424' ysz='4.75424' zsz='4.75424' 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='label' data='I2C Master' />
					<value target='icon_image' data='this:Dashboard BG.PNG' />
					<value target='flash_time' data='250' />
					<value target='Tx_on_color' data='65280' />
					<value target='Tx_off_color' data='13056' />
					<value target='Rx_on_color' data='255' />
					<value target='Rx_off_color' data='65' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label5' x='-142.413' y='-223.001' z='0.5' xsz='3.07834' ysz='5.79682' zsz='0' 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='Color' data='16777215' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='I/O Port' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label7' x='-61.1195' y='-222.854' z='0' xsz='6.34446' ysz='6.1877' zsz='0' 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='Color' data='16777215' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='7' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label8' x='-25.5863' y='-222.854' z='0' xsz='6.34446' ysz='6.1877' zsz='0' 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='Color' data='16777215' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='6' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label9' x='11.8948' y='-222.854' z='0' xsz='6.34446' ysz='6.1877' zsz='0' 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='Color' data='16777215' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='5' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label10' x='48.423' y='-222.854' z='0' xsz='6.34446' ysz='6.1877' zsz='0' 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='Color' data='16777215' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='4' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label11' x='83.5967' y='-222.854' z='0' xsz='6.34446' ysz='6.1877' zsz='0' 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='Color' data='16777215' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='3' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label12' x='119.448' y='-222.854' z='0' xsz='6.34446' ysz='6.1877' zsz='0' 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='Color' data='16777215' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='2' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label13' x='157.605' y='-222.854' z='0' xsz='6.34446' ysz='6.1877' zsz='0' 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='Color' data='16777215' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label14' x='192.63' y='-222.854' z='0' xsz='6.34446' ysz='6.1877' zsz='0' 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='Color' data='16777215' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='93c4effe-9d15-4a15-a750-f47d206143a7' vmin='0' vmaj='1' codename='shape_ellipse1' x='-173.742' y='-150.159' z='0.5' xsz='0.963287' ysz='0.941542' zsz='0' 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='Color' data='1975743' />
					<value target='Outline' data='0' />
					<value target='Thickness' data='0' />
					<value target='Image' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='93c4effe-9d15-4a15-a750-f47d206143a7' vmin='0' vmaj='1' codename='shape_ellipse2' x='-173.822' y='-182.857' z='0.5' xsz='0.963035' ysz='0.941473' zsz='0' 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='Color' data='49152' />
					<value target='Outline' data='0' />
					<value target='Thickness' data='0' />
					<value target='Image' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label15' x='-131.577' y='-151.346' z='0' xsz='4.11542' ysz='5.55664' zsz='0' 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='Color' data='16777215' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data=' = Hi' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label16' x='-128.873' y='-184.81' z='0.25' xsz='3.99864' ysz='5.55569' zsz='0' 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='Color' data='16777215' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data=' = Lo' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='b8bf4aa3-e477-4d95-9592-f7f609357658' vmin='0' vmaj='1' codename='B7' x='-63.2724' y='-165.857' z='16' 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='Color' data='255' />
					<value target='Outline' data='0' />
					<value target='Thickness' data='0' />
					<value target='Image' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='b8bf4aa3-e477-4d95-9592-f7f609357658' vmin='0' vmaj='1' codename='B6' x='-27.8566' y='-165.857' z='16' 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='Color' data='255' />
					<value target='Outline' data='0' />
					<value target='Thickness' data='0' />
					<value target='Image' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='b8bf4aa3-e477-4d95-9592-f7f609357658' vmin='0' vmaj='1' codename='B5' x='10.4478' y='-165.857' z='16' 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='Color' data='255' />
					<value target='Outline' data='0' />
					<value target='Thickness' data='0' />
					<value target='Image' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='b8bf4aa3-e477-4d95-9592-f7f609357658' vmin='0' vmaj='1' codename='B4' x='47.7892' y='-165.857' z='16' 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='Color' data='65280' />
					<value target='Outline' data='0' />
					<value target='Thickness' data='0.000000' />
					<value target='Image' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='b8bf4aa3-e477-4d95-9592-f7f609357658' vmin='0' vmaj='1' codename='B3' x='81.2793' y='-165.857' z='16' 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='Color' data='255' />
					<value target='Outline' data='0' />
					<value target='Thickness' data='0' />
					<value target='Image' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='b8bf4aa3-e477-4d95-9592-f7f609357658' vmin='0' vmaj='1' codename='B2' x='116.695' y='-165.857' z='16' 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='Color' data='000000' />
					<value target='Outline' data='0' />
					<value target='Thickness' data='0' />
					<value target='Image' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='b8bf4aa3-e477-4d95-9592-f7f609357658' vmin='0' vmaj='1' codename='B1' x='154.036' y='-165.857' z='16' 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='Color' data='255' />
					<value target='Outline' data='0' />
					<value target='Thickness' data='0' />
					<value target='Image' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='b8bf4aa3-e477-4d95-9592-f7f609357658' vmin='0' vmaj='1' codename='B0' x='189.661' y='-165.857' z='16' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='-0.0837412' xquat='0' yquat='0' zquat='-0.00073078' wquat='1' visible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='255' />
					<value target='Outline' data='0' />
					<value target='Thickness' data='0.000000' />
					<value target='Image' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='7ade85db-6ca2-48bf-b19c-8148ebda497b' vmin='0' vmaj='1' codename='dashboard_text1' x='64.2135' y='-38.875' z='1.5' 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='PosX' data='64.213516' />
					<value target='PosY' data='-38.874973' />
					<value target='PosZ' data='1.500000' />
					<value target='ScaleX' data='1.000000' />
					<value target='ScaleY' data='1.000000' />
					<value target='ScaleZ' data='1.000000' />
					<value target='SizeX' data='321.547302' />
					<value target='SizeY' data='195.325882' />
					<value target='SizeZ' data='2.000000' />
					<value target='ChildPosX' data='64.213516' />
					<value target='ChildPosY' data='-38.874973' />
					<value target='ChildPosZ' data='0.500000' />
					<value target='displayText' data='00000000
00000000
00000000
^^^^^^^^
' />
					<value target='text' data='01010101
01010101
00000000
vvv^^^vv' />
					<value target='lines' data='4' />
					<value target='Font' data='Terminal' />
					<value target='AlignX' data='000' />
					<value target='AlignY' data='001' />
					<value target='Color' data='16777215' />
					<value target='Background' data='2763306' />
					<value target='Bezel' data='4934475' />
					<value target='bezel_thick' data='0.000000' />
					<value target='margin' data='10.000000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label20' x='-157.276' y='-9.3057' z='0.25' xsz='3.7056' ysz='6.1492' zsz='0' 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='Color' data='16777215' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='Input &lt;' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' perspective='1' >
		<background rgb='2960685' img='' style='0' />
		<camera xe='8.77274' ye='33.7117' ze='1038.56' xt='8.77274' yt='33.7117' zt='-83.71' 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' />
		<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---------------------wUAAAAYAAAAsQUAAEIEAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Num2Bin' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAsQUAAEIEAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SIM_Update_TXT_labels' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAsQUAAEIEAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Initialise' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAsQUAAEIEAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Reset' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAsQUAAEIEAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Read_Port' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAsQUAAEIEAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Ev_Click' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAsQUAAEIEAAA' zoom='50' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='i2C_Read' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAsQUAAEIEAAA' zoom='105' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SIM_Update_Output_Colors' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAsQUAAEIEAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Set_Port_Inversion' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAsQUAAEIEAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Set_Port_Direction' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAsQUAAEIEAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Write_Pin' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAsQUAAEIEAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='i2C_Write' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAsQUAAEIEAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Write_Port' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAsQUAAEIEAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Ev_Initialise' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAsQUAAEIEAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Num2dir' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAsQUAAEIEAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Read_Output_reg' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAsQUAAEIEAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Read_Pin' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAsQUAAEIEAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Read_Port_Direction' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAsQUAAEIEAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Read_port_Inversion' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAsQUAAEIEAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SIM_Update_Input_Registers' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAsQUAAEIEAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
