<root>
<document schema='101' license='1,Matthew Troth,RPNEA1' title='' description='' target='PIC.16F.16F877A' >
	<config data='!0,3f72%0,2%2,0%3,0%6,1%7,0%9,3%b,1%8,1%d,1' 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='monitor' value='1' />
			<data name='ictloop' value='0' />
			<data name='ictrate' value='20000' />
			<data name='ictmask' value='0' />
		</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='dc397795-aa34-4fda-9a21-7dcad71d442d' 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' macronames='$(type)_$(module)__$(macro)' >
			<resources />
			<properties >
				<property name='Output Data Rate' target='ODR' typeid='16' hidden='0' locked='0' info='' filter='000100Hz
001200Hz
002400Hz
003800Hz' />
				<property name='Full Scale Selection' target='FSS' typeid='16' hidden='0' locked='0' info='Specifies the maximum angular speed which the sensor can measure in degrees per second' filter='000250 dps
001500 dps
0022000 dps' />
				<property name='X Axis' target='XEN' typeid='16' hidden='0' locked='0' info='' filter='000Disabled
001Enabled' />
				<property name='Y Axis' target='YEN' typeid='16' hidden='0' locked='0' info='' filter='000Disabled
001Enabled' />
				<property name='Z Axis' target='ZEN' typeid='16' hidden='0' locked='0' info='' filter='000Disabled
001Enabled' />
				<property name='Connection' folder='property_1' hidden='0' >
					<property name='Channel' target='CHANNEL' typeid='16' hidden='0' locked='0' info='' filter='000Software
001Channel 1
' />
					<property name='SDA' target='SDA' typeid='5' hidden='0' locked='0' info='' />
					<property name='SCL' target='SCL' typeid='5' hidden='0' locked='0' info='' />
					<property name='Label' target='label_text' typeid='10' hidden='0' locked='0' info='' />
				</property>
			</properties>
			<values >
				<value target='ODR' data='000' />
				<value target='FSS' data='001' />
				<value target='XEN' data='000' />
				<value target='YEN' data='000' />
				<value target='ZEN' data='001' />
				<value target='CHANNEL' data='001' />
				<value target='SDA' data='$PORTE.0' />
				<value target='SCL' data='$PORTE.1' />
				<value target='label_text' data='EBM009' />
			</values>
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='zaxis6' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='zaxis5' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='zaxis4' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='zaxis3' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='zaxis2' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='zaxis1' type='s16' 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='xaxis' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='yaxis' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='zaxis' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='print' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='calc' type='s32' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='zaxis9' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='zaxis8' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='zaxis10' type='s16' 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>
				<variable public='0' >
					<def class_type='variable' name='initialise' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='zaxis7' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='Main' description='' >
						<command class_type='output' title='Output' mode='1' port='1048576' mask='4' exp='0' />
						<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='Clear' />
						<command class_type='call' title='Call Component Macro' component='EBM009_Gyroscope1' macro='Initialise' >
							<return exp='initialise' />
						</command>
						<command class_type='decision' title='Decision' exp='initialise = 255' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
									<argument exp='&quot;Device Fail HALT&quot;' />
								</command>
								<command class_type='loop' title='Loop' type='0' exp='1' >
									<flowline />
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
									<argument exp='&quot;   Device OK!&quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
									<argument exp='0' />
									<argument exp='1' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
									<argument exp='&quot;STARTING READ...&quot;' />
								</command>
								<command class_type='delay' title='Delay' exp='2' type='2' />
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Clear' />
							</flowline>
						</command>
						<command class_type='loop' title='Loop' type='0' exp='1' >
							<flowline >
								<command class_type='comment' title='' comment='XAXIS' textarea='12,0,12,0' />
								<command class_type='delay' title='Delay' exp='300' type='1' />
								<command class_type='comment' title='' comment='ZAXIS' textarea='12,0,12,0' />
								<command class_type='call' title='Call Component Macro' component='EBM009_Gyroscope1' macro='SampleDevice' />
								<command class_type='call' title='Call Component Macro' component='EBM009_Gyroscope1' macro='GetZ' >
									<return exp='zaxis' />
								</command>
								<command class_type='call' title='Call Component Macro' component='EBM009_Gyroscope1' macro='SampleDevice' />
								<command class_type='call' title='Call Component Macro' component='EBM009_Gyroscope1' macro='GetZ' >
									<return exp='zaxis1' />
								</command>
								<command class_type='call' title='Call Component Macro' component='EBM009_Gyroscope1' macro='SampleDevice' />
								<command class_type='call' title='Call Component Macro' component='EBM009_Gyroscope1' macro='GetZ' >
									<return exp='zaxis2' />
								</command>
								<command class_type='call' title='Call Component Macro' component='EBM009_Gyroscope1' macro='SampleDevice' />
								<command class_type='call' title='Call Component Macro' component='EBM009_Gyroscope1' macro='GetZ' >
									<return exp='zaxis3' />
								</command>
								<command class_type='call' title='Call Component Macro' component='EBM009_Gyroscope1' macro='SampleDevice' />
								<command class_type='call' title='Call Component Macro' component='EBM009_Gyroscope1' macro='GetZ' >
									<return exp='zaxis4' />
								</command>
								<command class_type='call' title='Call Component Macro' component='EBM009_Gyroscope1' macro='SampleDevice' />
								<command class_type='call' title='Call Component Macro' component='EBM009_Gyroscope1' macro='GetZ' >
									<return exp='zaxis5' />
								</command>
								<command class_type='call' title='Call Component Macro' component='EBM009_Gyroscope1' macro='SampleDevice' />
								<command class_type='call' title='Call Component Macro' component='EBM009_Gyroscope1' macro='GetZ' >
									<return exp='zaxis6' />
								</command>
								<command class_type='call' title='Call Component Macro' component='EBM009_Gyroscope1' macro='SampleDevice' />
								<command class_type='call' title='Call Component Macro' component='EBM009_Gyroscope1' macro='GetZ' >
									<return exp='zaxis7' />
								</command>
								<command class_type='call' title='Call Component Macro' component='EBM009_Gyroscope1' macro='SampleDevice' />
								<command class_type='call' title='Call Component Macro' component='EBM009_Gyroscope1' macro='GetZ' >
									<return exp='zaxis8' />
								</command>
								<command class_type='call' title='Call Component Macro' component='EBM009_Gyroscope1' macro='SampleDevice' />
								<command class_type='call' title='Call Component Macro' component='EBM009_Gyroscope1' macro='GetZ' >
									<return exp='zaxis9' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='calc = zaxis + zaxis1 + zaxis2 + zaxis3 + zaxis4 + zaxis5 + zaxis6 + zaxis7 + zaxis8 + zaxis9' />
									<exp exp='print = calc / 10' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
									<argument exp='0' />
									<argument exp='0' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintNumber' >
									<argument exp='print' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
									<argument exp='&quot; &quot;' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='7b1edf74-d0c8-4b1d-a8b3-54580ed79f64' vmin='0' vmaj='1' codename='EBM009_Gyroscope1' x='-16' y='-32' z='7.94946' xsz='2.24561' ysz='2.24561' zsz='2.24561' 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='ODR' data='003' />
					<value target='FSS' data='000' />
					<value target='XEN' data='000' />
					<value target='YEN' data='000' />
					<value target='ZEN' data='001' />
					<value target='CHANNEL' data='000' />
					<value target='SDA' data='$PORTE.0' />
					<value target='SCL' data='$PORTE.1' />
					<value target='label_text' data='EBM009' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='d29dda88-17de-4008-991a-c881890d4c57' vmin='1' vmaj='1' codename='lcd_eb005' x='-12' y='70.15' z='3.575' xsz='1.9' ysz='1.5427' 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='$PORTA.1' />
					<value target='Pin_E' data='$PORTA.3' />
				</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---------------------wAAAAAUAAAAqgMAAN0CAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
