<root>
<document schema='101' license='1,Bachman_00,Y69TCJ' title='' description='' target='PIC.18F.18F14K22' >
	<config data='!0,ff!8,8!10,ee!18,fe!20,ff!28,77!30,b3!38,ff!40,ff!48,ff!50,ff!58,ff!60,ff!68,ff%8,8%c,0%d,0%e,0%f,0%10,0%11,3%13,1%18,0%19,f%2b,0%2f,0%30,1%32,0%33,0%36,0%37,1%40,1%41,1%4e,1%4f,1%50,1%51,1%5d,1%5e,1%5f,1%60,1%61,1%6e,1' clkspd='8000000' simspd='1' usewdt='0' constif='0' />
	<plugins >
		<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='0d3c6acb-0342-42dc-aa94-baf2042171b6' 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='x' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='Main' description='' >
						<command class_type='native' title='C Code' ccode='// Internal oscillator, 8 MHz

osccon=0b01100000;

// Little delay

delay_ms(100);' language='C' />
						<command class_type='native' title='C Code' ccode='// Set FVR to 1.024 V

vrefcon0=0b10010000;' language='C' />
						<command class_type='native' title='C Code' ccode='// ADC setup

// Vref+: Vdd, Vref-: Vss

adcon1=0b00000000;

// Right justified, 8 Tad, Fosc/8

adcon2=0b10100001;

// Select FVR, turn on ADC module

adcon0=0b00111101;' language='C' />
						<command class_type='call' title='Call Component Macro' component='LCD1' macro='Start' />
						<command class_type='loop' title='Loop' type='0' exp='1' >
							<flowline >
								<command class_type='native' title='C Code' ccode='// Measure the voltage

adcon0.GO_DONE=1; // Start the measurement
while(adcon0.GO_DONE==1); //Wait until measurement done' language='C' />
								<command class_type='native' title='C Code' ccode='FCV_X=adresh; //High byte of the result
FCV_X=FCV_X &lt;&lt; 8; //Shift left
FCV_X=FCV_X | adresl; //Merge low byte of the result to variable x' language='C' />
								<command class_type='call' title='Call Component Macro' component='LCD1' macro='Clear' />
								<command class_type='call' title='Call Component Macro' component='LCD1' macro='PrintNumber' >
									<argument exp='x' />
								</command>
								<command class_type='delay' title='Delay' exp='1' type='2' />
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='0953aac0-9c23-4c2f-9843-88954a4191ea' vmin='1' vmaj='2' codename='LCD1' x='-30' y='4' z='428.534' xsz='72' ysz='20' zsz='1.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 >
					<value target='LCD_Mode' data='000' />
					<value target='Pin_Data_0' data='$PORTA.2' />
					<value target='Pin_Data_1' data='$PORTC.0' />
					<value target='Pin_Data_2' data='$PORTC.1' />
					<value target='Pin_Data_3' data='$PORTC.2' />
					<value target='Pin_Data_4' data='$PORTA.1' />
					<value target='Pin_Data_5' data='$PORTA.1' />
					<value target='Pin_Data_6' data='$PORTA.1' />
					<value target='Pin_Data_7' data='$PORTA.1' />
					<value target='LCD_Port' data='$PORTA' />
					<value target='Pin_RS' data='$PORTA.0' />
					<value target='Pin_E' data='$PORTA.1' />
					<value target='LCD_Use_Write' data='0' />
					<value target='Pin_RW' data='$PORTA.0' />
					<value target='Rows' data='002' />
					<value target='Columns' data='016' />
					<value target='BackgroundColor' data='12605439' />
					<value target='LineColor' data='12582990' />
					<value target='TextColor' data='0' />
					<value target='Font' data='Arial' />
					<value target='CursorPosX' data='5' />
					<value target='CursorPosY' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<keymap />
	<panel2d shadows='0' lighting='0' brightness='0' perspective='0' >
		<background rgb='8882055' img='' style='0' />
		<camera xe='0' ye='0' ze='193.016' 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='9868950' img='' style='0' />
		<table rgb='9868950' img='' style='0' size='25' />
		<camera xe='0' ye='0' ze='463.98' 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---------------------wAAAAAUAAAASwQAAE8DAAA' zoom='75' scrollx='0' scrolly='309' flags='0' />
	</layout>
</document>
</root>
