<root>
<document schema='101' license='0,65645023,5X4BR9' title='' description='' target='PIC.18F.18F45J50' >
	<config data='!0,ff!8,ff!10,ff!18,ff!20,ff!28,ff!30,ff!38,ff%0,1%1,7%5,1%6,1%7,1%8,3%a,1%b,1%c,f%10,7%13,1%14,1%16,1%17,1%18,f%1c,f%20,1%21,1%22,1%23,1%24,f%28,1%2b,1%2c,f%30,1f%36,1%37,1%38,1%3c,f' clkspd='19660800' simspd='1' usewdt='0' constif='0' />
	<plugins >
		<dll_dbg_icd enabled='0' >
			<data name='debug' value='1' />
			<data name='userpins' value='0' />
			<data name='speed' value='0' />
			<data name='usev9' value='0' />
			<data name='breaks' value='8' />
			<data name='stacks' value='8' />
			<data name='clkport' value='1' />
			<data name='clkbit' value='6' />
			<data name='dataport' value='1' />
			<data name='databit' value='7' />
			<data name='ghostype' value='0' />
			<data name='monitor' value='1' />
			<data name='ictloop' value='0' />
			<data name='ictrate' value='20000' />
			<data name='ictmask' value='0' />
			<data name='anlpres' value='255' />
			<data name='digmask1' value='-1' />
			<data name='digmask2' value='-1' />
		</dll_dbg_icd>
		<dll_models enabled='1' />
		<dll_upgrader enabled='1' />
		<dll_webhelp enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug />
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='75dd31b5-4328-4a83-a279-8c05096ef2ac' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='0' iconpath='' />
		<component class_type='root' codename='panel' x='0' y='0' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
			<resources />
			<properties />
			<values />
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='false' type='b1' description='' isconst='1' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Filename' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='OutString' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</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='true' type='b1' description='' isconst='1' isinit='1' usrinit='1' setinit='1' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='Main' description='' >
						<command class_type='calculation' title='Calculation' >
							<exp exp='Filename = &quot;log.txt&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Start' />
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
							<argument exp='&quot;Init: &quot;' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='retval = 1' />
						</command>
						<command class_type='loop' title='Loop' type='0' exp='retval' >
							<flowline >
								<command class_type='call' title='Call Component Macro' component='FAT1' macro='Initialise' >
									<return exp='retval' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
							<argument exp='&quot;OK&quot;' />
						</command>
						<command class_type='call' title='Open File to Append' component='FAT1' macro='OpenFile' >
							<return exp='retval' />
							<argument exp='Filename' />
						</command>
						<command class_type='decision' title='File not found?' exp='retval' swap='0' >
							<flowline >
								<command class_type='call' title='Create New File' component='FAT1' macro='CreateFile' >
									<return exp='retval' />
									<argument exp='Filename' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Clear' />
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
							<argument exp='&quot;Logging&quot;' />
						</command>
						<command class_type='loop' title='Loop' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='Call Component Macro' component='keypad_eb014' macro='GetAscii' >
									<return exp='retval' />
								</command>
								<command class_type='decision' title='Key Pressed?' exp='retval &lt; 255' swap='0' >
									<flowline >
										<command class_type='calculation' title='Add ascii byte to string and terminate with null' >
											<exp exp='OutString[0] = retval' />
											<exp exp='OutString[1] = 0' />
										</command>
										<command class_type='call' title='Call Component Macro' component='FAT1' macro='AppendStringToFile' >
											<argument exp='OutString' />
										</command>
										<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Clear' />
										<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintAscii' >
											<argument exp='retval' />
										</command>
										<command class_type='call' title='Call Component Macro' component='keypad_eb014' macro='WaitReleased' />
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='0b61bd39-05a3-46ee-a2a5-da7bffb583c5' vmin='2' vmaj='2' codename='FAT1' x='-46.7092' y='15.6432' z='1.4' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='max_concurrent_files' data='2' />
					<value target='Channel' data='000' />
					<value target='PR_SCALE' data='004' />
					<value target='cs_pin' data='$PORTC.2' />
					<value target='mosi_pin' data='$PORTB.5' />
					<value target='miso_pin' data='$PORTC.7' />
					<value target='sck_pin' data='$PORTB.4' />
					<value target='MosiRemap' data='000' />
					<value target='MisoRemap' data='000' />
					<value target='ClkRemap' data='000' />
					<value target='root_dir' data='$(srcdir)' />
					<value target='AutoInsertCard' data='1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='b07090da-50a4-41ed-97d8-99016c092a14' vmin='0' vmaj='1' codename='keypad_eb014' x='3.96587' y='2.42359' z='5.1' 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='port' data='005' />
					<value target='pin_col1' data='$PORTC.4' />
					<value target='pin_col2' data='$PORTC.5' />
					<value target='pin_col3' data='$PORTC.6' />
					<value target='pin_row1' data='$PORTD.0' />
					<value target='pin_row2' data='$PORTD.1' />
					<value target='pin_row3' data='$PORTD.2' />
					<value target='pin_row4' data='$PORTD.3' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='d29dda88-17de-4008-991a-c881890d4c57' vmin='1' vmaj='1' codename='lcd_eb005' x='-112' y='0' z='3.575' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Pin_Data_0' data='$PORTD.4' />
					<value target='Pin_Data_1' data='$PORTD.5' />
					<value target='Pin_Data_2' data='$PORTD.6' />
					<value target='Pin_Data_3' data='$PORTD.7' />
					<value target='Pin_RS' data='$PORTE.0' />
					<value target='Pin_E' data='$PORTE.1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<keymap />
	<panel2d shadows='1' lighting='2' brightness='0' perspective='0' >
		<background rgb='6908265' img='' style='0' />
		<camera xe='-41' ye='1' ze='308.914' xt='-41' yt='1' 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='40' />
		<camera xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel3d>
	<layout >
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAHgQAAFUBAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
