<root>
<document schema='101' license='1' title='' description='' target='PIC16.24F.24FJ64GA002' >
	<config data='!0,be7f!10,79ef%0,f%4,1%5,1%6,1%7,0%8,2%a,1%b,1%c,1%d,1%e,0%f,1%10,3%12,1%13,1%14,0%15,1%16,3%18,1%1b,3%1d,3%1f,0' 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' />
		</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='805e9e35-4138-464b-9664-e6b808c1974e' 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='ledON' type='b1' description='' isconst='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='counter' type='u16' description='' 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='true' type='b1' description='' isconst='1' isinit='1' usrinit='1' setinit='1' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='adc_read' description='' >
						<local name='b' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Component Macro' component='adc_base1' macro='GetByte' >
							<return exp='.b' />
						</command>
						<command class_type='call' title='Call Component Macro' component='CircularBuffer1' macro='PutByte' >
							<argument exp='.b' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<command class_type='native' title='32 mhz' ccode='/*
  Enter C code below this comment
*/
CLKDIV = CLKDIV &amp; 0xF0FF; //activate 32mhz freq

' language='C' />
						<command class_type='call' title='Call Component Macro' component='led_5mm1' macro='TurnOn' />
						<command class_type='interrupt' title='Interrupt' enable='1' name='TMR1' call='adc_read' >
							<settings timer='1' prescale='1' postscale='-1' rollover='1000' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='0' />
								<option value='0' />
								<option value='1000' />
								<option value='-1' />
							</settings>
						</command>
						<command class_type='loop' title='Loop' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='Call Component Macro' component='CircularBuffer1' macro='GetNumberBytes' >
									<return exp='counter' />
								</command>
								<command class_type='decision' title='Decision' exp='counter &gt;= 5000' swap='0' >
									<flowline >
										<command class_type='decision' title='Decision' exp='ledON' swap='0' >
											<flowline >
												<command class_type='call' title='Call Component Macro' component='led_5mm1' macro='TurnOff' />
												<command class_type='calculation' title='Calculation' >
													<exp exp='ledON = 0' />
												</command>
											</flowline>
											<flowline >
												<command class_type='call' title='Call Component Macro' component='led_5mm1' macro='TurnOn' />
												<command class_type='calculation' title='Calculation' >
													<exp exp='ledON = 1' />
												</command>
											</flowline>
										</command>
										<command class_type='call' title='Call Component Macro' component='CircularBuffer1' macro='FlushBuffer' />
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='7aad74d6-b24e-4dab-91eb-5d72a973f12d' vmin='2' vmaj='1' codename='adc_base1' x='16' y='160' z='0' xsz='25' ysz='25' zsz='25' 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='11' />
					<value target='vrefvol' data='500' />
					<value target='vrefop' data='000' />
					<value target='convspd' data='003' />
					<value target='actime' data='1' />
					<value target='bits' data='10' />
					<value target='bitmul' data='0.004883' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='d92e8259-f3a8-4176-a8c4-fe7ca42b2c3f' vmin='1' vmaj='1' codename='led_5mm1' x='8' y='112' z='-1.90735e-007' 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='$PORTB.11' />
					<value target='polarity' data='000' />
					<value target='on_color' data='10551200' />
					<value target='length' data='4.000000' />
					<value target='show_label' data='002' />
					<value target='label_property' data='pin' />
					<value target='label_color' data='16777215' />
					<value target='label_scale' data='1.000000' />
					<value target='label_auto_scale' data='0' />
					<value target='label_position' data='003' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='c34f9b8a-a915-4f75-ad0c-87f2ad670a8a' vmin='1' vmaj='1' codename='CircularBuffer1' x='16' y='88' z='0' xsz='20' ysz='20' zsz='20' 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='BufferSize' data='6000' />
					<value target='StorageType' data='000' />
					<value target='MemType' 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='-1' ye='88' ze='90.2739' xt='-1' yt='88' 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---------------------wAAAAAUAAAAaAIAAIcCAAA' zoom='36' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='adc_read' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAaAIAAIcCAAA' zoom='60' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
