<root>
<document schema='101' license='1,Martin Whitlock,JQE1YE' title='' description='' target='PIC.16F.16F1828' >
	<config data='!0,3fe4!10,1eff%0,4%3,0%5,1%6,1%7,1%8,1%9,3%b,1%c,1%d,1%10,3%14,1%18,0%19,1%1a,1%1c,1%1d,0' clkspd='8000000' 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='' 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='test' 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='Toggle' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ADC0' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='true' type='b1' description='' isconst='1' isinit='1' usrinit='1' setinit='1' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='Timer0' description='' >
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
							<exp exp='Toggle = !Toggle' />
						</command>
						<command class_type='output' title='Output' textarea='36,0,511,300' mode='1' port='1048578' mask='64' exp='Toggle' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<command class_type='native' title='C Code' textarea='36,0,511,300' ccode='osccon=0x70;' language='C' />
						<command class_type='delay' title='Delay' textarea='36,0,511,300' exp='50' type='1' />
						<command class_type='interrupt' title='Interrupt' textarea='36,0,511,300' enable='1' name='TMR0' call='Timer0' >
							<settings timer='1' prescale='16' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAA' masklo='-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAA' >
								<option value='1' />
								<option value='0' />
								<option value='4' />
								<option value='-1' />
							</settings>
						</command>
						<command class_type='call' title='Call Component Macro' component='v5__servo0' macro='Initialise' />
						<command class_type='loop' title='Loop' textarea='36,0,511,300' disable='1' type='0' exp='1' >
							<flowline >
								<command class_type='output' title='Output' textarea='36,0,511,300' mode='1' port='1048576' mask='4' exp='1' />
								<command class_type='delay' title='Delay' textarea='36,0,511,300' exp='50' type='1' />
								<command class_type='output' title='Output' textarea='36,0,511,300' mode='1' port='1048576' mask='4' exp='0' />
								<command class_type='delay' title='Delay' textarea='36,0,511,300' exp='50' type='1' />
								<command class_type='calculation' title='Calculation' textarea='36,0,511,300' disable='1' >
									<exp exp='test = test + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__lcddisplay0' macro='Start' />
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__lcddisplay0' macro='PrintString' >
							<argument exp='&quot;Power Enab&quot;' />
						</command>
						<command class_type='delay' title='Delay' textarea='36,0,511,300' exp='1' type='2' />
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__servo0' macro='EnableServo' >
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__lcddisplay0' macro='Clear' />
						<command class_type='loop' title='Loop' textarea='36,0,511,300' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__adc0' macro='GetInt' >
									<return exp='ADC0' />
								</command>
								<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__lcddisplay0' macro='Cursor' >
									<argument exp='0' />
									<argument exp='0' />
								</command>
								<command class_type='calculation' title='Calculation' textarea='36,0,511,300' disable='1' >
									<exp exp='ADC0 = 4' />
								</command>
								<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__lcddisplay0' macro='PrintString' >
									<argument exp='&quot;ADC Value:&quot;' />
								</command>
								<command class_type='output' title='Output' textarea='36,0,511,300' mode='1' port='1048578' mask='128' exp='1' />
								<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__lcddisplay0' macro='PrintNumber' >
									<argument exp='ADC0' />
								</command>
								<command class_type='output' title='Output' textarea='36,0,511,300' mode='1' port='1048578' mask='128' exp='0' />
								<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__lcddisplay0' macro='PrintString' >
									<argument exp='&quot;    &quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__servo0' macro='SetPosition' >
									<argument exp='0' />
									<argument exp='ADC0' />
								</command>
								<command class_type='delay' title='Delay' textarea='36,0,511,300' exp='100' type='1' />
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='0953aac0-9c23-4c2f-9843-88954a4191ea' vmin='1' vmaj='2' codename='v5__lcddisplay0' x='-20.5714' y='-15.2381' z='0' xsz='78.2857' ysz='13.1429' zsz='1.14286' 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 >
					<value target='LCD_Mode' data='000' />
					<value target='Pin_Data_0' data='$PORTC0.0' />
					<value target='Pin_Data_1' data='$PORTC0.1' />
					<value target='Pin_Data_2' data='$PORTC0.2' />
					<value target='Pin_Data_3' data='$PORTC0.3' />
					<value target='Pin_Data_4' data='$PORTA.1' />
					<value target='Pin_Data_5' data='$PORTA.1' />
					<value target='Pin_Data_6' data='$PORTA.1' />
					<value target='Pin_Data_7' data='$PORTA.1' />
					<value target='LCD_Port' data='$PORTA' />
					<value target='Pin_RS' data='$PORTC0.4' />
					<value target='Pin_E' data='$PORTC0.5' />
					<value target='LCD_Use_Write' data='0' />
					<value target='Pin_RW' data='$PORTA.0' />
					<value target='Rows' data='2' />
					<value target='Columns' data='16' />
					<value target='BackgroundColor' data='0x808080' />
					<value target='LineColor' data='0' />
					<value target='TextColor' data='0x000000' />
					<value target='Font' data='Arial' />
					<value target='CursorPosX' data='11' />
					<value target='CursorPosY' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='14683ea8-5a08-4b3a-be2d-3dea3e17e720' vmin='3' vmaj='1' codename='v5__adc0' x='-20.5714' y='12.1905' z='0' xsz='25.1419' ysz='25.1419' zsz='18.45' 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 >
					<value target='angle_start' data='225.000000' />
					<value target='angle_sweep' data='270.000000' />
					<value target='cap_color' data='192' />
					<value target='point_color' data='16777215' />
					<value target='ScopeTraces' data='0' />
					<value target='channel' data='2' />
					<value target='vrefvol' data='500' />
					<value target='vrefop' data='0' />
					<value target='convspd' data='3' />
					<value target='actime' data='40' />
					<value target='bits' data='10' />
					<value target='bitmul' data='0.004883' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9202a62e-0a42-4780-adce-16b701e5ec53' vmin='1' vmaj='1' codename='v5__servo0' x='41.1429' y='3.04762' 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 >
					<value target='Channel_Count' data='1' />
					<value target='pin0' data='$PORTA0.0' />
					<value target='pin1' data='$PORTA0.1' />
					<value target='pin2' data='$PORTA0.2' />
					<value target='pin3' data='$PORTA0.3' />
					<value target='pin4' data='$PORTA0.4' />
					<value target='pin5' data='$PORTA0.5' />
					<value target='pin6' data='$PORTA0.-1' />
					<value target='pin7' data='$PORTA0.-1' />
					<value target='trim0' data='0' />
					<value target='trim1' data='0' />
					<value target='trim2' data='0' />
					<value target='trim3' data='0' />
					<value target='trim4' data='0' />
					<value target='trim5' data='0' />
					<value target='trim6' data='0' />
					<value target='trim7' data='0' />
					<value target='min_pulse_width' data='1280' />
					<value target='max_pulse_width' data='2500' />
					<value target='CCPLo' data='136' />
					<value target='CCPHi' data='19' />
					<value target='Servo_Clock_Count_1280' data='2560' />
					<value target='Divider' data='0' />
					<value target='sim0' data='' />
					<value target='sim1' data='' />
					<value target='sim2' data='' />
					<value target='sim3' data='' />
					<value target='sim4' data='' />
					<value target='sim5' data='' />
					<value target='sim6' data='' />
					<value target='sim7' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='9737364' img='' style='0' />
		<camera xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel2d>
	<panel3d shadows='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='7360576' img='' style='0' size='25' />
		<camera xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel3d>
	<layout >
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAZwMAAIoCAAA' zoom='75' scrollx='0' scrolly='57' flags='0' />
	</layout>
</document>
</root>
