<root>
<document scada='0' schema='102' license='1,r_teixeir,4BUK3G' title='' description='' fcversion='524802' target='PIC16.33E.BL0032' >
	<config data='' clkspd='140000000' simspd='1' usewdt='0' constif='0' Use3V3='0' />
	<plugins >
		<dll_models enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug />
	<traces />
	<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='1' />
			<data name='ClockPin' value='6' />
			<data name='DataPort' value='1' />
			<data name='DataPin' value='7' />
			<data name='UseDefaultPins' value='1' />
			<data name='WrapEnabled' value='1' />
			<data name='CommsDelayOverridden' value='0' />
			<data name='CommsDelay' value='6' />
			<data name='CalculatedCommsDelay' value='6' />
			<data name='AnalogEB2PrescaleValue' value='2' />
			<data name='DigitalEB2SampleRate' value='100000' />
		</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='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='86e9521c-e996-432e-b77b-23a7d97e95a0' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='1' scadaCompatible='0' embeddedCompatible='1' 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' scadavisible='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='DAC_Out' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='trigger' 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>
			</variables>
			<macros >
				<macro >
					<flowline name='Oled_Init' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='gLCD_SSD1306_SPI_MX1' macro='Initialise' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='gLCD_SSD1306_SPI_MX1' macro='Print' >
							<argument exp='&quot;2.DSP Echo&quot;' />
							<argument exp='20' />
							<argument exp='20' />
							<argument exp='0' />
							<argument exp='0' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SPI_Init' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='DAC_Output_49x1' macro='Initialise' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Timer_Tick' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<local name='Sample' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='pot_color_cap1' macro='RawEnable' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='pot_color_cap1' macro='RawSampleInt' >
							<return exp='.Sample' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='DSPInput1' macro='AddRawTick' >
							<argument exp='.Sample' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='DSPOutput1' macro='ReadRawTick' >
							<return exp='.Sample' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='DAC_Output_49x1' macro='Enable' >
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='DAC_Output_49x1' macro='SetOutput' >
							<argument exp='DAC_Out' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='DAC_Output_49x1' macro='Disable' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='DSPSystem1' macro='TickAllBuffers' >
							<return exp='trigger' />
						</command>
					</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='1879295' cmdcolor_sec='5751039' macro='Oled_Init' />
						<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='SPI_Init' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='DSPSystem1' macro='Initialise' />
						<command class_type='interrupt' title='Enable Timer Tick 8 Khz ' cmdcolor='17151' cmdcolor_sec='355583' enable='1' name='TMR1' call='Timer_Tick' >
							<settings timer='1' prescale='8' postscale='-1' rollover='1000' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='0' />
								<option value='1' />
								<option value='1000' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
							</settings>
						</command>
						<command class_type='loop' title='Loop' cmdcolor='12615680' cmdcolor_sec='15376912' type='0' exp='1' >
							<flowline />
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='917f243e-4102-4bee-9998-81f18bc6ca9d' vmin='2' vmaj='1' codename='DSPSystem1' x='0' y='0' z='0' xsz='32' ysz='32' zsz='5.1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='buffer_count' data='001' />
					<value target='simple_mode' data='1' />
					<value target='DSPsystem_ID' data='1' />
					<value target='buff_a_name' data='AudioSignal' />
					<value target='buff_b_name' data='Buffer B' />
					<value target='buff_c_name' data='Buffer C' />
					<value target='buff_d_name' data='Buffer D' />
					<value target='buff_e_name' data='Buffer E' />
					<value target='buff_f_name' data='Buffer F' />
					<value target='buff_g_name' data='Buffer G' />
					<value target='buff_h_name' data='Buffer H' />
					<value target='buff_a_depth' data='001' />
					<value target='buff_a_sign' data='001' />
					<value target='buff_a_size' data='1' />
					<value target='buff_b_depth' data='001' />
					<value target='buff_b_sign' data='001' />
					<value target='buff_b_size' data='1' />
					<value target='buff_c_depth' data='001' />
					<value target='buff_c_sign' data='001' />
					<value target='buff_c_size' data='1' />
					<value target='buff_d_depth' data='001' />
					<value target='buff_d_sign' data='001' />
					<value target='buff_d_size' data='1' />
					<value target='buff_e_depth' data='001' />
					<value target='buff_e_sign' data='001' />
					<value target='buff_e_size' data='1' />
					<value target='buff_f_depth' data='001' />
					<value target='buff_f_sign' data='001' />
					<value target='buff_f_size' data='1' />
					<value target='buff_g_depth' data='001' />
					<value target='buff_g_sign' data='001' />
					<value target='buff_g_size' data='1' />
					<value target='buff_h_depth' data='001' />
					<value target='buff_h_sign' data='001' />
					<value target='buff_h_size' data='1' />
					<value target='buff_simp_depth' data='001' />
					<value target='buff_simp_sign' data='001' />
					<value target='buff_simp_size' data='1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='c73d493a-b6a0-4dbe-b4b5-79648f67d11e' vmin='2' vmaj='1' codename='DSPInput1' x='-60' y='40' z='0' xsz='43.5' ysz='32' zsz='5.965' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='buffer_manager' data='001' />
					<value target='input_a' data='000' />
					<value target='size_a' data='1' />
					<value target='depth_a' data='001' />
					<value target='sign_a' data='001' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='1392d5c3-35ba-4c7f-a539-7f30a09758e4' vmin='2' vmaj='1' codename='DSPOutput1' x='70' y='40' z='5.28251' xsz='43.5' ysz='32' zsz='5.965' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='buffer_manager' data='001' />
					<value target='input_a' data='000' />
					<value target='size_a' data='1' />
					<value target='depth_a' data='001' />
					<value target='sign_a' data='001' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='4ce64477-fd81-4ed6-ba31-176465949fd0' vmin='1' vmaj='0' codename='gLCD_SSD1306_SPI_MX1' x='69.4888' y='-14.2705' z='3.275' xsz='2.85409' ysz='4.68329' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='pixel_height' data='39' />
					<value target='pixel_width' data='96' />
					<value target='Interlaced' data='0' />
					<value target='monochrome' data='1' />
					<value target='foreground_colour' data='16777215' />
					<value target='background_colour' data='0' />
					<value target='colour_bit_depth' data='1' />
					<value target='red_bit_depth' data='0' />
					<value target='green_bit_depth' data='0' />
					<value target='blue_bit_depth' data='0' />
					<value target='SD_pin' data='$PORTD.11' />
					<value target='SCK_pin' data='$PORTG.7' />
					<value target='DC_Pin' data='$PORTG.8' />
					<value target='VBAT_Pin' data='$PORTD.10' />
					<value target='VDD_Pin' data='$PORTD.10' />
					<value target='Reset_Pin' data='$PORTG.9' />
					<value target='DisplayMethod' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='b6de5668-e0ae-4c1a-9c16-b16aa3f58024' vmin='0' vmaj='1' codename='DAC_Output_49x1' x='-116.647' y='-78.5' z='2.42763' xsz='3.15789' ysz='3.15789' zsz='3.15789' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='DAC_IC' data='002' />
					<value target='GainOP' data='001' />
					<value target='VrefPinVoltage' data='5.000000' />
					<value target='VrefVol' data='5.000000' />
					<value target='Steps' data='4096' />
					<value target='BITS' data='12' />
					<value target='Res' data='1:4096' />
					<value target='VoltRes' data='0.001221' />
					<value target='cal_spi1::CHANNEL' data='000' />
					<value target='cal_spi1::PR_SCALE' data='004' />
					<value target='cal_spi1::MOSI' data='$PORTD.1' />
					<value target='cal_spi1::MISO' data='$PORTD.4' />
					<value target='cal_spi1::CLK' data='$PORTD.5' />
					<value target='cal_spi1::SS' data='$PORTD.2' />
					<value target='UseSHDN' data='0' />
					<value target='SHDN_Pin' data='' />
					<value target='UseLDAC' data='0' />
					<value target='LDAC_Pin' data='' />
					<value target='enabled' data='1' />
					<value target='enabled2' data='0' />
					<value target='ScopeTraces' data='0' />
					<value target='cal_spi1::ScopeTraces' data='0' />
					<value target='cal_spi1::ConsoleData' data='0' />
					<value target='cal_spi1::Injector' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='14683ea8-5a08-4b3a-be2d-3dea3e17e720' vmin='3' vmaj='1' codename='pot_color_cap1' x='-37.571' y='-42.429' z='12.8256' xsz='49.9999' ysz='49.9999' zsz='44.2013' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='1' >
				<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='0' />
					<value target='vrefvol' data='500' />
					<value target='vrefop' data='000' />
					<value target='convspd' data='003' />
					<value target='actime' data='40' />
					<value target='bits' data='10' />
					<value target='bitmul' data='0.004883' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<scadaresourcelookup />
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' >
		<background rgb='7292207' img='' style='0' />
		<camera xe='-8.69488' ye='-14.539' ze='425.029' xt='-8.69488' yt='-14.539' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel2d>
	<panel3d shadows='0' lighting='2' brightness='0' perspective='1' >
		<background rgb='16711680' img='' style='0' />
		<table rgb='5767104' img='' style='0' size='0' />
		<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='Timer_Tick' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAfAIAAFgDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAfAIAAFgDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SPI_Init' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAfAIAAFgDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Oled_Init' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAeAAAAfAIAAFgDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
