<root>
<document schema='101' license='1,Martin Whitlock,JQE1YE' title='' description='' target='PIC.16F.16F1937' >
	<config data='!0,fe2!10,1eff%0,2%3,0%5,1%6,1%7,1%8,1%9,3%b,1%c,0%d,0%10,3%14,3%18,0%19,1%1a,1%1c,1%1d,0' clkspd='19660800' 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_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='' 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='Count' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Seg' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='Seven_Seg' description='' >
						<local name='char' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='switch' title='Switch' textarea='36,25,511,325' exp='Seg' >
							<case >
								<flowline >
									<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
										<exp exp='Seven_Seg.char = Count MOD 10' />
									</command>
									<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__led7seg0' macro='ClearDigit' />
									<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__led7seg3' macro='ShowDigit' >
										<argument exp='.char' />
										<argument exp='0' />
									</command>
								</flowline>
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
										<exp exp='Seven_Seg.char = (Count / 10) MOD 10' />
									</command>
									<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__led7seg3' macro='ClearDigit' />
									<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__led7seg2' macro='ShowDigit' >
										<argument exp='.char' />
										<argument exp='0' />
									</command>
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
										<exp exp='Seven_Seg.char = (Count / 100) MOD 10' />
									</command>
									<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__led7seg2' macro='ClearDigit' />
									<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__led7seg1' macro='ShowDigit' >
										<argument exp='.char' />
										<argument exp='0' />
									</command>
								</flowline>
							</case>
							<case exp='3' >
								<flowline >
									<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
										<exp exp='Seven_Seg.char = (Count / 1000) MOD 10' />
									</command>
									<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__led7seg1' macro='ClearDigit' />
									<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='v5__led7seg0' macro='ShowDigit' >
										<argument exp='.char' />
										<argument exp='0' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='calculation' title='Move to Next Segment' textarea='36,0,511,300' >
							<exp exp='Seg = (Seg + 1) MOD 4' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<command class_type='interrupt' title='Interrupt' textarea='36,0,511,300' enable='1' name='TMR0' call='Seven_Seg' >
							<settings timer='1' prescale='64' postscale='-1' rollover='-1' bitcount='0' trigger='3' maskhi='-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAA' masklo='-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAD-AAAA-wAAAP8AAAA' >
								<option value='1' />
								<option value='0' />
								<option value='6' />
								<option value='-1' />
							</settings>
						</command>
						<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
							<exp exp='Seg = 0' />
							<exp exp='Count = 0' />
						</command>
						<command class_type='loop' title='Loop' textarea='36,0,511,300' type='0' exp='1' >
							<flowline >
								<command class_type='delay' title='Delay' textarea='36,0,511,300' exp='200' type='1' />
								<command class_type='calculation' title='Calculation' textarea='36,0,511,300' >
									<exp exp='Count = Count + 1' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='52c5383b-4f48-4029-8b75-c3633f7cf892' vmin='3' vmaj='1' codename='v5__led7seg0' x='-24' y='0' z='0' xsz='11.4286' ysz='14.2857' zsz='1.14286' 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='display_type' data='0' />
					<value target='ShowSegLabels' data='1' />
					<value target='CommonPin' data='1' />
					<value target='pin0' data='$PORTB0.0' />
					<value target='pin1' data='$PORTB0.1' />
					<value target='pin2' data='$PORTB0.2' />
					<value target='pin3' data='$PORTB0.3' />
					<value target='pin4' data='$PORTB0.4' />
					<value target='pin5' data='$PORTB0.5' />
					<value target='pin6' data='$PORTB0.6' />
					<value target='pin7' data='$PORTB.7' />
					<value target='common_pin' data='$PORTA.0' />
					<value target='FGColor' data='255' />
					<value target='BGColor' data='1973790' />
					<value target='LabelColor' data='16777215' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='52c5383b-4f48-4029-8b75-c3633f7cf892' vmin='3' vmaj='1' codename='v5__led7seg1' x='-8' y='0' z='0' xsz='11.4286' ysz='14.2857' zsz='1.14286' 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='display_type' data='0' />
					<value target='ShowSegLabels' data='1' />
					<value target='CommonPin' data='1' />
					<value target='pin0' data='$PORTB0.0' />
					<value target='pin1' data='$PORTB0.1' />
					<value target='pin2' data='$PORTB0.2' />
					<value target='pin3' data='$PORTB0.3' />
					<value target='pin4' data='$PORTB0.4' />
					<value target='pin5' data='$PORTB0.5' />
					<value target='pin6' data='$PORTB0.6' />
					<value target='pin7' data='$PORTB.7' />
					<value target='common_pin' data='$PORTA0.1' />
					<value target='FGColor' data='255' />
					<value target='BGColor' data='1973790' />
					<value target='LabelColor' data='16777215' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='52c5383b-4f48-4029-8b75-c3633f7cf892' vmin='3' vmaj='1' codename='v5__led7seg2' x='8' y='0' z='0' xsz='11.4286' ysz='14.2857' zsz='1.14286' 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='display_type' data='0' />
					<value target='ShowSegLabels' data='1' />
					<value target='CommonPin' data='1' />
					<value target='pin0' data='$PORTB0.0' />
					<value target='pin1' data='$PORTB0.1' />
					<value target='pin2' data='$PORTB0.2' />
					<value target='pin3' data='$PORTB0.3' />
					<value target='pin4' data='$PORTB0.4' />
					<value target='pin5' data='$PORTB0.5' />
					<value target='pin6' data='$PORTB0.6' />
					<value target='pin7' data='$PORTB.7' />
					<value target='common_pin' data='$PORTA0.2' />
					<value target='FGColor' data='255' />
					<value target='BGColor' data='1973790' />
					<value target='LabelColor' data='16777215' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='52c5383b-4f48-4029-8b75-c3633f7cf892' vmin='3' vmaj='1' codename='v5__led7seg3' x='24' y='0' z='0' xsz='11.4286' ysz='14.2857' zsz='1.14286' 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='display_type' data='0' />
					<value target='ShowSegLabels' data='1' />
					<value target='CommonPin' data='1' />
					<value target='pin0' data='$PORTB0.0' />
					<value target='pin1' data='$PORTB0.1' />
					<value target='pin2' data='$PORTB0.2' />
					<value target='pin3' data='$PORTB0.3' />
					<value target='pin4' data='$PORTB0.4' />
					<value target='pin5' data='$PORTB0.5' />
					<value target='pin6' data='$PORTB0.6' />
					<value target='pin7' data='$PORTB.7' />
					<value target='common_pin' data='$PORTA0.3' />
					<value target='FGColor' data='255' />
					<value target='BGColor' data='1973790' />
					<value target='LabelColor' data='16777215' />
				</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='90.326' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel3d>
	<layout >
		<view type='0' name='Seven_Seg' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAGgUAALEDAAA' zoom='105' scrollx='51' scrolly='0' flags='0' />
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAGgUAALEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
