<root>
<document schema='101' license='1,sladeoutlaw84,2KMYUC' title='' description='' guid='' target='AVR.ATMEGA.Arduino Uno PDIP' >
	<config data='' clkspd='16000000' 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='1000' />
			<data name='firmware' value='0000000000000000' />
			<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='monitor' value='1' />
			<data name='ictloop' value='1' />
			<data name='ictrate' value='1000' />
			<data name='ictmask' value='-1' />
		</dll_dbg_icd>
		<dll_dbg_ict enabled='0' >
			<data name='speed' value='1000' />
			<data name='firmware' value='0000000000000000' />
			<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='userpins' value='0' />
		</dll_dbg_ict>
		<dll_models enabled='1' />
		<dll_upgrader enabled='1' />
		<dll_webhelp enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug >
		<watch expr='RTC_R' />
		<watch expr='RTC_W' />
	</debug>
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='' vmin='0' vmaj='1' visiblename='' description='' category='' author='' sysinfo='0' keywords='' dynamic='0' iconpath='' />
		<component class_type='root' codename='panel' x='0' y='0' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' >
			<resources />
			<properties />
			<values />
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='MONTH' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='reg_g' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='reg_f' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='reg_e' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='RTC_R' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='reg_d' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='HOUR' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='reg_c' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='reg_b' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ack' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='reg_a' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='RTC' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='LDAY' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='8' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='progButton' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='DATE' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='var2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='WDAY' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='8' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='var1' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='RTNTAB' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='8' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='DAY' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='SEC' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='YEAR' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='singleShot' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='MIN' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='top' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TOP2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='BP2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='BP1' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='BP0' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='RTC_W' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='Read_Time' description='lecture de HR / MIN / SEC' >
						<command class_type='call' title='' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='Start' />
						<command class_type='call' title='ecrire' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='RTC_W' />
						</command>
						<command class_type='call' title='reg0' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='restart' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='Restart' />
						<command class_type='call' title='lecture' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='RTC_R' />
						</command>
						<command class_type='call' title='second' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='ReceiveByte' >
							<return exp='reg_a' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='minut' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='ReceiveByte' >
							<return exp='reg_b' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='hour' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='ReceiveByte' >
							<return exp='reg_c' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='Stop' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Disp_Date' description='affiche la date' >
						<command class_type='call' title='2eme ligne' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__lcddisplay0' macro='Cursor' >
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' exp='DAY == 1' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__lcddisplay0' macro='PrintString' >
									<argument exp='&quot;MONDAY&quot;' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' exp='DAY == 2' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__lcddisplay0' macro='PrintString' >
									<argument exp='&quot;TUESDAY&quot;' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' exp='DAY == 3' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__lcddisplay0' macro='PrintString' >
									<argument exp='&quot;WEDNESDAY&quot;' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' exp='DAY == 4' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__lcddisplay0' macro='PrintString' >
									<argument exp='&quot;THURSDAY&quot;' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' exp='DAY == 5' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__lcddisplay0' macro='PrintString' >
									<argument exp='&quot;FRIDAY&quot;' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' exp='DAY == 6' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__lcddisplay0' macro='PrintString' >
									<argument exp='&quot;SATURDAY&quot;' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' exp='DAY == 7' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__lcddisplay0' macro='PrintString' >
									<argument exp='&quot;SUNDAY&quot;' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='day' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='1' hide='0' customize='0' component='v5__lcddisplay0' macro='PrintASCII' >
							<argument exp='LDAY[DAY]' />
						</command>
						<command class_type='call' title='' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__lcddisplay0' macro='PrintString' >
							<argument exp='&quot;  &quot;' />
						</command>
						<command class_type='decision' title='N &lt; 10' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='1' hide='0' customize='0' exp='DATE &lt; 10' swap='0' >
							<flowline >
								<command class_type='call' title='add 0' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__lcddisplay0' macro='PrintNumber' >
									<argument exp='0' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='month' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__lcddisplay0' macro='PrintNumber' >
							<argument exp='MONTH' />
						</command>
						<command class_type='call' title='' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__lcddisplay0' macro='PrintString' >
							<argument exp='&quot;/&quot;' />
						</command>
						<command class_type='decision' title='N &lt; 10' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='1' hide='0' customize='0' exp='MONTH &lt; 10' swap='0' >
							<flowline >
								<command class_type='call' title='add 0' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__lcddisplay0' macro='PrintNumber' >
									<argument exp='0' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='date' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__lcddisplay0' macro='PrintNumber' >
							<argument exp='DATE' />
						</command>
						<command class_type='call' title='' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__lcddisplay0' macro='PrintString' >
							<argument exp='&quot;/&quot;' />
						</command>
						<command class_type='decision' title='N &lt; 10' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='1' hide='0' customize='0' exp='YEAR &lt; 10' swap='0' >
							<flowline >
								<command class_type='call' title='add 0' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__lcddisplay0' macro='PrintNumber' >
									<argument exp='0' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__lcddisplay0' macro='PrintNumber' >
							<argument exp='20' />
						</command>
						<command class_type='call' title='year' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__lcddisplay0' macro='PrintNumber' >
							<argument exp='YEAR' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Read_Date' description='lecture DATE/MONTH/YEAR' >
						<command class_type='call' title='' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='Start' />
						<command class_type='call' title='ecrire' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='RTC_W' />
						</command>
						<command class_type='call' title='reg3' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='3' />
						</command>
						<command class_type='call' title='restart' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='Restart' />
						<command class_type='call' title='lecture' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='RTC_R' />
						</command>
						<command class_type='call' title='day' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='ReceiveByte' >
							<return exp='DAY' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='date' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='ReceiveByte' >
							<return exp='reg_e' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='month' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='ReceiveByte' >
							<return exp='reg_f' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='year' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='ReceiveByte' >
							<return exp='reg_g' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='Stop' />
					</flowline>
				</macro>
				<macro >
					<flowline name='setTime' description='used to program the time ' >
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='Start' />
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='RTC_W' />
						</command>
						<command class_type='call' title='set pointer' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='0x00' />
						</command>
						<command class_type='call' title='seconds' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='0x80' />
						</command>
						<command class_type='call' title='minutes' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='0x49' />
						</command>
						<command class_type='call' title='hour' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='0x51' />
						</command>
						<command class_type='call' title='day' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='0x02' />
						</command>
						<command class_type='call' title='date' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='0x15' />
						</command>
						<command class_type='call' title='month' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='0x10' />
						</command>
						<command class_type='call' title='year' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='0x13' />
						</command>
						<command class_type='call' title='set square wave on 1 hz' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='0x10' />
						</command>
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='Stop' />
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='Restart' />
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='RTC_W' />
						</command>
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='0x00' />
						</command>
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='0x00' />
						</command>
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='Stop' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Init' description='' >
						<command class_type='delay' title='' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' exp='300' type='1' />
						<command class_type='call' title='' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='Initialise' />
						<command class_type='calculation' title='def param' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' >
							<exp exp='RTC = 0x68' />
							<exp exp='RTC_R = (RTC &lt;&lt; 1) + 1' />
							<exp exp='RTC_W = (RTC &lt;&lt; 1) + 0' />
							<exp exp='' />
						</command>
						<command class_type='call' title='' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__lcddisplay0' macro='Start' />
						<command class_type='call' title='Call Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' macro='Print_Date' />
					</flowline>
				</macro>
				<macro >
					<flowline name='PrintTime' description='' >
						<command class_type='call' title='' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' macro='Read_Time' />
						<command class_type='calculation' title='' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' >
							<exp exp='var1 = reg_a AND 0x0F' />
							<exp exp='var2 = (reg_a &gt;&gt; 4) AND 0x07' />
							<exp exp='SEC = var1 + (var2 * 10)' />
							<exp exp='var1 = reg_b AND 0x0F' />
							<exp exp='var2 = (reg_b &gt;&gt; 4) AND 0x07' />
							<exp exp='MIN = var1 + (var2 * 10)' />
							<exp exp='var1 = reg_c AND 0x0F' />
							<exp exp='var2 = (reg_c &gt;&gt; 4) AND 0x01' />
							<exp exp='HOUR = var1 + (var2 * 10)' />
						</command>
						<command class_type='call' title='' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' macro='Disp_Time' />
					</flowline>
				</macro>
				<macro >
					<flowline name='RST_Sec' description='remet les secondes à 0 ' >
						<command class_type='call' title='' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='Start' />
						<command class_type='call' title='ecrire' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='RTC_W' />
						</command>
						<command class_type='call' title='reg0' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='rst reg_sec and  CH' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='0x00' />
						</command>
						<command class_type='call' title='' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='Stop' />
					</flowline>
				</macro>
				<macro >
					<flowline name='SQW' description='configure SWQ à 1 Hz
needs Pull UP' >
						<command class_type='call' title='' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='Start' />
						<command class_type='call' title='ecrire' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='RTC_W' />
						</command>
						<command class_type='call' title='reg7' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='7' />
						</command>
						<command class_type='call' title='1Hz' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='0x10' />
						</command>
						<command class_type='call' title='' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__i2c0' macro='Stop' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Print_Date' description='' >
						<command class_type='call' title='' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' macro='Read_Date' />
						<command class_type='calculation' title='' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' >
							<exp exp='var1 = reg_e AND 0x0F' />
							<exp exp='var2 = (reg_e &gt;&gt; 4) AND 0x03' />
							<exp exp='DATE = var1 + (var2 * 10)' />
							<exp exp='var1 = reg_f AND 0x0F' />
							<exp exp='var2 = (reg_f &gt;&gt; 4) AND 0x01' />
							<exp exp='MONTH = var1 + (var2 * 10)' />
							<exp exp='var1 = reg_g AND 0x0F' />
							<exp exp='var2 = (reg_g &gt;&gt; 4) AND 0x0F' />
							<exp exp='YEAR = var1 + (var2 * 10)' />
						</command>
						<command class_type='call' title='' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' macro='Disp_Date' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Disp_Time' description='affichage de l&apos;heure' >
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__lcddisplay0' macro='ClearLine' >
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__lcddisplay0' macro='PrintString' >
							<argument exp='&quot;      &quot;' />
						</command>
						<command class_type='call' title='hour' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__lcddisplay0' macro='PrintNumber' >
							<argument exp='HOUR' />
						</command>
						<command class_type='call' title='' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__lcddisplay0' macro='PrintString' >
							<argument exp='&quot;:&quot;' />
						</command>
						<command class_type='decision' title='N &lt; 10' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' exp='MIN &lt; 10' swap='0' >
							<flowline >
								<command class_type='call' title='add 0' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__lcddisplay0' macro='PrintNumber' >
									<argument exp='0' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='min' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__lcddisplay0' macro='PrintNumber' >
							<argument exp='MIN' />
						</command>
						<command class_type='call' title='' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__lcddisplay0' macro='PrintString' >
							<argument exp='&quot;:&quot;' />
						</command>
						<command class_type='decision' title='N &lt; 10' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' exp='SEC &lt; 10' swap='0' >
							<flowline >
								<command class_type='call' title='add 0' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__lcddisplay0' macro='PrintNumber' >
									<argument exp='0' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='sec' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' component='v5__lcddisplay0' macro='PrintNumber' >
							<argument exp='SEC' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='16F887 sur Matrix 3.3 à 19.6 MHz
Config = $2FF2' >
						<command class_type='comment' title='' comment='I2C Hardware sur RC3=SCLK et RC4=SDAT
sinon changer les Props de I2C' ccode='' textshow='1' textmode='0' textarea='12,0,12,0' break='0' mark='0' disable='0' hide='0' customize='0' />
						<command class_type='comment' title='' comment='Don&apos;t forget Pull Up (4.7k)
on clock and data lines' ccode='' textshow='1' textmode='0' textarea='12,0,12,0' break='0' mark='0' disable='0' hide='0' customize='0' />
						<command class_type='call' title='Appel d&apos;une Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' macro='Init' />
						<command class_type='call' title='' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' macro='SQW' />
						<command class_type='label' title='' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' labelid='0' labelname='A' />
						<command class_type='interrupt' title='Interrupt' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' enable='1' name='INT1' call='PrintTime' >
							<settings timer='0' prescale='-1' postscale='-1' rollover='-1' bitcount='-1' trigger='1' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='0' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
							</settings>
						</command>
						<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' exp='reg_c == 0x52' swap='0' >
							<flowline >
								<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' exp='singleShot == 0' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' >
											<exp exp='singleShot = 1' />
											<exp exp='' />
										</command>
										<command class_type='call' title='Call Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' macro='Print_Date' />
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' exp='reg_c == 0x62' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' >
											<exp exp='singleShot = 0' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='comment' title='' comment='Disable used for clock programming puroses
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv' ccode='' textshow='1' textmode='0' textarea='500,-200,500,-200' break='0' mark='0' disable='0' hide='0' customize='0' />
						<command class_type='input' title='Input' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='1' hide='0' customize='0' mode='1' port='1048579' mask='2' exp='progButton' />
						<command class_type='decision' title='Decision' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='1' hide='0' customize='0' exp='singleShot == 0 &amp;&amp; progButton == 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' >
									<exp exp='singleShot = 1' />
								</command>
								<command class_type='call' title='Call Macro' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' macro='setTime' />
							</flowline>
							<flowline />
						</command>
						<command class_type='comment' title='' comment='^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Disable used for clock programming puroses
' ccode='' textshow='1' textmode='0' textarea='500,200,500,200' break='0' mark='0' disable='0' hide='0' customize='0' />
						<command class_type='goto' title='' comment='' ccode='' textshow='1' textmode='0' textarea='36,0,36,0' break='0' mark='0' disable='0' hide='0' customize='0' labelid='0' labelname='A' />
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='24219805-113d-4b12-b6bd-e1b0b0c33981' vmin='1' vmaj='1' codename='v5__i2c0' x='0' y='0' z='0' xsz='72.5714' ysz='77.1429' zsz='1.14286' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' >
				<resources />
				<properties />
				<values >
					<value target='CHANNEL' data='' />
					<value target='BAUD_LIST' data='001' />
					<value target='SRC' data='0' />
					<value target='SMB' data='0' />
					<value target='BAUD' data='50000' />
					<value target='SDA' data='$PORTC.4' />
					<value target='SCL' data='$PORTC.5' />
					<value target='label' data='I2C Master' />
					<value target='Injector' data='000' />
					<value target='InjectorHandle' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='0953aac0-9c23-4c2f-9843-88954a4191ea' vmin='7' vmaj='1' codename='v5__lcddisplay0' x='-10.8571' y='65.9286' z='1.05195' xsz='100' ysz='31' zsz='1.14286' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' >
				<resources />
				<properties />
				<values >
					<value target='Pin_Data_0' data='$PORTB.0' />
					<value target='Pin_Data_1' data='$PORTB.1' />
					<value target='Pin_Data_2' data='$PORTB.2' />
					<value target='Pin_Data_3' data='$PORTB.3' />
					<value target='Pin_RS' data='$PORTB.4' />
					<value target='Pin_E' data='$PORTB.5' />
					<value target='Rows' data='002' />
					<value target='Columns' data='016' />
					<value target='BackgroundColor' data='49152' />
					<value target='LineColor' data='0' />
					<value target='TextColor' data='0' />
					<value target='Font' data='Arial' />
					<value target='CursorPosX' data='11' />
					<value target='CursorPosY' data='1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='9737364' img='' style='0' />
		<camera xe='0' ye='0' ze='1156.52' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel2d>
	<panel3d shadows='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='7360576' img='' style='0' size='25' />
		<camera xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel3d>
	<layout >
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA9AQAAI0CAAA' zoom='75' scrollx='0' scrolly='791' flags='0' />
		<view type='0' name='PrintTime' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA9AQAAI0CAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Disp_Time' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA9AQAAI0CAAA' zoom='75' scrollx='0' scrolly='382' flags='0' />
		<view type='0' name='Read_Date' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA9AQAAI0CAAA' zoom='75' scrollx='0' scrolly='179' flags='0' />
		<view type='0' name='setTime' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA9AQAAI0CAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Init' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA9AQAAI0CAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Print_Date' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA9AQAAI0CAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Disp_Date' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA9AQAAI0CAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='RST_Sec' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA9AQAAI0CAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Read_Time' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA9AQAAI0CAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='SQW' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA9AQAAI0CAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
