<root>
<document schema='101' license='1,fotios,5AGFPC' title='ATM90E32_SPI' description='' target='PIC.16F.16F18877' >
	<config data='!0,3f8c!10,37fd!20,3f92!30,1fff!40,3fff%0,4%4,0%8,1%b,1%d,1%10,1%11,0%15,1%16,3%19,1%1a,1%1b,0%1c,1%1d,1%20,12%25,0%28,7%2b,7%30,3%3c,1%3d,0%40,1%41,1' clkspd='8000000' 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='19' />
			<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 >
		<watch expr='ATdata_RX' />
		<watch expr='IrmsA' />
		<watch expr='IrmsALSB' />
		<watch expr='IaFLP' />
		<watch expr='IaSTR' />
		<watch expr='PmeanA' />
		<watch expr='count' />
	</debug>
	<ghost >
		<FK2 >
			<data name='FK2D0' port='4294967295' pin='4294967295' />
			<data name='FK2D1' port='4294967295' pin='4294967295' />
			<data name='FK2D2' port='4294967295' pin='4294967295' />
			<data name='FK2D3' port='4294967295' pin='4294967295' />
			<data name='FK2D4' port='4294967295' pin='4294967295' />
			<data name='FK2D5' port='4294967295' pin='4294967295' />
			<data name='FK2D6' port='4294967295' pin='4294967295' />
			<data name='FK2D7' port='4294967295' pin='4294967295' />
			<data name='FK2D8' port='4294967295' pin='4294967295' />
			<data name='FK2D9' port='4294967295' pin='4294967295' />
			<data name='FK2D10' port='4294967295' pin='4294967295' />
			<data name='FK2D11' port='4294967295' pin='4294967295' />
			<data name='FK2D12' port='4294967295' pin='4294967295' />
			<data name='FK2D13' port='4294967295' pin='4294967295' />
			<data name='FK2D14' port='4294967295' pin='4294967295' />
			<data name='FK2D15' port='4294967295' pin='4294967295' />
			<data name='FK2A0' port='4294967295' pin='4294967295' />
			<data name='FK2A1' port='4294967295' pin='4294967295' />
			<data name='FK2A2' port='4294967295' pin='4294967295' />
			<data name='FK2A3' port='4294967295' pin='4294967295' />
			<data name='FK2A4' port='4294967295' pin='4294967295' />
			<data name='FK2A5' port='4294967295' pin='4294967295' />
		</FK2>
		<ICD >
			<data name='AnalogPrescaleValue' value='19' />
			<data name='DigitalSampleRate' value='100000' />
			<data name='BreakpointCount' value='8' />
			<data name='CallStackDepthCount' value='8' />
			<data name='ClockPort' value='1' />
			<data name='ClockPin' value='6' />
			<data name='DataPort' value='1' />
			<data name='DataPin' value='7' />
			<data name='UseDefaultPins' value='1' />
			<data name='WrapEnabled' value='1' />
			<data name='CommsDelayOverridden' value='0' />
			<data name='CommsDelay' value='21' />
			<data name='CalculatedCommsDelay' value='21' />
		</ICD>
		<pins >
			<digital A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
			<analog A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
		</pins>
	</ghost>
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='13097bd4-3262-408a-a797-0597e38517a7' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='1' 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='IbSTR' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='VaSTR' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PactASTR' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXdone' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PmeanBLSB' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='IcFLP' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PactT' type='s32' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='OPCODE' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ATMISO_L' type='u8' description='Master In Slave Out Low Byte' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='VbFLP' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='IrmsBLSB' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PactBFLP' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='UrmsALSB' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FREQ' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ATdata_RX' type='u16' description='Received Data from ATM90E32 in 16-bit' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PactTSTR' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='AngleC' 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='AngleB' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ATMISO_H' type='u8' description='Master In Slave Out High Byte' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='AngleA' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='BUSY' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_9' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='IrmsC' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='IaFLP' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='IcSTR' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_8' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ATAddr_L' type='u8' description='Address Low Byte' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='VbSTR' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='IrmsB' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PactBSTR' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_7' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_19' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='LR_IRQ_3' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='IrmsA' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PmeanCLSB' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PmeanT' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_6' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_18' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='LR_IRQ_2' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_5' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_17' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='LR_IRQ_1' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_4' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_16' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='LR_IRQ_0' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ATAddr_H' type='u8' description='Address High Byte' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='EnergC' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_3' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_15' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='VcFLP' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='IrmsCLSB' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PactCFLP' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='EnergB' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_2' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_14' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXtimeout' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_29' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='UrmsBLSB' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='EnergA' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_1' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_13' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='LRbyte_7' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_28' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_0' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_12' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='LRbyte_6' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_27' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='IaSTR' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_11' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='LRbyte_5' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_26' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_10' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='LRbyte_4' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_25' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='UrmsC' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PmeanALSB' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='LRbyte_3' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='IOC_A' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_24' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_39' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='UrmsB' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_23' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='LRbyte_2' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_38' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='UrmsA' type='u16' description='Measurement decimal by ATM90E32' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_22' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='LRbyte_1' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='FIFOoffset' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_37' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='IbFLP' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_21' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_36' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='VaFLP' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='VcSTR' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='IrmsALSB' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PactAFLP' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PactCSTR' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_20' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_35' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_34' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='NOP' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_33' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ATMOSI_L' type='u8' description='Master Out Slave In Low Byte' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PmeanTLSB' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_32' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PmeanC' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_31' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PmeanB' type='s16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TXbyte_30' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='UrmsCLSB' type='u16' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PmeanA' type='s16' description='Phase A Power High Word, Signed' isconst='0' 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>
				<variable public='0' >
					<def class_type='variable' name='ATMOSI_H' type='u8' description='Master Out Slave In High Byte' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PactTFLP' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PAIR' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='SPI_WRITE' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='output' title='AT CS Low' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048576' mask='32' exp='0' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='5' type='0' />
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi1' macro='Master_Byte' >
							<argument exp='ATAddr_H' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi1' macro='Master_Byte' >
							<argument exp='ATAddr_L' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi1' macro='Master_Byte' >
							<argument exp='ATMOSI_H' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi1' macro='Master_Byte' >
							<argument exp='ATMOSI_L' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='5' type='0' />
						<command class_type='output' title='AT CS High' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048576' mask='32' exp='1' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='PACK_PARAM' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='OPCODE = 0x8C' />
							<exp exp='LRbyte_1 = 0x00' />
							<exp exp='LRbyte_2 = 0x08' />
							<exp exp='LRbyte_3 = 0x00' />
							<exp exp='LRbyte_4 = 0x28' />
							<exp exp='LRbyte_5 = 0x01' />
							<exp exp='LRbyte_6 = 0x00' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='output' title='LoRa CS Low' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048577' mask='16' exp='0' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='5' type='0' />
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='OPCODE' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='LRbyte_1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='LRbyte_2' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='LRbyte_3' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='LRbyte_4' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='LRbyte_5' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='LRbyte_6' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='5' type='0' />
						<command class_type='output' title='LoRa CS High' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048577' mask='16' exp='1' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='WATT' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='Read PmeanA 0xB1 ' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xB1' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='2408448' cmdcolor_sec='6618980' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='12583040' cmdcolor_sec='16737508' cmdAuto_color='1' cmdcustom_color='1' >
							<exp exp='TXbyte_28 = ATMISO_H' />
							<exp exp='TXbyte_29 = ATMISO_L' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='PmeanA = ATdata_RX' />
							<exp exp='PmeanA = ~PmeanA' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Read PmeanALSB 0xC1' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xC1' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='2408448' cmdcolor_sec='6618980' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='12583040' cmdcolor_sec='16737508' cmdAuto_color='1' cmdcustom_color='1' >
							<exp exp='TXbyte_30 = ATMISO_H' />
							<exp exp='TXbyte_31 = ATMISO_L' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='PmeanALSB = ATdata_RX' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Calculate and print
Phase A Power' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Calculation' cmdcolor='65535' cmdcolor_sec='6619135' cmdAuto_color='1' cmdcustom_color='1' >
							<exp exp='PactAFLP = ((PmeanA * 65536) + PmeanALSB) * 0.0003252' />
							<exp exp='PactASTR = FloatToString$ (PactAFLP,1)' />
						</command>
						<command class_type='comment' title='' comment='Print PactA' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='0' />
							<argument exp='2' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintString' >
							<argument exp='PactASTR' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Read PmeanB 0xB2' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xB2' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='2408448' cmdcolor_sec='6618980' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='12583040' cmdcolor_sec='16737508' cmdAuto_color='1' cmdcustom_color='1' >
							<exp exp='TXbyte_32 = ATMISO_H' />
							<exp exp='TXbyte_33 = ATMISO_L' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='PmeanB = ATdata_RX' />
							<exp exp='PmeanB = ~PmeanB' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Read PmeanBLSB 0xC2' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xC2' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='2408448' cmdcolor_sec='6618980' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='12583040' cmdcolor_sec='16737508' cmdAuto_color='1' cmdcustom_color='1' >
							<exp exp='TXbyte_34 = ATMISO_H' />
							<exp exp='TXbyte_35 = ATMISO_L' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='PmeanBLSB = ATdata_RX' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Calculate and print
Phase B Power' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Calculation' cmdcolor='65535' cmdcolor_sec='6619135' cmdAuto_color='1' cmdcustom_color='1' >
							<exp exp='PactBFLP = ((PmeanB * 65536) + PmeanBLSB) * 0.0003234' />
							<exp exp='PactBSTR = FloatToString$ (PactBFLP,1)' />
						</command>
						<command class_type='comment' title='' comment='Print PactB' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='7' />
							<argument exp='2' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintString' >
							<argument exp='PactBSTR' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Read PmeanC 0xB3' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xB3' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='2408448' cmdcolor_sec='6618980' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='12583040' cmdcolor_sec='16737508' cmdAuto_color='1' cmdcustom_color='1' >
							<exp exp='TXbyte_36 = ATMISO_H' />
							<exp exp='TXbyte_37 = ATMISO_L' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='PmeanC = ATdata_RX' />
							<exp exp='PmeanC = ~PmeanC' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Read PmeanCLSB 0xC3' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xC3' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='2408448' cmdcolor_sec='6618980' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='12583040' cmdcolor_sec='16737508' cmdAuto_color='1' cmdcustom_color='1' >
							<exp exp='TXbyte_38 = ATMISO_H' />
							<exp exp='TXbyte_39 = ATMISO_L' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='PmeanCLSB = ATdata_RX' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Calculate and print
Phase C Power' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Calculation' cmdcolor='65535' cmdcolor_sec='6619135' cmdAuto_color='1' cmdcustom_color='1' >
							<exp exp='PactCFLP = ((PmeanC * 65536) + PmeanCLSB) * 0.0003244' />
							<exp exp='PactCSTR = FloatToString$ (PactCFLP,1)' />
						</command>
						<command class_type='comment' title='' comment='Print PactC' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='14' />
							<argument exp='2' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintString' >
							<argument exp='PactCSTR' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='VGAIN' description='ATM90E32 Initialize' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='L1, L2, L3, Voltage
Gain Callibration' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='output' title='OFF LINK LED' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048579' mask='16' exp='1' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Clear' />
						<command class_type='comment' title='' comment='Read UrmsA 0xD9' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xD9' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='UrmsA = ATdata_RX' />
						</command>
						<command class_type='comment' title='' comment='Print UrmsA
received word' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintFormattedNumber' >
							<argument exp='UrmsA' />
							<argument exp='1' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Read UrmsALSB 0xE9' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xE9' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='UrmsALSB = ATdata_RX' />
						</command>
						<command class_type='comment' title='' comment='Print UrmsALSB
received word' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='7' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintFormattedNumber' >
							<argument exp='UrmsALSB' />
							<argument exp='1' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Calculate and print
Phase A actual RMS voltage' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Calculation' cmdcolor='65535' cmdcolor_sec='6619135' cmdAuto_color='1' cmdcustom_color='1' >
							<exp exp='VaFLP = (UrmsA * 0.01) + (UrmsALSB * 0.01 / 65536)' />
							<exp exp='VaSTR = FloatToString$ (VaFLP,1)' />
						</command>
						<command class_type='comment' title='' comment='Print VaSTR' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='15' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintString' >
							<argument exp='VaSTR' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Read UrmsB 0xDA' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xDA' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='UrmsB = ATdata_RX' />
						</command>
						<command class_type='comment' title='' comment='Print UrmsB
received word' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintFormattedNumber' >
							<argument exp='UrmsB' />
							<argument exp='1' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Read UrmsBLSB 0xEA' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xEA' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='UrmsBLSB = ATdata_RX' />
						</command>
						<command class_type='comment' title='' comment='Print UrmsBLSB
received word' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='7' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintFormattedNumber' >
							<argument exp='UrmsBLSB' />
							<argument exp='1' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Calculate and print
phase B actual RMS voltage' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Calculation' cmdcolor='65535' cmdcolor_sec='6619135' cmdAuto_color='1' cmdcustom_color='1' >
							<exp exp='VbFLP = (UrmsB * 0.01) + (UrmsBLSB * 0.01 / 65536)' />
							<exp exp='VbSTR = FloatToString$ (VbFLP,1)' />
						</command>
						<command class_type='comment' title='' comment='Print VbSTR' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='15' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintString' >
							<argument exp='VbSTR' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Read UrmsC 0xDB' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xDB' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='UrmsC = ATdata_RX' />
						</command>
						<command class_type='comment' title='' comment='Print UrmsC
received word' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='0' />
							<argument exp='2' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintFormattedNumber' >
							<argument exp='UrmsC' />
							<argument exp='1' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Read UrmsCLSB 0xEB' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xEB' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='UrmsCLSB = ATdata_RX' />
						</command>
						<command class_type='comment' title='' comment='Print UrmsCLSB
received word' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='7' />
							<argument exp='2' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintFormattedNumber' >
							<argument exp='UrmsCLSB' />
							<argument exp='1' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Calculate and print
Phase C actual RMS voltage' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Calculation' cmdcolor='65535' cmdcolor_sec='6619135' cmdAuto_color='1' cmdcustom_color='1' >
							<exp exp='VcFLP = (UrmsC * 0.01) + (UrmsCLSB * 0.01 / 65536)' />
							<exp exp='VcSTR = FloatToString$ (VcFLP,1)' />
						</command>
						<command class_type='comment' title='' comment='Print VcSTR' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='15' />
							<argument exp='2' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintString' >
							<argument exp='VcSTR' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Write Voltage Gain 
Registers' textarea='12,0,12,0' cmdcolor='16760832' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' />
						<command class_type='comment' title='' comment='Write UgainA 0x61
32746d = 0x7FEA' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0x61' />
							<exp exp='ATMOSI_H = 0xC4' />
							<exp exp='ATMOSI_L = 0xE2' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='SPI_WRITE' />
						<command class_type='comment' title='' comment='Write UgainB 0x65
32745d = 0x7FE9' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0x65' />
							<exp exp='ATMOSI_H = 0xC5' />
							<exp exp='ATMOSI_L = 0x57' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='SPI_WRITE' />
						<command class_type='comment' title='' comment='Write UgainC 0x69
32736d = 0x7FE0' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0x69' />
							<exp exp='ATMOSI_H = 0xC5' />
							<exp exp='ATMOSI_L = 0x6C' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='SPI_WRITE' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='200' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='TX_MODE' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='CHECK BUSY INPUT' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='input' title='GET BUSY STATE' cmdcolor='3610239' cmdcolor_sec='3610239' mode='1' port='1048576' mask='4' exp='BUSY' />
						<command class_type='decision' title='BUSY IS LOW?' cmdcolor='3568629' cmdcolor_sec='3568629' exp='BUSY = 0' swap='0' >
							<flowline >
								<command class_type='output' title='TURN ON TX LED' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048576' mask='16' exp='0' />
								<command class_type='output' title='TURN ON LINK LED' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048579' mask='16' exp='0' />
								<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='50' type='1' />
								<command class_type='comment' title='' comment='Set TX mode
Timeout = 2sec' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
								<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='TX_TIMEOUT' />
								<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='75' type='1' />
								<command class_type='comment' title='' comment='Wait for IRQ TXdone (RA.0)' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
								<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='IRQ_STATUS' />
								<command class_type='decision' title='Transmition Done?' cmdcolor='3568629' cmdcolor_sec='3568629' exp='TXdone = 1' swap='0' >
									<flowline >
										<command class_type='output' title='OFF TX LED' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048576' mask='16' exp='1' />
										<command class_type='output' title='OFF LINK LED' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048579' mask='16' exp='1' />
										<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='CLEAR_FLAGS' />
									</flowline>
									<flowline >
										<command class_type='decision' title='Transmition Timeout?' cmdcolor='3568629' cmdcolor_sec='3568629' exp='TXtimeout = 2' swap='0' >
											<flowline >
												<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='CLEAR_FLAGS' />
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
								<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='75' type='1' />
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='VOLT' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='Read UrmsA 0xD9' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xD9' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='2408448' cmdcolor_sec='6618980' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='12583040' cmdcolor_sec='16737508' cmdAuto_color='1' cmdcustom_color='1' >
							<exp exp='TXbyte_4 = ATMISO_H' />
							<exp exp='TXbyte_5 = ATMISO_L' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='UrmsA = ATdata_RX' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Read UrmsALSB 0xE9' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xE9' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='2408448' cmdcolor_sec='6618980' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='12583040' cmdcolor_sec='16737508' cmdAuto_color='1' cmdcustom_color='1' >
							<exp exp='TXbyte_6 = ATMISO_H' />
							<exp exp='TXbyte_7 = ATMISO_L' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='UrmsALSB = ATdata_RX' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Calculate and print
Phase A actual RMS voltage' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Calculation' cmdcolor='65535' cmdcolor_sec='6619135' cmdAuto_color='1' cmdcustom_color='1' >
							<exp exp='VaFLP = (UrmsA * 0.01) + (UrmsALSB * 0.01 / 65536)' />
							<exp exp='VaSTR = FloatToString$ (VaFLP,1)' />
						</command>
						<command class_type='comment' title='' comment='Print VaSTR' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintString' >
							<argument exp='VaSTR' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Read UrmsB 0xDA' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xDA' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='2408448' cmdcolor_sec='6618980' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='12583040' cmdcolor_sec='16737508' cmdAuto_color='1' cmdcustom_color='1' >
							<exp exp='TXbyte_8 = ATMISO_H' />
							<exp exp='TXbyte_9 = ATMISO_L' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='UrmsB = ATdata_RX' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Read UrmsBLSB 0xEA' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xEA' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='2408448' cmdcolor_sec='6618980' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='12583040' cmdcolor_sec='16737508' cmdAuto_color='1' cmdcustom_color='1' >
							<exp exp='TXbyte_10 = ATMISO_H' />
							<exp exp='TXbyte_11 = ATMISO_L' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='UrmsBLSB = ATdata_RX' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Calculate and print
phase B actual RMS voltage' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Calculation' cmdcolor='65535' cmdcolor_sec='6619135' cmdAuto_color='1' cmdcustom_color='1' >
							<exp exp='VbFLP = (UrmsB * 0.01) + (UrmsBLSB * 0.01 / 65536)' />
							<exp exp='VbSTR = FloatToString$ (VbFLP,1)' />
						</command>
						<command class_type='comment' title='' comment='Print VbSTR' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='7' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintString' >
							<argument exp='VbSTR' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Read UrmsC 0xDB' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xDB' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='2408448' cmdcolor_sec='6618980' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='12583040' cmdcolor_sec='16737508' cmdAuto_color='1' cmdcustom_color='1' >
							<exp exp='TXbyte_12 = ATMISO_H' />
							<exp exp='TXbyte_13 = ATMISO_L' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='UrmsC = ATdata_RX' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Read UrmsCLSB 0xEB' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xEB' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='2408448' cmdcolor_sec='6618980' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='12583040' cmdcolor_sec='16737508' cmdAuto_color='1' cmdcustom_color='1' >
							<exp exp='TXbyte_14 = ATMISO_H' />
							<exp exp='TXbyte_15 = ATMISO_L' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='UrmsCLSB = ATdata_RX' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Calculate and print
Phase C actual RMS voltage' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Calculation' cmdcolor='65535' cmdcolor_sec='6619135' cmdAuto_color='1' cmdcustom_color='1' >
							<exp exp='VcFLP = (UrmsC * 0.01) + (UrmsCLSB * 0.01 / 65536)' />
							<exp exp='VcSTR = FloatToString$ (VcFLP,1)' />
						</command>
						<command class_type='comment' title='' comment='Print VcSTR' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='15' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintString' >
							<argument exp='VcSTR' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='TX_PARAM' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='OPCODE = 0x8E' />
							<exp exp='LRbyte_1 = 0x14' />
							<exp exp='LRbyte_2 = 0x02' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='output' title='LoRa CS Low' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048577' mask='16' exp='0' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='5' type='0' />
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='OPCODE' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='LRbyte_1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='LRbyte_2' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='5' type='0' />
						<command class_type='output' title='LoRa CS High' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048577' mask='16' exp='1' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='STBY' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='OPCODE = 0x80' />
							<exp exp='LRbyte_1 = 0x01' />
							<exp exp='' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='output' title='LoRa CS Low' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048577' mask='16' exp='0' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='5' type='0' />
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='OPCODE' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='LRbyte_1' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='5' type='0' />
						<command class_type='output' title='LoRa CS High' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048577' mask='16' exp='1' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='PAYLOAD' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Call Component Macro' cmdcolor='2408448' cmdcolor_sec='6618980' component='eeprom1' macro='Read' >
							<return exp='TXbyte_0' />
							<argument exp='0x00' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='2408448' cmdcolor_sec='6618980' component='eeprom1' macro='Read' >
							<return exp='TXbyte_1' />
							<argument exp='0x01' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='2408448' cmdcolor_sec='6618980' component='eeprom1' macro='Read' >
							<return exp='TXbyte_2' />
							<argument exp='0x02' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='2408448' cmdcolor_sec='6618980' component='eeprom1' macro='Read' >
							<return exp='TXbyte_3' />
							<argument exp='0x03' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='OPCODE = 0x0E' />
							<exp exp='FIFOoffset = 0x00' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='output' title='LoRa CS Low' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048577' mask='16' exp='0' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='5' type='0' />
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='OPCODE' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='FIFOoffset' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_2' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_3' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_4' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_5' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_6' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_7' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_8' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_9' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_10' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_11' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_12' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_13' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_14' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_15' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_16' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_17' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_18' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_19' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_20' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_21' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_22' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_23' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_24' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_25' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_26' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_27' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_28' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_29' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_30' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_31' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_32' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_33' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_34' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_35' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_36' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_37' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_38' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_39' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='5' type='0' />
						<command class_type='output' title='LoRa CS High' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048577' mask='16' exp='1' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='FIFO_BAS_ADDR' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='OPCODE = 0x8F' />
							<exp exp='LRbyte_1 = 0x00' />
							<exp exp='LRbyte_2 = 0x00' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='output' title='LoRa CS Low' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048577' mask='16' exp='0' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='5' type='0' />
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='OPCODE' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='LRbyte_1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='LRbyte_2' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='5' type='0' />
						<command class_type='output' title='LoRa CS High' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048577' mask='16' exp='1' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='FREQ' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='Set RF frequency at 869.5MHz.
Byte 0. opcode = 0x86
Byte 1. = 0x36
Byte 2. = 0x58
Byte 3. = 0x00
Byte 4. = 0x00 ' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='OPCODE = 0x86' />
							<exp exp='LRbyte_1 = 0x36' />
							<exp exp='LRbyte_2 = 0x58' />
							<exp exp='LRbyte_3 = 0x00' />
							<exp exp='LRbyte_4 = 0x00' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='output' title='LoRa CS Low' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048577' mask='16' exp='0' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='5' type='0' />
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='OPCODE' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='LRbyte_1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='LRbyte_2' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='LRbyte_3' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='LRbyte_4' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='5' type='0' />
						<command class_type='output' title='LoRa CS High' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048577' mask='16' exp='1' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='SPI_READ' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = ATAddr_H | 0x80' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='output' title='AT CS Low' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048576' mask='32' exp='0' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='5' type='0' />
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi1' macro='Master_Byte' >
							<argument exp='ATAddr_H' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi1' macro='Master_Byte' >
							<argument exp='ATAddr_L' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi1' macro='Master_Byte' >
							<return exp='ATMISO_H' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi1' macro='Master_Byte' >
							<return exp='ATMISO_L' />
							<argument exp='0' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='5' type='0' />
						<command class_type='output' title='AT CS High' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048576' mask='32' exp='1' />
						<command class_type='calculation' title='Recover Data' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATdata_RX = (ATMISO_H &lt;&lt; 8) + (ATMISO_L)' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='PAIR_PAYLOAD' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='OPCODE = 0x0E' />
							<exp exp='FIFOoffset = 0x00' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='output' title='LoRa CS Low' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048577' mask='16' exp='0' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='5' type='0' />
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='OPCODE' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='FIFOoffset' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_2' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_3' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_4' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_5' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_6' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_7' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_8' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_9' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_10' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_11' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_12' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='TXbyte_13' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='5' type='0' />
						<command class_type='output' title='LoRa CS High' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048577' mask='16' exp='1' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='MOD_PARAM' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='OPCODE = 0x8B' />
							<exp exp='LRbyte_1 = 0x0B' />
							<exp exp='LRbyte_2 = 0x04' />
							<exp exp='LRbyte_3 = 0x04' />
							<exp exp='LRbyte_4 = 0x01' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='output' title='LoRa CS Low' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048577' mask='16' exp='0' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='5' type='0' />
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='OPCODE' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='LRbyte_1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='LRbyte_2' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='LRbyte_3' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='LRbyte_4' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='5' type='0' />
						<command class_type='output' title='LoRa CS High' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048577' mask='16' exp='1' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='PGAIN' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='L1, L2, L3, Power
Gain Callibration' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='output' title='OFF LINK LED' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048579' mask='16' exp='1' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Clear' />
						<command class_type='comment' title='' comment='Read PmeanA 0xB1' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xB1' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='PmeanA = ATdata_RX' />
							<exp exp='PmeanA = ~PmeanA' />
						</command>
						<command class_type='comment' title='' comment='Print PmeanA
received word' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintNumber' >
							<argument exp='PmeanA' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Read PmeanALSB 0xC1' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xC1' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='PmeanALSB = ATdata_RX' />
						</command>
						<command class_type='comment' title='' comment='Print PmeanALSB
received word' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='7' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintFormattedNumber' >
							<argument exp='PmeanALSB' />
							<argument exp='1' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Calculate and print
Phase A Power' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Calculation' cmdcolor='65535' cmdcolor_sec='6619135' cmdAuto_color='1' cmdcustom_color='1' >
							<exp exp='PactAFLP = ((PmeanA * 65536) + PmeanALSB) * 0.0003252' />
							<exp exp='PactASTR = FloatToString$ (PactAFLP,2)' />
						</command>
						<command class_type='comment' title='' comment='Print PactA' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='13' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintString' >
							<argument exp='PactASTR' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Read PmeanB 0xB2' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xB2' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='PmeanB = ATdata_RX' />
							<exp exp='PmeanB = ~PmeanB' />
						</command>
						<command class_type='comment' title='' comment='Print PmeanB
received word' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintNumber' >
							<argument exp='PmeanB' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Read PmeanBLSB 0xC2' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xC2' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='PmeanBLSB = ATdata_RX' />
						</command>
						<command class_type='comment' title='' comment='Print PmeanBLSB
received word' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='7' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintFormattedNumber' >
							<argument exp='PmeanBLSB' />
							<argument exp='1' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Calculate and print
Phase B Power' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Calculation' cmdcolor='65535' cmdcolor_sec='6619135' cmdAuto_color='1' cmdcustom_color='1' >
							<exp exp='PactBFLP = ((PmeanB * 65536) + PmeanBLSB) * 0.0003234' />
							<exp exp='PactBSTR = FloatToString$ (PactBFLP,2)' />
						</command>
						<command class_type='comment' title='' comment='Print PactB' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='13' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintString' >
							<argument exp='PactBSTR' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Read PmeanC 0xB3' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xB3' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='PmeanC = ATdata_RX' />
							<exp exp='PmeanC = ~PmeanC' />
						</command>
						<command class_type='comment' title='' comment='Print PmeanC
received word' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='0' />
							<argument exp='2' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintNumber' >
							<argument exp='PmeanC' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Read PmeanCLSB 0xC3' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xC3' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='PmeanCLSB = ATdata_RX' />
						</command>
						<command class_type='comment' title='' comment='Print PmeanCLSB
received word' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='7' />
							<argument exp='2' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintFormattedNumber' >
							<argument exp='PmeanCLSB' />
							<argument exp='1' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Calculate and print
Phase C Power' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Calculation' cmdcolor='65535' cmdcolor_sec='6619135' cmdAuto_color='1' cmdcustom_color='1' >
							<exp exp='PactCFLP = ((PmeanC * 65536) + PmeanCLSB) * 0.0003244' />
							<exp exp='PactCSTR = FloatToString$ (PactCFLP,2)' />
						</command>
						<command class_type='comment' title='' comment='Print PactC' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='13' />
							<argument exp='2' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintString' >
							<argument exp='PactCSTR' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Write Power
Offset Registers' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='comment' title='' comment='Write PoffsetA 0x41
11379d = 0x2C73' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0x41' />
							<exp exp='ATMOSI_H = 0x2C' />
							<exp exp='ATMOSI_L = 0x73' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='SPI_WRITE' />
						<command class_type='comment' title='' comment='Write PoffsetB 0x43
13025d = 0x32E1' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0x43' />
							<exp exp='ATMOSI_H = 0x32' />
							<exp exp='ATMOSI_L = 0xE1' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='SPI_WRITE' />
						<command class_type='comment' title='' comment='Write PoffsetC 0x45
51292d = 0xC85C
' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0x45' />
							<exp exp='ATMOSI_H = 0xC8' />
							<exp exp='ATMOSI_L = 0x5C' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='SPI_WRITE' />
						<command class_type='comment' title='' comment='Read Total Power' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='comment' title='' comment='Read PmeanT 0xB0' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xB0' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='PmeanT = ATdata_RX' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Read PmeanTLSB 0xC0' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xC0' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='PmeanTLSB = ATdata_RX' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Calculate and print
Total Power' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Calculation' cmdcolor='65535' cmdcolor_sec='6619135' cmdAuto_color='1' cmdcustom_color='1' >
							<exp exp='PactT = (PmeanT &lt;&lt; 16) + PmeanTLSB' />
							<exp exp='PactTFLP = PactT * 0.00032 * 1.548' />
							<exp exp='PactTSTR = FloatToString$ (PactTFLP,2)' />
						</command>
						<command class_type='comment' title='' comment='Print PactT' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='13' />
							<argument exp='3' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintString' >
							<argument exp='PactTSTR' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Read Frequency 0xF8' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xF8' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='FREQ = ATdata_RX' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='ClearLine' >
							<argument exp='3' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='0' />
							<argument exp='3' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintNumber' >
							<argument exp='FREQ' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Read Phase A VI angle 0xF9' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xF9' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='AngleA = ATdata_RX' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Print AngleA' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='6' />
							<argument exp='3' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintNumber' >
							<argument exp='AngleA' />
						</command>
						<command class_type='comment' title='' comment='Read Phase B VI angle 0xFA' textarea='12,0,12,0' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xFA' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='AngleB = ATdata_RX' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Print AngleB' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='11' />
							<argument exp='3' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintNumber' >
							<argument exp='AngleB' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Read Phase C VI angle 0xFB' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xFB' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='AngleC = ATdata_RX' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Print AngleC' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='16' />
							<argument exp='3' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintNumber' >
							<argument exp='AngleC' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='ClearLine' >
							<argument exp='3' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Read Phase A Energy 0x81' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0x81' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='EnergA = ATdata_RX' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Print EnergA' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='0' />
							<argument exp='3' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintNumber' >
							<argument exp='EnergA' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Read Phase B Energy 0x82' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0x82' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='EnergB = ATdata_RX' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Print EnergB' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='7' />
							<argument exp='3' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintNumber' >
							<argument exp='EnergB' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Read Phase C Energy 0x83' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0x83' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='EnergC = ATdata_RX' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Print EnergC' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='14' />
							<argument exp='3' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintNumber' >
							<argument exp='EnergC' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='200' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='PAIRING' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='Get the 4 byte
random number.
Read registers:
0x0819
0x081A
0x081B
0x081C' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='OPCODE = 0x1D' />
							<exp exp='LRbyte_1 = 0x08' />
							<exp exp='LRbyte_2 = 0x19' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='output' title='LoRa CS Low' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048577' mask='16' exp='0' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='5' type='0' />
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='OPCODE' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='LRbyte_1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='LRbyte_2' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<return exp='LRbyte_3' />
							<argument exp='NOP' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<return exp='LRbyte_4' />
							<argument exp='NOP' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<return exp='LRbyte_5' />
							<argument exp='NOP' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<return exp='LRbyte_6' />
							<argument exp='NOP' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<return exp='LRbyte_7' />
							<argument exp='NOP' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='5' type='0' />
						<command class_type='output' title='LoRa CS High' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048577' mask='16' exp='1' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16760832' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='ClearLine' >
							<argument exp='3' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16760832' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='0' />
							<argument exp='3' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16760832' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintNumber' >
							<argument exp='LRbyte_4' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16760832' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='5' />
							<argument exp='3' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16760832' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintNumber' >
							<argument exp='LRbyte_5' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16760832' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='10' />
							<argument exp='3' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16760832' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintNumber' >
							<argument exp='LRbyte_6' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16760832' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='15' />
							<argument exp='3' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16760832' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintNumber' >
							<argument exp='LRbyte_7' />
						</command>
						<command class_type='comment' title='' comment='Send the ASCII characters:
Matrix TSL
Plus the 4 bytes of pairing
number. ' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='TXbyte_0 = 0x4D' />
							<exp exp='TXbyte_1 = 0x61' />
							<exp exp='TXbyte_2 = 0x74' />
							<exp exp='TXbyte_3 = 0x72' />
							<exp exp='TXbyte_4 = 0x69' />
							<exp exp='TXbyte_5 = 0x78' />
							<exp exp='TXbyte_6 = 0x20' />
							<exp exp='TXbyte_7 = 0x54' />
							<exp exp='TXbyte_8 = 0x53' />
							<exp exp='TXbyte_9 = 0x4C' />
							<exp exp='TXbyte_10 = LRbyte_4' />
							<exp exp='TXbyte_11 = LRbyte_5' />
							<exp exp='TXbyte_12 = LRbyte_6' />
							<exp exp='TXbyte_13 = LRbyte_7' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='2408448' cmdcolor_sec='6618980' component='eeprom1' macro='Write' >
							<argument exp='0x00' />
							<argument exp='LRbyte_4' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='2408448' cmdcolor_sec='6618980' component='eeprom1' macro='Write' >
							<argument exp='0x01' />
							<argument exp='LRbyte_5' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='2408448' cmdcolor_sec='6618980' component='eeprom1' macro='Write' >
							<argument exp='0x02' />
							<argument exp='LRbyte_6' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='2408448' cmdcolor_sec='6618980' component='eeprom1' macro='Write' >
							<argument exp='0x03' />
							<argument exp='LRbyte_7' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='1' type='2' />
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='PAIR_PAYLOAD' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='100' type='1' />
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='TX_MODE' />
					</flowline>
				</macro>
				<macro >
					<flowline name='PACK_TYP' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='OPCODE = 0x8A' />
							<exp exp='LRbyte_1 = 0x01' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='output' title='LoRa CS Low' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048577' mask='16' exp='0' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='5' type='0' />
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='OPCODE' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='LRbyte_1' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='5' type='0' />
						<command class_type='output' title='LoRa CS High' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048577' mask='16' exp='1' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='AT_INIT' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='Enable register access configuration.
Write 0x55AA to 
Register 0x7F
' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0x7F' />
							<exp exp='ATMOSI_H = 0x55' />
							<exp exp='ATMOSI_L = 0xAA' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='SPI_WRITE' />
						<command class_type='comment' title='' comment='Enable Metering.
Write 0x0F to 
Register 0x00.
' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0x00' />
							<exp exp='ATMOSI_H = 0x00' />
							<exp exp='ATMOSI_L = 0x0F' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='SPI_WRITE' />
						<command class_type='comment' title='' comment='Configure MMode1 Register (0x34)' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='comment' title='' comment='Write PGA Gain: 
For 4X = 0x2A2A
For 2X = 0x1515
For 1X = 0x0000' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0x34' />
							<exp exp='ATMOSI_H = 0x2A' />
							<exp exp='ATMOSI_L = 0x2A' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='SPI_WRITE' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Clear' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='TX_TIMEOUT' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='Time Out:
1.5sec = 0x01, 0x77, 0x00
2sec = 0x01, 0xF4, 0x00' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='OPCODE = 0x83' />
							<exp exp='LRbyte_1 = 0x01' />
							<exp exp='LRbyte_2 = 0xF4' />
							<exp exp='LRbyte_3 = 0x00' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='output' title='LoRa CS Low' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048577' mask='16' exp='0' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='5' type='0' />
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='OPCODE' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='LRbyte_1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='LRbyte_2' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='LRbyte_3' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='5' type='0' />
						<command class_type='output' title='LoRa CS High' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048577' mask='16' exp='1' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='CLEAR_FLAGS' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='Clear IRQ Flags
Byte 0. opcode = 0x02
Byte 1. = 0xFF
Byte 2. =0xFF' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='OPCODE = 0x02' />
							<exp exp='LRbyte_1 = 0xFF' />
							<exp exp='LRbyte_2 = 0xFF' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='output' title='LoRa CS Low' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048577' mask='16' exp='0' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='5' type='0' />
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='OPCODE' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='LRbyte_1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='LRbyte_2' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='5' type='0' />
						<command class_type='output' title='LoRa CS High' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048577' mask='16' exp='1' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='IGAIN' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='L1, L2, L3, Current
Gain Callibration' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='output' title='OFF LINK LED' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048579' mask='16' exp='1' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Clear' />
						<command class_type='comment' title='' comment='Read IrmsA 0xDD' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xDD' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='IrmsA = ATdata_RX' />
						</command>
						<command class_type='comment' title='' comment='Print IrmsA
received word' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintFormattedNumber' >
							<argument exp='IrmsA' />
							<argument exp='1' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Read IrmsALSB 0xED' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xED' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='IrmsALSB = ATdata_RX' />
						</command>
						<command class_type='comment' title='' comment='Print IrmsALSB
received word' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='7' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintFormattedNumber' >
							<argument exp='IrmsALSB' />
							<argument exp='1' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Calculate and print
Phase A RMS current' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Calculation' cmdcolor='65535' cmdcolor_sec='6619135' cmdAuto_color='1' cmdcustom_color='1' >
							<exp exp='IaFLP = (IrmsA * 0.001) + (IrmsALSB * 0.001 / 65536)' />
							<exp exp='IaSTR = FloatToString$ (IaFLP,3)' />
							<exp exp='' />
						</command>
						<command class_type='comment' title='' comment='Print IaSTR' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='15' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintString' >
							<argument exp='IaSTR' />
						</command>
						<command class_type='decision' title='IaRMS &gt; 100mA' cmdcolor='3568629' cmdcolor_sec='3568629' exp='IaFLP &gt; 0.1' swap='0' >
							<flowline >
								<command class_type='output' title='CT1 LED On' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048579' mask='32' exp='0' />
							</flowline>
							<flowline >
								<command class_type='output' title='CT1 LED Off' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048579' mask='32' exp='1' />
							</flowline>
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Read IrmsB 0xDE' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xDE' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='IrmsB = ATdata_RX' />
						</command>
						<command class_type='comment' title='' comment='Print IrmsB
received word' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintFormattedNumber' >
							<argument exp='IrmsB' />
							<argument exp='1' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Read IrmsBLSB 0xEE' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xEE' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='IrmsBLSB = ATdata_RX' />
						</command>
						<command class_type='comment' title='' comment='Print IrmsBLSB
received word' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='7' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintFormattedNumber' >
							<argument exp='IrmsBLSB' />
							<argument exp='1' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Calculate and print
I_Lb actual RMS current' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Calculation' cmdcolor='65535' cmdcolor_sec='6619135' cmdAuto_color='1' cmdcustom_color='1' >
							<exp exp='IbFLP = (IrmsB * 0.001) + (IrmsBLSB * 0.001 / 65536)' />
							<exp exp='IbSTR = FloatToString$ (IbFLP,3)' />
							<exp exp='' />
						</command>
						<command class_type='comment' title='' comment='Print IbSTR' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='15' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintString' >
							<argument exp='IbSTR' />
						</command>
						<command class_type='decision' title='IbRMS &gt; 100mA' cmdcolor='3568629' cmdcolor_sec='3568629' exp='IbFLP &gt; 0.1' swap='0' >
							<flowline >
								<command class_type='output' title='CT2 LED On' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048579' mask='64' exp='0' />
							</flowline>
							<flowline >
								<command class_type='output' title='CT2 LED Off' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048579' mask='64' exp='1' />
							</flowline>
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Read IrmsC 0xDF' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xDF' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='IrmsC = ATdata_RX' />
						</command>
						<command class_type='comment' title='' comment='Print IrmsC
received word' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='0' />
							<argument exp='2' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintFormattedNumber' >
							<argument exp='IrmsC' />
							<argument exp='1' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Read IrmsCLSB 0xEF' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xEF' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='IrmsCLSB = ATdata_RX' />
						</command>
						<command class_type='comment' title='' comment='Print IrmsCLSB
received word' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='7' />
							<argument exp='2' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintFormattedNumber' >
							<argument exp='IrmsCLSB' />
							<argument exp='1' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Calculate and print
I_Lc actual RMS current' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Calculation' cmdcolor='65535' cmdcolor_sec='6619135' cmdAuto_color='1' cmdcustom_color='1' >
							<exp exp='IcFLP = (IrmsC * 0.001) + (IrmsCLSB * 0.001 / 65536)' />
							<exp exp='IcSTR = FloatToString$ (IcFLP,3)' />
							<exp exp='' />
						</command>
						<command class_type='comment' title='' comment='Print IcSTR' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='15' />
							<argument exp='2' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintString' >
							<argument exp='IcSTR' />
						</command>
						<command class_type='decision' title='IcRMS &gt; 100mA' cmdcolor='3568629' cmdcolor_sec='3568629' exp='IcFLP &gt; 0.1' swap='0' >
							<flowline >
								<command class_type='output' title='CT3 LED On' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048579' mask='128' exp='0' />
							</flowline>
							<flowline >
								<command class_type='output' title='CT3 LED Off' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048579' mask='128' exp='1' />
							</flowline>
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Write Current 
Gain Registers' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='comment' title='' comment='Write IgainA 0x62
32355d = 0x7E63' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0x62' />
							<exp exp='ATMOSI_H = 0x7F' />
							<exp exp='ATMOSI_L = 0xFA' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='SPI_WRITE' />
						<command class_type='comment' title='' comment='Write IgainB 0x66
32351d = 0x7E5F' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0x66' />
							<exp exp='ATMOSI_H = 0x7E' />
							<exp exp='ATMOSI_L = 0x27' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='SPI_WRITE' />
						<command class_type='comment' title='' comment='Write IgainC 0x6A
32668d = 0x7F9C' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0x6A' />
							<exp exp='ATMOSI_H = 0x85' />
							<exp exp='ATMOSI_L = 0x06' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='SPI_WRITE' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='200' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='IRQ_STATUS' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='Read IRQ Status Register
Byte 0. opcode = 0x12' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='OPCODE = 0x12' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='output' title='LoRa CS Low' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048577' mask='16' exp='0' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='5' type='0' />
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='OPCODE' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<return exp='LR_IRQ_0' />
							<argument exp='NOP' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<return exp='LR_IRQ_1' />
							<argument exp='NOP' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<return exp='LR_IRQ_2' />
							<argument exp='NOP' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<return exp='LR_IRQ_3' />
							<argument exp='NOP' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='5' type='0' />
						<command class_type='output' title='LoRa CS High' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048577' mask='16' exp='1' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Test if TX Timeout is asserted' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='TXtimeout = LR_IRQ_1 AND 0x02' />
						</command>
						<command class_type='comment' title='' comment='Test if TX Done is asserted' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='TXdone = LR_IRQ_2 AND 0x01' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='LR_INIT' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='output' title='LoRa CS High' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048577' mask='16' exp='1' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Select STBY config mode.
Byte 0. opcode = 0x80
Byte 1. STBY_XOSC = 0x01' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='STBY' />
						<command class_type='comment' title='' comment='Set Packet Type.
Byte 0. opcode = 0x8A
Byte 1. LoRa = 0x01
' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='PACK_TYP' />
						<command class_type='comment' title='' comment='Set RF Frequency' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='FREQ' />
						<command class_type='comment' title='' comment='Set PA Configuration for +20dBm.
Byte 0. opcode = 0x95
Byte 1. pa duty cycle = 0x03
Byte 2. hpMax = 0x05
Byte 3. deviceSel SX1262 = 0x00
Byte 4. paLut allways = 0x01
' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='PA_CONFIG' />
						<command class_type='comment' title='' comment='Set TX Parameters.
Byte 0. opcode = 0x8E
Byte 1. power +20dBm = 0x14
Byte 2. ramp time 40us = 0x02' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='TX_PARAM' />
						<command class_type='comment' title='' comment='Set Buffer Base Address.
Byte 0. opcode = 0x8F
Byte 1. TX base address = 0x00
Byte 2. RX base address = 0x00' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='FIFO_BAS_ADDR' />
						<command class_type='comment' title='' comment='Set Modulation Parameters.
Byte 0. opcode = 0x8B
Byte 1. SF 11 = 0x0B
Byte 2. BW 125KHz = 0x04
Byte 3. CR 4/8 = 0x04
Byte 4. LDROpt enable = 0x01  
  ' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='MOD_PARAM' />
						<command class_type='comment' title='' comment='Set Packet Parameters.
Byte 0. opcode = 0x8C
Byte 1. preamble length H = 0x00
Byte 2. preamble length L = 0x08
Byte 3. explicit type = 0x00
Byte 4. payload length 40 bytes = 0x28
Byte 5. CRC enable = 0x01
Byte 6. IQ standard = 0x00 
' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='PACK_PARAM' />
						<command class_type='comment' title='' comment='Configure DIO1, DIO2
and IRQ Parameters.
Byte 0. opcode = 0x08
Byte 1. Unmask TX Timeout IRQ = 0x02
Byte 2. Unmask TX Done IRQ = 0x01
Byte 3. Map TXdone to DIO1 = 0x00
Byte 4. Map TXdone to DIO1 = 0x01
Byte 5. Map TXtimeout to DIO2 = 0x02
Byte 6. Map TXtimeout to DIO2 = 0x00
  ' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='DIO_IRQ_PARAM' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='PA_CONFIG' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='OPCODE = 0x95' />
							<exp exp='LRbyte_1 = 0x03' />
							<exp exp='LRbyte_2 = 0x05' />
							<exp exp='LRbyte_3 = 0x00' />
							<exp exp='LRbyte_4 = 0x01' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='output' title='LoRa CS Low' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048577' mask='16' exp='0' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='5' type='0' />
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='OPCODE' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='LRbyte_1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='LRbyte_2' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='LRbyte_3' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='LRbyte_4' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='5' type='0' />
						<command class_type='output' title='LoRa CS High' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048577' mask='16' exp='1' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='DIO_IRQ_PARAM' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' />
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='OPCODE = 0x08' />
							<exp exp='LRbyte_1 = 0x02' />
							<exp exp='LRbyte_2 = 0x01' />
							<exp exp='LRbyte_3 = 0x00' />
							<exp exp='LRbyte_4 = 0x01' />
							<exp exp='LRbyte_5 = 0X02' />
							<exp exp='LRbyte_6 = 0X00' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='output' title='LoRa CS Low' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048577' mask='16' exp='0' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='5' type='0' />
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='OPCODE' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='LRbyte_1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='LRbyte_2' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='LRbyte_3' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='LRbyte_4' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='LRbyte_5' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi2' macro='Master_Byte' >
							<argument exp='LRbyte_6' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='5' type='0' />
						<command class_type='output' title='LoRa CS High' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048577' mask='16' exp='1' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='native' title='C Code' ccode='/*
  New oscillator is INTOSC = 8MHz
  For 1MHz OSCFRQ = 0x00
  For 2MHz        = 0x01
  For 4MHz        = 0x02
  For 8MHz        = 0x03
  For 12MHz       = 0x04
  For 16MHz       = 0x05
  For 32MHz       = 0x06 
*/
OSCCON1=0x60;
OSCFRQ=0x03;' cmdcolor='3389439' cmdcolor_sec='3389439' language='C' />
						<command class_type='native' title='It is connected the pairing switch' ccode='/*
Enable RA1 pull-up
*/
WPUA = 0x02;' cmdcolor='3389439' cmdcolor_sec='3389439' language='C' />
						<command class_type='output' title='Power LED Off' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048579' mask='8' exp='1' />
						<command class_type='output' title='Link LED Off' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048579' mask='16' exp='1' />
						<command class_type='output' title='CT1 LED Off' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048579' mask='32' exp='1' />
						<command class_type='output' title='CT2 LED Off' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048579' mask='64' exp='1' />
						<command class_type='output' title='CT3 LED Off' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048579' mask='128' exp='1' />
						<command class_type='output' title='RX LED Off' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048576' mask='8' exp='1' />
						<command class_type='output' title='TX LED Off' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048576' mask='16' exp='1' />
						<command class_type='output' title='AT CS High' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048576' mask='32' exp='1' />
						<command class_type='output' title='LR CS High' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048577' mask='16' exp='1' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='100' type='1' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Start' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Clear' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='100' type='1' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintString' >
							<argument exp='&quot;LoRa SX1262 TX&quot;' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='100' type='1' />
						<command class_type='call' title='Call Component Macro' cmdcolor='192' cmdcolor_sec='6579455' cmdAuto_color='1' cmdcustom_color='1' component='cal_spi1' macro='Master_Init' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1975743' cmdcolor_sec='1975743' cmdcustom_color='1' component='cal_spi2' macro='Master_Init' />
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='1' type='2' />
						<command class_type='output' title='Power LED On' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048579' mask='8' exp='0' />
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='AT_INIT' />
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='VGAIN' />
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='IGAIN' />
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='PGAIN' />
						<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='LR_INIT' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Clear' />
						<command class_type='input' title='GET BUSY STATE' cmdcolor='3610239' cmdcolor_sec='3610239' mode='1' port='1048576' mask='4' exp='BUSY' />
						<command class_type='interrupt' title='Interrupt' cmdcolor='3610239' cmdcolor_sec='3610239' enable='1' name='IOC0' call='PAIRING' >
							<settings timer='0' prescale='-1' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='AgAA----------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='AgAA----------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
							</settings>
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='100' type='1' />
						<command class_type='loop' title='Loop' cmdcolor='3568629' cmdcolor_sec='3568629' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='VOLT' />
								<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
								<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='AMPERE' />
								<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
								<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='WATT' />
								<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
								<command class_type='comment' title='' comment='Send Payload to Buffer.
Byte 0. opcode = 0x0E
Byte 1. offset = 0x00' textarea='36,-6,36,-6' cmdcolor='1975743' cmdcolor_sec='1975743' />
								<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='PAYLOAD' />
								<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='400' type='1' />
								<command class_type='call' title='Call Macro' cmdcolor='16711935' cmdcolor_sec='16737535' cmdAuto_color='1' cmdcustom_color='1' macro='TX_MODE' />
								<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='AMPERE' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='Read IrmsA 0xDD' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xDD' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='2408448' cmdcolor_sec='6618980' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='12583040' cmdcolor_sec='16737508' cmdAuto_color='1' cmdcustom_color='1' >
							<exp exp='TXbyte_16 = ATMISO_H' />
							<exp exp='TXbyte_17 = ATMISO_L' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='IrmsA = ATdata_RX' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Read IrmsALSB 0xED' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xED' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='2408448' cmdcolor_sec='6618980' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='12583040' cmdcolor_sec='16737508' cmdAuto_color='1' cmdcustom_color='1' >
							<exp exp='TXbyte_18 = ATMISO_H' />
							<exp exp='TXbyte_19 = ATMISO_L' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='IrmsALSB = ATdata_RX' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Calculate and print
Phase A RMS current' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Calculation' cmdcolor='65535' cmdcolor_sec='6619135' cmdAuto_color='1' cmdcustom_color='1' >
							<exp exp='IaFLP = (IrmsA * 0.001) + (IrmsALSB * 0.001 / 65536)' />
							<exp exp='IaSTR = FloatToString$ (IaFLP,3)' />
							<exp exp='' />
						</command>
						<command class_type='comment' title='' comment='Print IaSTR' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintString' >
							<argument exp='IaSTR' />
						</command>
						<command class_type='decision' title='IaRMS &gt; 100mA' cmdcolor='3568629' cmdcolor_sec='3568629' exp='IaFLP &gt; 0.1' swap='0' >
							<flowline >
								<command class_type='output' title='CT1 LED On' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048579' mask='32' exp='0' />
							</flowline>
							<flowline >
								<command class_type='output' title='CT1 LED Off' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048579' mask='32' exp='1' />
							</flowline>
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Read IrmsB 0xDE' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xDE' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='2408448' cmdcolor_sec='6618980' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='12583040' cmdcolor_sec='16737508' cmdAuto_color='1' cmdcustom_color='1' >
							<exp exp='TXbyte_20 = ATMISO_H' />
							<exp exp='TXbyte_21 = ATMISO_L' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='IrmsB = ATdata_RX' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Read IrmsBLSB 0xEE' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xEE' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='2408448' cmdcolor_sec='6618980' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='12583040' cmdcolor_sec='16737508' cmdAuto_color='1' cmdcustom_color='1' >
							<exp exp='TXbyte_22 = ATMISO_H' />
							<exp exp='TXbyte_23 = ATMISO_L' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='IrmsBLSB = ATdata_RX' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Calculate and print
I_Lb actual RMS current' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Calculation' cmdcolor='65535' cmdcolor_sec='6619135' cmdAuto_color='1' cmdcustom_color='1' >
							<exp exp='IbFLP = (IrmsB * 0.001) + (IrmsBLSB * 0.001 / 65536)' />
							<exp exp='IbSTR = FloatToString$ (IbFLP,3)' />
							<exp exp='' />
						</command>
						<command class_type='comment' title='' comment='Print IbSTR' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='7' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintString' >
							<argument exp='IbSTR' />
						</command>
						<command class_type='decision' title='IbRMS &gt; 100mA' cmdcolor='3568629' cmdcolor_sec='3568629' exp='IbFLP &gt; 0.1' swap='0' >
							<flowline >
								<command class_type='output' title='CT2 LED On' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048579' mask='64' exp='0' />
							</flowline>
							<flowline >
								<command class_type='output' title='CT2 LED Off' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048579' mask='64' exp='1' />
							</flowline>
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Read IrmsC 0xDF' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xDF' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='2408448' cmdcolor_sec='6618980' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='12583040' cmdcolor_sec='16737508' cmdAuto_color='1' cmdcustom_color='1' >
							<exp exp='TXbyte_24 = ATMISO_H' />
							<exp exp='TXbyte_25 = ATMISO_L' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='IrmsC = ATdata_RX' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Read IrmsCLSB 0xEF' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Set Address MSB for Read' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='ATAddr_H = 0x00' />
							<exp exp='ATAddr_L = 0xEF' />
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='2408448' cmdcolor_sec='6618980' macro='SPI_READ' />
						<command class_type='calculation' title='Calculation' cmdcolor='12583040' cmdcolor_sec='16737508' cmdAuto_color='1' cmdcustom_color='1' >
							<exp exp='TXbyte_26 = ATMISO_H' />
							<exp exp='TXbyte_27 = ATMISO_L' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='7895044' cmdcolor_sec='7895044' >
							<exp exp='IrmsCLSB = ATdata_RX' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
						<command class_type='comment' title='' comment='Calculate and print
I_Lc actual RMS current' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='calculation' title='Calculation' cmdcolor='65535' cmdcolor_sec='6619135' cmdAuto_color='1' cmdcustom_color='1' >
							<exp exp='IcFLP = (IrmsC * 0.001) + (IrmsCLSB * 0.001 / 65536)' />
							<exp exp='IcSTR = FloatToString$ (IcFLP,3)' />
							<exp exp='' />
						</command>
						<command class_type='comment' title='' comment='Print IcSTR' textarea='12,0,12,0' cmdcolor='1975743' cmdcolor_sec='1975743' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='Cursor' >
							<argument exp='15' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16776960' cmdcolor_sec='16777060' cmdAuto_color='1' cmdcustom_color='1' component='lcd_4x20' macro='PrintString' >
							<argument exp='IcSTR' />
						</command>
						<command class_type='decision' title='IcRMS &gt; 100mA' cmdcolor='3568629' cmdcolor_sec='3568629' exp='IcFLP &gt; 0.1' swap='0' >
							<flowline >
								<command class_type='output' title='CT3 LED On' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048579' mask='128' exp='0' />
							</flowline>
							<flowline >
								<command class_type='output' title='CT3 LED Off' cmdcolor='7895044' cmdcolor_sec='7895044' mode='1' port='1048579' mask='128' exp='1' />
							</flowline>
						</command>
						<command class_type='delay' title='Delay' cmdcolor='16729600' cmdcolor_sec='7895044' exp='10' type='1' />
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='c67171df-0ad6-4b11-8361-cfe14b072847' vmin='2' vmaj='1' codename='cal_spi1' x='-20' y='60' 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='ENABLED' data='1' />
					<value target='REF' data='1' />
					<value target='CHANNEL' data='001' />
					<value target='MOSI' data='$PORTC.4' />
					<value target='MOSIPins' data='004' />
					<value target='MISO' data='$PORTC.5' />
					<value target='MISOPins' data='021' />
					<value target='CLK' data='$PORTC.3' />
					<value target='CLKPins' data='003' />
					<value target='SS' data='' />
					<value target='PR_SCALE' data='016' />
					<value target='BMODE' data='2' />
					<value target='CKP' data='000' />
					<value target='CKE' data='001' />
					<value target='SMP' data='000' />
					<value target='MOSI_PORT' data='$PORTC.4' />
					<value target='MOSI_TRIS' data='$PORTC.4' />
					<value target='MOSI_PIN' data='4' />
					<value target='MISO_PORT' data='$PORTC.5' />
					<value target='MISO_TRIS' data='$PORTC.5' />
					<value target='MISO_PIN' data='5' />
					<value target='SCK_PORT' data='$PORTC.3' />
					<value target='SCK_TRIS' data='$PORTC.3' />
					<value target='SCK_PIN' data='3' />
					<value target='SS_PORT' data='' />
					<value target='SS_TRIS' data='' />
					<value target='SS_PIN' data='0' />
					<value target='Remappable' data='1' />
					<value target='MOSIReg' data='004' />
					<value target='CLKREG' data='003' />
					<value target='MOSIRPNUM' data='21' />
					<value target='MOSIBank' data='b' />
					<value target='MOSIBank2' data='c' />
					<value target='CLKRPNUM' data='20' />
					<value target='CLKBank' data='b' />
					<value target='MISORPREG' data='SSP1DATPPS' />
					<value target='MISOBank' data='b' />
					<value target='CS_PORT' data='' />
					<value target='ScopeTraces' data='0' />
					<value target='ConsoleData' data='0' />
					<value target='SPIName' data='' />
					<value target='MISOReg' data='000' />
					<value target='SPIClock' data='' />
					<value target='MISOBank2' data='c' />
					<value target='CLKBank2' data='c' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='a2b40602-5421-4e2f-ba82-96db1be51d69' vmin='1' vmaj='1' codename='lcd_4x20' x='0' y='100' z='10.725' 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_0' data='$PORTC.2' />
					<value target='Pin_Data_1' data='$PORTA.6' />
					<value target='Pin_Data_2' data='$PORTC.1' />
					<value target='Pin_Data_3' data='$PORTC.0' />
					<value target='Pin_RS' data='$PORTA.7' />
					<value target='Pin_E' data='$PORTD.1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='c67171df-0ad6-4b11-8361-cfe14b072847' vmin='2' vmaj='1' codename='cal_spi2' x='20' y='60' 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='ENABLED' data='1' />
					<value target='REF' data='1' />
					<value target='CHANNEL' data='002' />
					<value target='MOSI' data='$PORTB.2' />
					<value target='MOSIPins' data='010' />
					<value target='MISO' data='$PORTB.3' />
					<value target='MISOPins' data='011' />
					<value target='CLK' data='$PORTB.1' />
					<value target='CLKPins' data='009' />
					<value target='SS' data='' />
					<value target='PR_SCALE' data='016' />
					<value target='BMODE' data='2' />
					<value target='CKP' data='000' />
					<value target='CKE' data='001' />
					<value target='SMP' data='000' />
					<value target='MOSI_PORT' data='$PORTB.2' />
					<value target='MOSI_TRIS' data='$PORTB.2' />
					<value target='MOSI_PIN' data='2' />
					<value target='MISO_PORT' data='$PORTB.3' />
					<value target='MISO_TRIS' data='$PORTB.3' />
					<value target='MISO_PIN' data='3' />
					<value target='SCK_PORT' data='$PORTB.1' />
					<value target='SCK_TRIS' data='$PORTB.1' />
					<value target='SCK_PIN' data='1' />
					<value target='SS_PORT' data='' />
					<value target='SS_TRIS' data='' />
					<value target='SS_PIN' data='0' />
					<value target='Remappable' data='1' />
					<value target='MOSIReg' data='010' />
					<value target='CLKREG' data='009' />
					<value target='MOSIRPNUM' data='23' />
					<value target='MOSIBank' data='b' />
					<value target='MOSIBank2' data='d' />
					<value target='CLKRPNUM' data='22' />
					<value target='CLKBank' data='b' />
					<value target='MISORPREG' data='SSP2DATPPS' />
					<value target='MISOBank' data='b' />
					<value target='CS_PORT' data='' />
					<value target='ScopeTraces' data='0' />
					<value target='ConsoleData' data='0' />
					<value target='SPIName' data='' />
					<value target='MISOReg' data='000' />
					<value target='SPIClock' data='' />
					<value target='MISOBank2' data='d' />
					<value target='CLKBank2' data='d' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='dcbf571f-a6fa-402d-bdd4-be00cca4070f' vmin='1' vmaj='1' codename='eeprom1' x='0' y='30' z='10' 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='EESize' data='256 byte' />
					<value target='EEbitdepth' data='8 bit' />
					<value target='InitialValues' data='0' />
					<value target='InitValsParsed' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='2105930' img='' style='0' />
		<camera xe='3.972' ye='68.3101' ze='174.045' xt='3.972' yt='68.3101' 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' />
		<camerakey0 xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey1 xe='-3.67394e-14' ye='0' ze='-300' xt='0' yt='0' zt='0' xquat='0' yquat='1' zquat='0' wquat='6.12323e-17' />
		<camerakey2 xe='0' ye='-300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.707107' yquat='0' zquat='0' wquat='0.707107' />
		<camerakey3 xe='-3.67394e-14' ye='300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-4.32978e-17' yquat='0.707107' zquat='0.707107' wquat='4.32978e-17' />
		<camerakey4 xe='-300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='0.5' zquat='0.5' wquat='0.5' />
		<camerakey5 xe='300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='-0.5' zquat='-0.5' wquat='0.5' />
		<camerakey6 xe='-173.205' ye='-173.205' ze='173.205' xt='0' yt='0' zt='0' xquat='-0.424708' yquat='0.17592' zquat='0.339851' wquat='0.820473' />
	</panel3d>
	<layout >
		<view type='0' name='PACK_PARAM' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAIgYAAAAEAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='LR_INIT' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAIgYAAAAEAAA' zoom='75' scrollx='0' scrolly='702' flags='0' />
		<view type='0' name='PAYLOAD' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAIgYAAAAEAAA' zoom='75' scrollx='0' scrolly='648' flags='0' />
		<view type='0' name='VOLT' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAIgYAAAAEAAA' zoom='75' scrollx='0' scrolly='2626' flags='0' />
		<view type='0' name='WATT' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAIgYAAAAEAAA' zoom='75' scrollx='0' scrolly='2545' flags='0' />
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAIgYAAAAEAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='PAIR_PAYLOAD' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAIgYAAAAEAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='PAIRING' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAIgYAAAAEAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='TX_MODE' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAIgYAAAAEAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='DIO_IRQ_PARAM' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAIgYAAAAEAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='PGAIN' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAIgYAAAAEAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='IGAIN' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAIgYAAAAEAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='VGAIN' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAIgYAAAAEAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='AT_INIT' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAIgYAAAAEAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SPI_WRITE' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAIgYAAAAEAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='TX_TIMEOUT' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAIgYAAAAEAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='IRQ_STATUS' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAIgYAAAAEAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='AMPERE' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAIgYAAAAEAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='CLEAR_FLAGS' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAIgYAAAAEAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='PACK_TYP' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAIgYAAAAEAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='STBY' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAIgYAAAAEAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='TX_PARAM' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAIgYAAAAEAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='FIFO_BAS_ADDR' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAIgYAAAAEAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='MOD_PARAM' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAIgYAAAAEAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SPI_READ' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAIgYAAAAEAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='PA_CONFIG' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAIgYAAAAEAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='FREQ' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAIgYAAAAEAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
