<root>
<document schema='101' license='1,30day_96531603,HEAQ8P' title='' description='' target='PIC.16F.16LF1936' >
	<config data='!0,9e4!10,1433%0,4%3,0%5,1%6,1%7,1%8,1%9,0%b,1%c,0%d,0%10,3%14,3%18,0%19,0%1a,1%1c,1%1d,0' clkspd='500000' 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='d63acc77-5b49-4e4a-b381-15356530733f' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' catenable='1' author='' 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='false' type='b1' description='' isconst='1' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='interrupt' type='b1' 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='do_something' description='when an interrupt from a variable happens,
it does this.' >
						<command class_type='comment' title='' comment='pulse portb1' textarea='12,0,12,0' />
						<command class_type='output' title='Output' mode='1' port='1048577' mask='2' exp='1' />
						<command class_type='delay' title='Delay' exp='200' type='1' />
						<command class_type='output' title='Output' mode='1' port='1048577' mask='2' exp='0' />
					</flowline>
				</macro>
				<macro >
					<flowline name='interrupt_on_variable_enable_disable' description='enables or disables interrupt on a variable' >
						<param name='enable_disable' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='decision' title='turn on or turn off the interrupt on a variable' exp='.enable_disable = 1' swap='0' >
							<flowline >
								<command class_type='comment' title='' comment='the variable &quot;interrupt&quot; is defined as a timer6 interrupt flag.
when the variable interrupt is 1, the macro do_something will be called.' textarea='12,0,12,0' />
								<command class_type='interrupt' title='variable interrupt' enable='1' name='' call='do_something' >
									<custom name='variable interrupt' handler='if (pir3 &amp;(1&lt;&lt;TMR6IE))
{
FCM_%n();
clear_bit(pir3,TMR6IF);
}' enable='#define FCV_INTERRUPT pir3.TMR6IF
intcon.PEIE=1;
intcon.GIE=1;
pie3.TMR6IE=1;' disable='' />
								</command>
							</flowline>
							<flowline >
								<command class_type='interrupt' title='Interrupt' enable='0' name='' >
									<custom name='variable interrupt' handler='if (pir3 &amp;(1&lt;&lt;TMR6IE))
{
FCM_%n();
clear_bit(pir3,TMR6IF);
}' enable='#define FCV_INTERRUPT pir3.TMR6IF
intcon.PEIE=1;
intcon.GIE=1;
pie3.TMR6IE=1;' disable='pie3.TMR6IE=0;' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='interrupt from a variable' >
						<command class_type='call' title='turn on interrupt from a variable' macro='interrupt_on_variable_enable_disable' >
							<argument exp='1' />
						</command>
						<command class_type='loop' title='Loop' exp='1' type='0' start='1' count='1' breakend='0' >
							<flowline >
								<command class_type='calculation' title='cause an interrupt' >
									<exp exp='interrupt = 1' />
								</command>
								<command class_type='delay' title='Delay' exp='1' type='2' />
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
		</component>
	</components>
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='16777215' 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='16777215' img='' style='0' />
		<table rgb='16777215' img='' style='0' size='0' />
		<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---------------------wAAAAAUAAAA5AIAAN4CAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='interrupt_on_variable_enable_disable' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AIAAN4CAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='do_something' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA5AIAAN4CAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
