<root>
<document schema='101' license='1,Zane,N5UAM4' title='' description='' target='PIC.16F.16F18326' >
	<config data='!0,178c!10,37f1!20,1fff!30,3fff%0,4%4,0%8,1%b,0%d,0%10,1%11,0%12,0%15,1%16,3%19,1%1b,0%1c,1%1d,1%20,3%2d,0%30,1' clkspd='32000000' 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_upgrader enabled='1' />
		<dll_webhelp enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug >
		<watch expr='EnablePrevious' />
		<watch expr='Enable' />
		<watch expr='PMWPeriod' />
		<watch expr='PMWDutyCycle' />
		<watch expr='LoopCount10Side' />
		<watch expr='RampIncrementTime10Side' />
	</debug>
	<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' />
		</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='51b29366-c45a-45cf-8655-59c2e0b62987' 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 />
			<values />
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='InterruptCount' type='s16' description='Interrupt count' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</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='RampIncrementTime10Side' type='s16' description='The time between each incremental step in the ramp' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='RampIncrementTime13Side' type='s16' description='The time between each incremental step in the ramp' 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='InterruptRoutine' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Increment the timers' cmdcolor='11665527' cmdcolor_sec='14390211' >
							<exp exp='InterruptCount = InterruptCount + 1' />
							<exp exp='RampIncrementTime10Side = RampIncrementTime10Side + 1' />
							<exp exp='RampIncrementTime13Side = RampIncrementTime13Side + 1' />
							<exp exp='' />
						</command>
						<command class_type='decision' title='Has the interrupt time reached its maximum value' cmdcolor='14050076' cmdcolor_sec='15910009' exp='InterruptCount &gt; 1000' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='11665527' cmdcolor_sec='14390211' >
									<exp exp='InterruptCount = 0' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Has the ramp time reached its maximum value' cmdcolor='14050076' cmdcolor_sec='15910009' exp='RampIncrementTime10Side &gt; 25' swap='0' >
							<flowline >
								<command class_type='calculation' title='Limit the ramp time to prevent a roll over' cmdcolor='11665527' cmdcolor_sec='14390211' >
									<exp exp='RampIncrementTime10Side = 25' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Has the ramp time reached its maximum value' cmdcolor='14050076' cmdcolor_sec='15910009' exp='RampIncrementTime13Side &gt; 25' swap='0' >
							<flowline >
								<command class_type='calculation' title='Limit the ramp time to prevent a roll over' cmdcolor='11665527' cmdcolor_sec='14390211' >
									<exp exp='RampIncrementTime13Side = 25' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='5% duty cycle' cmdcolor='14050076' cmdcolor_sec='15910009' exp='InterruptCount &gt; 50' swap='0' >
							<flowline >
								<command class_type='output' title='Output' cmdcolor='255' cmdcolor_sec='10535167' mode='1' port='1048578' mask='4' exp='0' />
							</flowline>
							<flowline >
								<command class_type='output' title='Output' cmdcolor='255' cmdcolor_sec='10535167' mode='1' port='1048578' mask='4' exp='1' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='interrupt' title='Interrupt set to run every 1mS' cmdcolor='33273' cmdcolor_sec='6740479' enable='1' name='TMR6' call='InterruptRoutine' >
							<settings timer='1' prescale='4' postscale='8' rollover='250' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='1' />
								<option value='7' />
								<option value='250' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
							</settings>
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='56575' cmdcolor_sec='13430527' component='PWM1' macro='Enable' />
						<command class_type='call' title='Set the PWM period and prescaler' cmdcolor='56575' cmdcolor_sec='13430527' component='PWM1' macro='ChangePeriod' >
							<argument exp='200' />
							<argument exp='16' />
						</command>
						<command class_type='call' title='Set the PWM duty cycle' cmdcolor='56575' cmdcolor_sec='13430527' component='PWM1' macro='SetDutyCycle' >
							<argument exp='50' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='56575' cmdcolor_sec='13430527' component='PWM2' macro='Enable' />
						<command class_type='call' title='Set the PWM period and prescaler' cmdcolor='56575' cmdcolor_sec='13430527' component='PWM2' macro='ChangePeriod' >
							<argument exp='120' />
							<argument exp='16' />
						</command>
						<command class_type='call' title='Set the PWM duty cycle' cmdcolor='56575' cmdcolor_sec='13430527' component='PWM2' macro='SetDutyCycle' >
							<argument exp='100' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='14050076' cmdcolor_sec='15910009' type='0' exp='1' >
							<flowline >
								<command class_type='output' title='Output' cmdcolor='255' cmdcolor_sec='10535167' mode='1' port='1048578' mask='32' exp='0' />
								<command class_type='delay' title='Delay' cmdcolor='11665527' cmdcolor_sec='14390211' exp='1' type='1' />
								<command class_type='output' title='Output' cmdcolor='255' cmdcolor_sec='10535167' mode='1' port='1048578' mask='32' exp='1' />
								<command class_type='delay' title='Delay' cmdcolor='11665527' cmdcolor_sec='14390211' exp='1' type='1' />
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='444fb704-814c-4707-a15c-759ba088505c' vmin='8' vmaj='1' codename='PWM1' x='9.32788' y='157.166' z='2.2693' 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='1' >
				<resources />
				<properties />
				<values >
					<value target='channel' data='001' />
					<value target='altpin' data='1' />
					<value target='pwm_pin' data='$PORTC.3' />
					<value target='RemapPin' data='004' />
					<value target='timer' data='002' />
					<value target='period' data='200' />
					<value target='prescale' data='4' />
					<value target='period_calc' data='402.000000' />
					<value target='frequency_calc' data='2.487562' />
					<value target='pwm_prescale' data='16' />
					<value target='SimRep' data='001' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='444fb704-814c-4707-a15c-759ba088505c' vmin='8' vmaj='1' codename='PWM2' x='9.32788' y='126.722' z='2.5143' 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='1' >
				<resources />
				<properties />
				<values >
					<value target='channel' data='002' />
					<value target='altpin' data='1' />
					<value target='pwm_pin' data='$PORTC.4' />
					<value target='RemapPin' data='003' />
					<value target='timer' data='004' />
					<value target='period' data='120' />
					<value target='prescale' data='4' />
					<value target='period_calc' data='242.000015' />
					<value target='frequency_calc' data='4.132231' />
					<value target='pwm_prescale' data='16' />
					<value target='SimRep' data='001' />
				</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='16760832' img='' style='0' />
		<table rgb='7360576' img='' style='0' size='25' />
		<camera xe='10.9529' ye='124.028' ze='69.6603' xt='10.9529' yt='124.028' 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='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAbAEAAGYCAAA' zoom='55' scrollx='0' scrolly='46' flags='0' />
		<view type='0' name='InterruptRoutine' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAbAEAAGYCAAA' zoom='56' scrollx='0' scrolly='181' flags='0' />
	</layout>
</document>
</root>
