<root>
<document schema='101' license='1,30day_36244810,H3UQF7' title='' description='' target='PIC.18F.18F25K22' >
	<config data='!0,ff!8,73!10,f9!18,fc!20,ff!28,ff!30,ff!38,ff!40,ff!48,ff!50,ff!58,ff!60,ff!68,ff%8,3%c,1%d,1%e,1%f,0%10,1%11,0%13,3%18,0%1a,f%28,1%29,1%2a,1%2b,1%2c,1%2d,1%2f,1%30,1%32,1%36,1%37,1%40,1%41,1%42,1%43,1%4e,1%4f,1%50,1%51,1%52,1%53,1%5d,1%5e,1%5f,1%60,1%61,1%62,1%63,1%6e,1' clkspd='64000000' simspd='2' 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 >
		<watch expr='Counter' />
		<watch expr='Degrees' />
		<watch expr='Angle' />
		<watch expr='Clock' />
	</debug>
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='11f07ab1-e048-4522-af63-f2a83f485339' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='Misc' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='0' iconpath='' />
		<component class_type='root' codename='panel' x='0' y='0' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
			<resources />
			<properties />
			<values />
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='Angle' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Counter' type='s16' description='' isconst='0' isinit='1' usrinit='100' setinit='100' />
				</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='Degrees' type='f32' description='' isconst='0' isinit='1' usrinit='0.0' setinit='0.0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Vari' type='s32' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Clock' type='u8' 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='Encoder' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='' >
							<exp exp='Clock = 0' />
						</command>
						<command class_type='call' title='Call Component Macro' component='QuadEncoder1' macro='CheckForChanges' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Display' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='Clock = 0' />
						</command>
						<command class_type='call' title='Call Component Macro' component='Visi4D1' macro='VisiWriteObject' >
							<argument exp='Visi4D1::VISI_ID_CustomDigits' />
							<argument exp='0' />
							<argument exp='Counter' />
						</command>
						<command class_type='output' title='Output' mode='1' port='1048576' mask='1' exp='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Zero' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Call Component Macro' component='QuadEncoder1' macro='WriteCounter' >
							<argument exp='4000' />
						</command>
						<command class_type='output' title='Output' mode='1' port='1048576' mask='1' exp='0' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Timer' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='Clock = Clock + 1' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='native' title='C Code' ccode='/*
  Enter C code below this comment
*/
osctune = 0x40;
osccon = 0x74;' language='C' />
						<command class_type='call' title='Call Component Macro' component='QuadEncoder1' macro='Enable' />
						<command class_type='call' title='Call Component Macro' component='Visi4D1' macro='Initialise' />
						<command class_type='delay' title='Delay' exp='1' type='2' />
						<command class_type='interrupt' title='Interrupt' enable='1' name='IOC0' call='Encoder' >
							<settings timer='0' prescale='-1' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
							</settings>
						</command>
						<command class_type='interrupt' title='Interrupt' enable='1' name='INT0' call='Zero' >
							<settings timer='0' prescale='-1' postscale='-1' rollover='-1' bitcount='-1' trigger='2' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
							</settings>
						</command>
						<command class_type='interrupt' title='Interrupt' enable='1' name='TMR6' call='Timer' >
							<settings timer='1' prescale='16' postscale='16' rollover='256' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='2' />
								<option value='15' />
								<option value='256' />
								<option value='-1' />
							</settings>
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='Angle = 0' />
							<exp exp='Clock = 0' />
						</command>
						<command class_type='loop' title='Loop' type='0' exp='1' >
							<flowline >
								<command class_type='loop' title='Loop' textarea='410,63,410,63' type='1' exp='Clock &gt; 40' start='0' >
									<flowline />
								</command>
								<command class_type='call' title='Call Component Macro' component='QuadEncoder1' macro='ReadCounter' >
									<return exp='Counter' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='Degrees = Counter' />
									<exp exp='Angle = Degrees * 2.25' />
								</command>
								<command class_type='call' title='Call Component Macro' component='Visi4D1' macro='VisiWriteObject' >
									<argument exp='Visi4D1::VISI_ID_CustomDigits' />
									<argument exp='0' />
									<argument exp='Angle' />
								</command>
								<command class_type='output' title='Output' mode='1' port='1048576' mask='1' exp='1' />
								<command class_type='calculation' title='Calculation' >
									<exp exp='Clock = 0' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='6436a040-ccc8-46e5-82c1-68f8d87b16c5' vmin='2' vmaj='1' codename='Visi4D1' x='0' y='0' z='0.755' xsz='60' ysz='26' zsz='1.51' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='CHANNEL' data='001' />
					<value target='BAUD_LIST' data='004' />
					<value target='BAUD' data='9600' />
					<value target='TX' data='$PORTC.6' />
					<value target='RX' data='$PORTC.7' />
					<value target='TXRemap' data='' />
					<value target='RXRemap' data='' />
					<value target='label' data='Visi' />
					<value target='ConsoleColumns' data='64' />
					<value target='com_port' data='008' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='3531a68d-7686-44b7-a3a5-67afda8467dc' vmin='3' vmaj='1' codename='QuadEncoder1' x='-40' y='24' z='10.3388' 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='1' >
				<resources />
				<properties />
				<values >
					<value target='pin_a' data='$PORTB.4' />
					<value target='pin_b' data='$PORTB.5' />
					<value target='reprate' data='075' />
				</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---------------------wAAAAAUAAAAFwQAAC8CAAA' zoom='75' scrollx='0' scrolly='771' flags='0' />
		<view type='0' name='Zero' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAFwQAAC8CAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Encoder' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAFwQAAC8CAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Timer' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAFwQAAC8CAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
