<root>
<document schema='101' license='1,Nazaire Verrue,HN27BM' title='' description='' target='PIC.18F.MIAC' >
	<config data='!0,ffffffff!8,ffffffff!10,ffffffff!18,ffffffff!20,ffffffff!28,ffffffff!30,ffffffff!38,ffffffff!40,ffffffff!48,ffffffff!50,ffffffff!58,ffffffff!60,ffffffff!68,ffffffff' clkspd='48000000' 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='1000' />
			<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='1' />
			<data name='ictrate' value='1000' />
			<data name='ictmask' 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='72d8370f-e034-4cd6-9109-961421d3eae2' 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='Toerental' type='u16' 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='Schakelaar2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Schakelaar1' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Potentiometer' type='u8' 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='Display' description='' >
						<command class_type='call' title='Call Component Macro' component='miac1' macro='DisplayClear' />
						<command class_type='call' title='Call Component Macro' component='miac1' macro='DisplayCursor' >
							<argument exp='5' />
							<argument exp='2' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='Toerental = Potentiometer * 10' />
						</command>
						<command class_type='call' title='Call Component Macro' component='miac1' macro='PrintNumber' >
							<argument exp='Toerental' />
						</command>
						<command class_type='delay' title='Delay' exp='10' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<command class_type='call' title='Call Component Macro' component='miac1' macro='DisplayStart' />
						<command class_type='loop' title='Loop' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='Call Component Macro' component='basic_switch1' macro='ReadState' >
									<return exp='Schakelaar1' />
								</command>
								<command class_type='call' title='Call Component Macro' component='basic_switch2' macro='ReadState' >
									<return exp='Schakelaar2' />
								</command>
								<command class_type='call' title='Component Macro Aanroepen' component='pot_color_cap1' macro='GetByte' >
									<return exp='Potentiometer' />
								</command>
								<command class_type='decision' title='Decision' exp='Schakelaar1 = 1' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' component='miac1' macro='OutputOFF' >
											<argument exp='4' />
										</command>
										<command class_type='call' title='Component Macro Aanroepen' component='PWM1' macro='Enable' />
										<command class_type='call' title='Component Macro Aanroepen' component='PWM1' macro='SetDutyCycle' >
											<argument exp='Potentiometer' />
										</command>
										<command class_type='call' title='Call Display' macro='Display' />
									</flowline>
									<flowline >
										<command class_type='decision' title='Decision' exp='Schakelaar2 = 1' swap='0' >
											<flowline >
												<command class_type='call' title='Component Macro Aanroepen' component='PWM1' macro='Enable' />
												<command class_type='call' title='Component Macro Aanroepen' component='PWM1' macro='SetDutyCycle' >
													<argument exp='Potentiometer' />
												</command>
												<command class_type='call' title='Call Component Macro' component='miac1' macro='OutputON' >
													<argument exp='4' />
												</command>
												<command class_type='call' title='Call Display' macro='Display' />
											</flowline>
											<flowline >
												<command class_type='call' title='Call Component Macro' component='miac1' macro='OutputOFF' >
													<argument exp='4' />
												</command>
												<command class_type='call' title='Component Macro Aanroepen' component='PWM1' macro='Disable' />
											</flowline>
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='d69543a8-f38b-488a-b905-9fa2d5970beb' vmin='808' vmaj='16' codename='miac1' x='56' y='-8' z='28.75' xsz='133' ysz='98.5' zsz='57.5' 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='LCD_X' data='9' />
					<value target='LCD_Y' data='2' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='a31b1f0a-4221-490d-ae25-027868688f0b' vmin='40' vmaj='16' codename='basic_switch1' x='-96' y='56' z='3' 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='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTA.0' />
					<value target='polarity' data='000' />
					<value target='debounce' data='' />
					<value target='operation' data='001' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='a31b1f0a-4221-490d-ae25-027868688f0b' vmin='40' vmaj='16' codename='basic_switch2' x='-64' y='56' z='3' 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='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTA.2' />
					<value target='polarity' data='000' />
					<value target='debounce' data='' />
					<value target='operation' data='001' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='444fb704-814c-4707-a15c-759ba088505c' vmin='1320' vmaj='16' codename='PWM1' x='-40' y='-16' z='55.75' xsz='3' ysz='3' zsz='3' 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='channel' data='002' />
					<value target='altpin' data='0' />
					<value target='pwm_pin' data='$PORTC.1' />
					<value target='RemapPin' data='' />
					<value target='period' data='255' />
					<value target='prescale' data='000' />
					<value target='period_calc' data='21.333334' />
					<value target='frequency_calc' data='46.875000' />
					<value target='pwm_prescale' data='1' />
					<value target='SimRep' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='14683ea8-5a08-4b3a-be2d-3dea3e17e720' vmin='552' vmaj='16' codename='pot_color_cap1' x='-88' y='8' z='9' 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='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='channel' data='1' />
					<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>
	<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---------------------wAAAAAUAAAAQQQAAFkCAAA' zoom='70' scrollx='88' scrolly='253' flags='0' />
		<view type='0' name='Display' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAQQQAAFkCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
