<root>
<document schema='101' license='1,Martin Whitlock,JQE1YE' title='' description='' target='PIC.16F.16F1937' >
	<config data='!0,fe2!10,1633%0,2%3,0%5,1%6,1%7,1%8,1%9,3%b,1%c,0%d,0%10,3%14,3%18,0%19,1%1a,1%1c,1%1d,0' clkspd='19660800' simspd='1' usewdt='0' constif='0' />
	<plugins >
		<dll_dbg_icd enabled='0' >
			<data name='debug' value='1' />
			<data name='userpins' value='0' />
			<data name='speed' value='9' />
			<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='2' />
			<data name='monitor' value='1' />
			<data name='ictloop' value='0' />
			<data name='ictrate' value='20000' />
			<data name='ictmask' value='0' />
			<data name='anlpres' value='255' />
			<data name='digmask1' value='-1' />
			<data name='digmask2' value='-1' />
		</dll_dbg_icd>
		<dll_models enabled='1' />
		<dll_upgrader enabled='1' />
		<dll_webhelp enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug >
		<watch expr='Day' />
		<watch expr='Ds1307Read' />
		<watch expr='Ds1307Write' />
		<watch expr='Hide' />
		<watch expr='Hours' />
		<watch expr='Input' />
		<watch expr='Minutes' />
		<watch expr='Month' />
		<watch expr='OK' />
		<watch expr='Seconds' />
		<watch expr='TimerTick' />
		<watch expr='Year' />
		<watch expr='ack' />
		<watch expr='CountManual' />
		<watch expr='Date' />
		<watch expr='Increment' />
		<watch expr='DayOfTheWeek' />
		<watch expr='Count' />
		<watch expr='InputCount' />
		<watch expr='Loop' />
	</debug>
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='8bd77526-735a-46c8-9342-53af998ea881' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='0' iconpath='' />
		<component class_type='root' codename='panel' x='0' y='0' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
			<resources />
			<properties />
			<values />
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='Month' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Ds1307Address' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Count' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CountManual' type='u8' description='' isconst='0' isinit='1' usrinit='1' setinit='1' />
				</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='Hours' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Hide' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CountComplete' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='InputCount' type='u8' 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='Date' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Temp' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Ds1307Write' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</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='Increment' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Minutes' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TimerTick' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</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='DaysString' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='21' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Input' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Seconds' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Ds1307Read' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Loop' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='OK' type='b1' description='' 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='DayOfTheWeek' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='3' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CommsError' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='TimerISR' description='' >
						<command class_type='decision' title='Decision' exp='Loop' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='TimerTick = 0' />
									<exp exp='Hide = 0' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='TimerTick = TimerTick + 1' />
								</command>
								<command class_type='decision' title='Decision' exp='TimerTick &gt;= 15' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='TimerTick = 0' />
											<exp exp='Hide = !Hide' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='ReadTime' description='' >
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='I2C_Master1' macro='Start' />
						<command class_type='call' title='Call Component Macro' component='I2C_Master1' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='Ds1307Write' />
						</command>
						<command class_type='call' title='Call Component Macro' component='I2C_Master1' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='0' />
						</command>
						<command class_type='decision' title='Decision' exp='ack' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='CommsError = 1' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='CommsError = 0' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='I2C_Master1' macro='Restart' />
						<command class_type='call' title='Call Component Macro' component='I2C_Master1' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='Ds1307Read' />
						</command>
						<command class_type='decision' title='Decision' exp='ack' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='CommsError = 1' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='CommsError = 0' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Call Component Macro' component='I2C_Master1' macro='ReceiveByte' >
							<return exp='Seconds' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' component='I2C_Master1' macro='ReceiveByte' >
							<return exp='Minutes' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' component='I2C_Master1' macro='ReceiveByte' >
							<return exp='Hours' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='' component='I2C_Master1' macro='Stop' />
						<command class_type='calculation' title='Convert BCD to Decimal' >
							<exp exp='Seconds = (Seconds &gt;&gt; 4) * 10 + (Seconds &amp; 15)' />
							<exp exp='Minutes = (Minutes &gt;&gt; 4) * 10 + (Minutes &amp; 15)' />
							<exp exp='Hours = (Hours &gt;&gt; 4) * 10 + (Hours &amp; 15)' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='DisplayTimeAndDate' description='' >
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='decision' title='Decision' exp='CommsError' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
									<argument exp='&quot; Comms Error!&quot;' />
								</command>
							</flowline>
							<flowline >
								<command class_type='decision' title='Decision' exp='Hours &lt; 10' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
											<argument exp='&quot;0&quot;' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintNumber' >
									<argument exp='Hours' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
									<argument exp='&quot;:&quot;' />
								</command>
								<command class_type='decision' title='Decision' exp='Minutes &lt; 10' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
											<argument exp='&quot;0&quot;' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintNumber' >
									<argument exp='Minutes' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
									<argument exp='&quot;:&quot;' />
								</command>
								<command class_type='decision' title='Decision' exp='Seconds &lt; 10' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
											<argument exp='&quot;0&quot;' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintNumber' >
									<argument exp='Seconds' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
									<argument exp='&quot;     &quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
									<argument exp='0' />
									<argument exp='1' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
									<argument exp='DayOfTheWeek' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
									<argument exp='&quot; &quot;' />
								</command>
								<command class_type='decision' title='Decision' exp='Date &lt; 10' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
											<argument exp='&quot;0&quot;' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintNumber' >
									<argument exp='Date' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
									<argument exp='&quot;/&quot;' />
								</command>
								<command class_type='decision' title='Decision' exp='Month &lt; 10' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
											<argument exp='&quot;0&quot;' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintNumber' >
									<argument exp='Month' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
									<argument exp='&quot;/&quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
									<argument exp='&quot;20&quot;' />
								</command>
								<command class_type='decision' title='Decision' exp='Year &lt; 10' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
											<argument exp='&quot;0&quot;' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintNumber' >
									<argument exp='Year' />
								</command>
								<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
									<argument exp='&quot;    &quot;' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Set_Time_Date' description='' >
						<command class_type='calculation' title='Calculation' >
							<exp exp='Seconds = 255' />
							<exp exp='Minutes = 255' />
							<exp exp='Hours = 255' />
							<exp exp='Day = 1' />
							<exp exp='Date = 255' />
							<exp exp='Month = 255' />
							<exp exp='Year = 255' />
							<exp exp='OK = 0' />
							<exp exp='CountManual = 1' />
							<exp exp='Count = 0' />
							<exp exp='CountComplete = 0' />
							<exp exp='Loop = 0' />
						</command>
						<command class_type='interrupt' title='Interrupt' enable='0' name='TMR0' >
							<settings timer='1' prescale='1' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
							</settings>
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Clear' />
						<command class_type='loop' title='Loop' textarea='36,-150,36,-150' type='0' exp='OK = 0' start='0' >
							<flowline >
								<command class_type='decision' title='Decision' exp='CountComplete' swap='0' >
									<flowline />
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='Count = Count + 1' />
											<exp exp='Hide = 0' />
											<exp exp='' />
										</command>
										<command class_type='decision' title='Decision' exp='Count &gt;= 14' swap='0' >
											<flowline >
												<command class_type='interrupt' title='Interrupt' enable='1' name='TMR0' call='TimerISR' >
													<settings timer='1' prescale='256' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
														<option value='1' />
														<option value='0' />
														<option value='8' />
														<option value='-1' />
													</settings>
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='CountComplete = 1' />
													<exp exp='Count = 1' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
								<command class_type='input' title='Input' mode='2' port='1048576' mask='3' exp='Input' />
								<command class_type='decision' title='Decision' exp='Input' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='Temp = Input' />
											<exp exp='InputCount = 0' />
										</command>
										<command class_type='loop' title='Loop' type='0' exp='Input &amp;&amp; (InputCount &lt; 40)' start='0' >
											<flowline >
												<command class_type='delay' title='Delay' exp='30' type='1' />
												<command class_type='input' title='Input' mode='2' port='1048576' mask='3' exp='Input' />
												<command class_type='calculation' title='Calculation' >
													<exp exp='InputCount = InputCount + 1' />
												</command>
											</flowline>
										</command>
										<command class_type='loop' title='Loop' type='0' exp='Input' start='0' >
											<flowline >
												<command class_type='input' title='Input' mode='2' port='1048576' mask='3' exp='Input' />
											</flowline>
										</command>
										<command class_type='switch' title='Switch' textarea='36,25,36,25' exp='Temp' >
											<case >
												<flowline />
											</case>
											<case exp='1' >
												<flowline >
													<command class_type='decision' title='Decision' exp='InputCount &gt; 33' swap='0' >
														<flowline >
															<command class_type='comment' title='' comment='Undo Value' textarea='12,0,12,0' />
															<command class_type='calculation' title='Calculation' >
																<exp exp='Loop = 1' />
															</command>
														</flowline>
														<flowline >
															<command class_type='decision' title='Decision' exp='ack = 255' swap='0' >
																<flowline />
																<flowline >
																	<command class_type='calculation' title='Calculation' >
																		<exp exp='Loop = 2' />
																	</command>
																</flowline>
															</command>
														</flowline>
													</command>
												</flowline>
											</case>
											<case exp='2' >
												<flowline >
													<command class_type='calculation' title='Calculation' >
														<exp exp='Increment = 1' />
													</command>
												</flowline>
											</case>
										</command>
										<command class_type='decision' title='Decision' exp='Loop' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='Hide = 0' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='switch' title='Switch' textarea='36,25,36,25' exp='Count' >
									<case >
										<flowline />
									</case>
									<case exp='1' >
										<flowline >
											<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
												<argument exp='0' />
												<argument exp='0' />
											</command>
											<command class_type='decision' title='Decision' exp='Increment' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' >
														<exp exp='Day = Day + 1' />
														<exp exp='Increment = 0' />
													</command>
													<command class_type='decision' title='Decision' exp='Day &gt; 7' swap='0' >
														<flowline >
															<command class_type='calculation' title='Calculation' >
																<exp exp='Day = 1' />
															</command>
														</flowline>
														<flowline />
													</command>
												</flowline>
												<flowline />
											</command>
											<command class_type='decision' title='Decision' exp='Hide' swap='0' >
												<flowline >
													<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
														<argument exp='&quot;    &quot;' />
													</command>
												</flowline>
												<flowline >
													<command class_type='calculation' title='Calculation' >
														<exp exp='DayOfTheWeek = Mid$ (DaysString, ((Day - 1) * 3),3)' />
													</command>
													<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
														<argument exp='DayOfTheWeek' />
													</command>
												</flowline>
											</command>
											<command class_type='calculation' title='Calculation' >
												<exp exp='ack = Day' />
											</command>
										</flowline>
									</case>
									<case exp='2' >
										<flowline >
											<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
												<argument exp='4' />
												<argument exp='0' />
											</command>
											<command class_type='decision' title='Decision' exp='Increment' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' >
														<exp exp='Date = Date + 1 * 10' />
														<exp exp='Increment = 0' />
													</command>
													<command class_type='decision' title='Decision' exp='(Date &lt; 10) || (Date &gt; 30)' swap='0' >
														<flowline >
															<command class_type='calculation' title='Calculation' >
																<exp exp='Date = 0' />
															</command>
														</flowline>
														<flowline />
													</command>
												</flowline>
												<flowline />
											</command>
											<command class_type='decision' title='Decision' exp='Hide' swap='0' >
												<flowline >
													<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
														<argument exp='&quot; &quot;' />
													</command>
												</flowline>
												<flowline >
													<command class_type='decision' title='Decision' exp='Date = 255' swap='0' >
														<flowline >
															<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
																<argument exp='&quot;D&quot;' />
															</command>
														</flowline>
														<flowline >
															<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintNumber' >
																<argument exp='Date/10' />
															</command>
														</flowline>
													</command>
												</flowline>
											</command>
											<command class_type='calculation' title='Calculation' >
												<exp exp='ack = Date' />
											</command>
										</flowline>
									</case>
									<case exp='3' >
										<flowline >
											<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
												<argument exp='5' />
												<argument exp='0' />
											</command>
											<command class_type='decision' title='Decision' exp='Increment' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' >
														<exp exp='Date = Date + 1' />
														<exp exp='Increment = 0' />
													</command>
													<command class_type='decision' title='Decision' exp='Date MOD 10 = 0' swap='0' >
														<flowline >
															<command class_type='decision' title='Decision' exp='Date &gt; 9' swap='0' >
																<flowline >
																	<command class_type='calculation' title='Calculation' >
																		<exp exp='Date = Date - 10' />
																	</command>
																</flowline>
																<flowline >
																	<command class_type='calculation' title='Calculation' >
																		<exp exp='Date = 0' />
																	</command>
																</flowline>
															</command>
														</flowline>
														<flowline />
													</command>
												</flowline>
												<flowline />
											</command>
											<command class_type='decision' title='Decision' exp='Hide' swap='0' >
												<flowline >
													<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
														<argument exp='&quot; &quot;' />
													</command>
												</flowline>
												<flowline >
													<command class_type='decision' title='Decision' exp='Date = 255' swap='0' >
														<flowline >
															<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
																<argument exp='&quot;D&quot;' />
															</command>
														</flowline>
														<flowline >
															<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintNumber' >
																<argument exp='Date MOD 10' />
															</command>
														</flowline>
													</command>
												</flowline>
											</command>
											<command class_type='calculation' title='Calculation' >
												<exp exp='ack = Date' />
											</command>
										</flowline>
									</case>
									<case exp='4' >
										<flowline >
											<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
												<argument exp='6' />
												<argument exp='0' />
											</command>
											<command class_type='decision' title='Decision' exp='Increment' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' >
														<exp exp='Month = Month + 1 * 10' />
														<exp exp='Increment = 0' />
													</command>
													<command class_type='decision' title='Decision' exp='(Month &lt; 10) || (Month &gt; 12)' swap='0' >
														<flowline >
															<command class_type='calculation' title='Calculation' >
																<exp exp='Month = 0' />
															</command>
														</flowline>
														<flowline />
													</command>
												</flowline>
												<flowline />
											</command>
											<command class_type='decision' title='Decision' exp='Hide' swap='0' >
												<flowline >
													<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
														<argument exp='&quot; &quot;' />
													</command>
												</flowline>
												<flowline >
													<command class_type='decision' title='Decision' exp='Month = 255' swap='0' >
														<flowline >
															<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
																<argument exp='&quot;M&quot;' />
															</command>
														</flowline>
														<flowline >
															<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintNumber' >
																<argument exp='Month/10' />
															</command>
														</flowline>
													</command>
												</flowline>
											</command>
											<command class_type='calculation' title='Calculation' >
												<exp exp='ack = Month' />
											</command>
										</flowline>
									</case>
									<case exp='5' >
										<flowline >
											<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
												<argument exp='7' />
												<argument exp='0' />
											</command>
											<command class_type='decision' title='Decision' exp='Increment' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' >
														<exp exp='Month = Month + 1' />
														<exp exp='Increment = 0' />
													</command>
													<command class_type='decision' title='Decision' exp='Month MOD 10 = 0' swap='0' >
														<flowline >
															<command class_type='decision' title='Decision' exp='Month &gt; 9' swap='0' >
																<flowline >
																	<command class_type='calculation' title='Calculation' >
																		<exp exp='Month = Month - 10' />
																	</command>
																</flowline>
																<flowline >
																	<command class_type='calculation' title='Calculation' >
																		<exp exp='Month = 0' />
																	</command>
																</flowline>
															</command>
														</flowline>
														<flowline />
													</command>
												</flowline>
												<flowline />
											</command>
											<command class_type='decision' title='Decision' exp='Hide' swap='0' >
												<flowline >
													<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
														<argument exp='&quot; &quot;' />
													</command>
												</flowline>
												<flowline >
													<command class_type='decision' title='Decision' exp='Month = 255' swap='0' >
														<flowline >
															<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
																<argument exp='&quot;M&quot;' />
															</command>
														</flowline>
														<flowline >
															<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintNumber' >
																<argument exp='Month MOD 10' />
															</command>
														</flowline>
													</command>
												</flowline>
											</command>
											<command class_type='calculation' title='Calculation' >
												<exp exp='ack = Month' />
											</command>
										</flowline>
									</case>
									<case exp='6' >
										<flowline >
											<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
												<argument exp='8' />
												<argument exp='0' />
											</command>
											<command class_type='decision' title='Decision' exp='Increment' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' >
														<exp exp='Year = Year + 1 * 10' />
														<exp exp='Increment = 0' />
													</command>
													<command class_type='decision' title='Decision' exp='(Year &lt; 10) || (Year &gt; 99)' swap='0' >
														<flowline >
															<command class_type='calculation' title='Calculation' >
																<exp exp='Year = 0' />
															</command>
														</flowline>
														<flowline />
													</command>
												</flowline>
												<flowline />
											</command>
											<command class_type='decision' title='Decision' exp='Hide' swap='0' >
												<flowline >
													<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
														<argument exp='&quot; &quot;' />
													</command>
												</flowline>
												<flowline >
													<command class_type='decision' title='Decision' exp='Year = 255' swap='0' >
														<flowline >
															<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
																<argument exp='&quot;Y&quot;' />
															</command>
														</flowline>
														<flowline >
															<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintNumber' >
																<argument exp='Year/10' />
															</command>
														</flowline>
													</command>
												</flowline>
											</command>
											<command class_type='calculation' title='Calculation' >
												<exp exp='ack = Year' />
											</command>
										</flowline>
									</case>
									<case exp='7' >
										<flowline >
											<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
												<argument exp='9' />
												<argument exp='0' />
											</command>
											<command class_type='decision' title='Decision' exp='Increment' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' >
														<exp exp='Year = Year + 1' />
														<exp exp='Increment = 0' />
													</command>
													<command class_type='decision' title='Decision' exp='Year MOD 10 = 0' swap='0' >
														<flowline >
															<command class_type='decision' title='Decision' exp='Year &gt; 9' swap='0' >
																<flowline >
																	<command class_type='calculation' title='Calculation' >
																		<exp exp='Year = Year - 10' />
																	</command>
																</flowline>
																<flowline >
																	<command class_type='calculation' title='Calculation' >
																		<exp exp='Year = 0' />
																	</command>
																</flowline>
															</command>
														</flowline>
														<flowline />
													</command>
												</flowline>
												<flowline />
											</command>
											<command class_type='decision' title='Decision' exp='Hide' swap='0' >
												<flowline >
													<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
														<argument exp='&quot; &quot;' />
													</command>
												</flowline>
												<flowline >
													<command class_type='decision' title='Decision' exp='Year = 255' swap='0' >
														<flowline >
															<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
																<argument exp='&quot;Y&quot;' />
															</command>
														</flowline>
														<flowline >
															<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintNumber' >
																<argument exp='Year MOD 10' />
															</command>
														</flowline>
													</command>
												</flowline>
											</command>
											<command class_type='calculation' title='Calculation' >
												<exp exp='ack = Year' />
											</command>
										</flowline>
									</case>
								</command>
								<command class_type='switch' title='Switch' textarea='36,25,36,25' exp='Count' >
									<case >
										<flowline />
									</case>
									<case exp='8' >
										<flowline >
											<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
												<argument exp='0' />
												<argument exp='1' />
											</command>
											<command class_type='decision' title='Decision' exp='Increment' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' >
														<exp exp='Hours = Hours + 1 * 10' />
														<exp exp='Increment = 0' />
													</command>
													<command class_type='decision' title='Decision' exp='(Hours &lt; 10) || (Hours &gt; 24)' swap='0' >
														<flowline >
															<command class_type='calculation' title='Calculation' >
																<exp exp='Hours = 0' />
															</command>
														</flowline>
														<flowline />
													</command>
												</flowline>
												<flowline />
											</command>
											<command class_type='decision' title='Decision' exp='Hide' swap='0' >
												<flowline >
													<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
														<argument exp='&quot; &quot;' />
													</command>
												</flowline>
												<flowline >
													<command class_type='decision' title='Decision' exp='Hours = 255' swap='0' >
														<flowline >
															<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
																<argument exp='&quot;H&quot;' />
															</command>
														</flowline>
														<flowline >
															<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintNumber' >
																<argument exp='Hours/10' />
															</command>
														</flowline>
													</command>
												</flowline>
											</command>
											<command class_type='calculation' title='Calculation' >
												<exp exp='ack = Hours' />
											</command>
										</flowline>
									</case>
									<case exp='9' >
										<flowline >
											<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
												<argument exp='1' />
												<argument exp='1' />
											</command>
											<command class_type='decision' title='Decision' exp='Increment' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' >
														<exp exp='Hours = Hours + 1' />
														<exp exp='Increment = 0' />
													</command>
													<command class_type='decision' title='Decision' exp='Hours MOD 10 = 0' swap='0' >
														<flowline >
															<command class_type='decision' title='Decision' exp='Hours &gt; 9' swap='0' >
																<flowline >
																	<command class_type='calculation' title='Calculation' >
																		<exp exp='Hours = Hours - 10' />
																	</command>
																</flowline>
																<flowline >
																	<command class_type='calculation' title='Calculation' >
																		<exp exp='Hours = 0' />
																	</command>
																</flowline>
															</command>
														</flowline>
														<flowline />
													</command>
												</flowline>
												<flowline />
											</command>
											<command class_type='decision' title='Decision' exp='Hide' swap='0' >
												<flowline >
													<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
														<argument exp='&quot; &quot;' />
													</command>
												</flowline>
												<flowline >
													<command class_type='decision' title='Decision' exp='Hours = 255' swap='0' >
														<flowline >
															<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
																<argument exp='&quot;H&quot;' />
															</command>
														</flowline>
														<flowline >
															<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintNumber' >
																<argument exp='Hours MOD 10' />
															</command>
														</flowline>
													</command>
												</flowline>
											</command>
											<command class_type='calculation' title='Calculation' >
												<exp exp='ack = Hours' />
											</command>
										</flowline>
									</case>
									<case exp='10' >
										<flowline >
											<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
												<argument exp='2' />
												<argument exp='1' />
											</command>
											<command class_type='decision' title='Decision' exp='Increment' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' >
														<exp exp='Minutes = Minutes + 1 * 10' />
														<exp exp='Increment = 0' />
													</command>
													<command class_type='decision' title='Decision' exp='(Minutes &lt; 10) || (Minutes &gt; 59)' swap='0' >
														<flowline >
															<command class_type='calculation' title='Calculation' >
																<exp exp='Minutes = 0' />
															</command>
														</flowline>
														<flowline />
													</command>
												</flowline>
												<flowline />
											</command>
											<command class_type='decision' title='Decision' exp='Hide' swap='0' >
												<flowline >
													<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
														<argument exp='&quot; &quot;' />
													</command>
												</flowline>
												<flowline >
													<command class_type='decision' title='Decision' exp='Minutes = 255' swap='0' >
														<flowline >
															<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
																<argument exp='&quot;M&quot;' />
															</command>
														</flowline>
														<flowline >
															<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintNumber' >
																<argument exp='Minutes/10' />
															</command>
														</flowline>
													</command>
												</flowline>
											</command>
											<command class_type='calculation' title='Calculation' >
												<exp exp='ack = Minutes' />
											</command>
										</flowline>
									</case>
									<case exp='11' >
										<flowline >
											<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
												<argument exp='3' />
												<argument exp='1' />
											</command>
											<command class_type='decision' title='Decision' exp='Increment' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' >
														<exp exp='Minutes = Minutes + 1' />
														<exp exp='Increment = 0' />
													</command>
													<command class_type='decision' title='Decision' exp='Minutes MOD 10 = 0' swap='0' >
														<flowline >
															<command class_type='decision' title='Decision' exp='Minutes &gt; 9' swap='0' >
																<flowline >
																	<command class_type='calculation' title='Calculation' >
																		<exp exp='Minutes = Minutes - 10' />
																	</command>
																</flowline>
																<flowline >
																	<command class_type='calculation' title='Calculation' >
																		<exp exp='Minutes = 0' />
																	</command>
																</flowline>
															</command>
														</flowline>
														<flowline />
													</command>
												</flowline>
												<flowline />
											</command>
											<command class_type='decision' title='Decision' exp='Hide' swap='0' >
												<flowline />
												<flowline >
													<command class_type='decision' title='Decision' exp='Minutes = 255' swap='0' >
														<flowline >
															<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
																<argument exp='&quot;M&quot;' />
															</command>
														</flowline>
														<flowline >
															<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintNumber' >
																<argument exp='Minutes MOD 10' />
															</command>
														</flowline>
													</command>
												</flowline>
											</command>
											<command class_type='calculation' title='Calculation' >
												<exp exp='ack = Minutes' />
											</command>
										</flowline>
									</case>
									<case exp='12' >
										<flowline >
											<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
												<argument exp='4' />
												<argument exp='1' />
											</command>
											<command class_type='decision' title='Decision' exp='Increment' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' >
														<exp exp='Seconds = Seconds + 1 * 10' />
														<exp exp='Increment = 0' />
													</command>
													<command class_type='decision' title='Decision' exp='(Seconds &lt; 10) || (Seconds &gt; 24)' swap='0' >
														<flowline >
															<command class_type='calculation' title='Calculation' >
																<exp exp='Seconds = 0' />
															</command>
														</flowline>
														<flowline />
													</command>
												</flowline>
												<flowline />
											</command>
											<command class_type='decision' title='Decision' exp='Hide' swap='0' >
												<flowline >
													<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
														<argument exp='&quot; &quot;' />
													</command>
												</flowline>
												<flowline >
													<command class_type='decision' title='Decision' exp='Seconds = 255' swap='0' >
														<flowline >
															<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
																<argument exp='&quot;S&quot;' />
															</command>
														</flowline>
														<flowline >
															<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintNumber' >
																<argument exp='Seconds/10' />
															</command>
														</flowline>
													</command>
												</flowline>
											</command>
											<command class_type='calculation' title='Calculation' >
												<exp exp='ack = Seconds' />
											</command>
										</flowline>
									</case>
									<case exp='13' >
										<flowline >
											<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
												<argument exp='5' />
												<argument exp='1' />
											</command>
											<command class_type='decision' title='Decision' exp='Increment' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' >
														<exp exp='Seconds = Seconds + 1' />
														<exp exp='Increment = 0' />
													</command>
													<command class_type='decision' title='Decision' exp='Seconds MOD 10 = 0' swap='0' >
														<flowline >
															<command class_type='decision' title='Decision' exp='Seconds &gt; 9' swap='0' >
																<flowline >
																	<command class_type='calculation' title='Calculation' >
																		<exp exp='Seconds = Seconds - 10' />
																	</command>
																</flowline>
																<flowline >
																	<command class_type='calculation' title='Calculation' >
																		<exp exp='Seconds = 0' />
																	</command>
																</flowline>
															</command>
														</flowline>
														<flowline />
													</command>
												</flowline>
												<flowline />
											</command>
											<command class_type='decision' title='Decision' exp='Hide' swap='0' >
												<flowline >
													<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
														<argument exp='&quot; &quot;' />
													</command>
												</flowline>
												<flowline >
													<command class_type='decision' title='Decision' exp='Seconds = 255' swap='0' >
														<flowline >
															<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
																<argument exp='&quot;S&quot;' />
															</command>
														</flowline>
														<flowline >
															<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintNumber' >
																<argument exp='Seconds MOD 10' />
															</command>
														</flowline>
													</command>
												</flowline>
											</command>
											<command class_type='calculation' title='Calculation' >
												<exp exp='ack = Seconds' />
											</command>
										</flowline>
									</case>
									<case exp='14' >
										<flowline >
											<command class_type='calculation' title='Calculation' >
												<exp exp='Count = 0' />
											</command>
										</flowline>
									</case>
								</command>
								<command class_type='delay' title='Delay' exp='50' type='1' />
								<command class_type='switch' title='Switch' textarea='36,25,36,25' exp='Loop' >
									<case >
										<flowline />
									</case>
									<case exp='1' >
										<flowline >
											<command class_type='calculation' title='Calculation' >
												<exp exp='Loop = 0' />
											</command>
											<command class_type='decision' title='Decision' exp='Count &gt; 1' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' >
														<exp exp='Count = Count - 1' />
													</command>
												</flowline>
												<flowline />
											</command>
										</flowline>
									</case>
									<case exp='2' >
										<flowline >
											<command class_type='calculation' title='Calculation' >
												<exp exp='Loop = 0' />
												<exp exp='Count = Count + 1' />
											</command>
											<command class_type='decision' title='Decision' exp='Count &gt; 13' swap='0' >
												<flowline >
													<command class_type='calculation' title='Calculation' >
														<exp exp='OK = 1' />
													</command>
												</flowline>
												<flowline />
											</command>
										</flowline>
									</case>
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Decimal to BCD' >
							<exp exp='Seconds = (Seconds / 10 &lt;&lt; 4) + (Seconds MOD 10)' />
							<exp exp='Minutes = (Minutes / 10 &lt;&lt; 4) + (Minutes MOD 10)' />
							<exp exp='Hours = (Hours / 10 &lt;&lt; 4) + (Hours MOD 10)' />
							<exp exp='Date = (Date / 10 &lt;&lt; 4) + (Date MOD 10)' />
							<exp exp='Month = (Month / 10 &lt;&lt; 4) + (Month MOD 10)' />
							<exp exp='Year = (Year / 10 &lt;&lt; 4) + (Year MOD 10)' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='I2C_Master1' macro='Start' />
						<command class_type='call' title='Call Component Macro' textarea='172,6,172,6' component='I2C_Master1' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='Ds1307Write' />
						</command>
						<command class_type='call' title='Call Component Macro' component='I2C_Master1' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' component='I2C_Master1' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='Seconds' />
						</command>
						<command class_type='call' title='Call Component Macro' component='I2C_Master1' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='Minutes' />
						</command>
						<command class_type='call' title='Call Component Macro' textarea='36,0,599,0' component='I2C_Master1' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='Hours' />
						</command>
						<command class_type='call' title='Call Component Macro' component='I2C_Master1' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='Day' />
						</command>
						<command class_type='call' title='Call Component Macro' component='I2C_Master1' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='Date' />
						</command>
						<command class_type='call' title='Call Component Macro' component='I2C_Master1' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='Month' />
						</command>
						<command class_type='call' title='Call Component Macro' component='I2C_Master1' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='Year' />
						</command>
						<command class_type='call' title='Call Component Macro' component='I2C_Master1' macro='Stop' />
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Clear' />
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
							<argument exp='&quot; DS1307 RTC&quot;' />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Cursor' >
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='PrintString' >
							<argument exp='&quot;Settings Updated!&quot;' />
						</command>
						<command class_type='delay' title='Delay' exp='2' type='2' />
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Clear' />
					</flowline>
				</macro>
				<macro >
					<flowline name='ReadDate' description='' >
						<command class_type='call' title='Call Component Macro' textarea='36,0,511,300' component='I2C_Master1' macro='Start' />
						<command class_type='call' title='Call Component Macro' component='I2C_Master1' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='Ds1307Write' />
						</command>
						<command class_type='call' title='Call Component Macro' component='I2C_Master1' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='3' />
						</command>
						<command class_type='call' title='Call Component Macro' component='I2C_Master1' macro='Restart' />
						<command class_type='call' title='Call Component Macro' component='I2C_Master1' macro='TransmitByte' >
							<return exp='ack' />
							<argument exp='Ds1307Read' />
						</command>
						<command class_type='call' title='Call Component Macro' component='I2C_Master1' macro='ReceiveByte' >
							<return exp='Day' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' component='I2C_Master1' macro='ReceiveByte' >
							<return exp='Date' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' component='I2C_Master1' macro='ReceiveByte' >
							<return exp='Month' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' component='I2C_Master1' macro='ReceiveByte' >
							<return exp='Year' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' component='I2C_Master1' macro='Stop' />
						<command class_type='calculation' title='BCD to Decimal Calculations' >
							<exp exp='Day = (Day &gt;&gt; 4) * 10 + (Day &amp; 15)' />
							<exp exp='DayOfTheWeek = Mid$ (DaysString, ((Day - 1) * 3),3)' />
							<exp exp='Date = (Date &gt;&gt; 4) * 10 + (Date &amp; 15)' />
							<exp exp='Month = (Month &gt;&gt; 4) * 10 + (Month &amp; 15)' />
							<exp exp='Year = (Year &gt;&gt; 4) * 10 + (Year &amp; 15)' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='RTC_INIT' description='' >
						<command class_type='calculation' title='Calculation' >
							<exp exp='DaysString = &quot;SunMonTueWedThuFriSat&quot;' />
						</command>
						<command class_type='calculation' title='Set Addresses' >
							<exp exp='Ds1307Address = 0x68' />
							<exp exp='Ds1307Read = (Ds1307Address &lt;&lt; 1) + 1' />
							<exp exp='Ds1307Write = (Ds1307Address &lt;&lt; 1) + 0' />
						</command>
						<command class_type='call' title='Call Component Macro' component='I2C_Master1' macro='Initialise' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<command class_type='call' title='Call Component Macro' component='lcd_eb005' macro='Start' />
						<command class_type='call' title='Call Macro' macro='RTC_INIT' />
						<command class_type='loop' title='Loop' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='Call Macro' macro='ReadTime' />
								<command class_type='call' title='Call Macro' macro='ReadDate' />
								<command class_type='call' title='Call Macro' macro='DisplayTimeAndDate' />
								<command class_type='delay' title='Delay' exp='100' type='1' />
								<command class_type='input' title='Input' mode='1' port='1048576' mask='1' exp='Input' />
								<command class_type='decision' title='Decision' exp='Input' swap='0' >
									<flowline >
										<command class_type='loop' title='Loop' type='0' exp='Input' start='0' >
											<flowline >
												<command class_type='delay' title='Delay' exp='50' type='1' />
												<command class_type='input' title='Input' mode='1' port='1048576' mask='1' exp='Input' />
											</flowline>
										</command>
										<command class_type='call' title='Call Macro' macro='Set_Time_Date' />
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='7a287a58-cba5-42ad-b8a5-58694d7f678a' vmin='2' vmaj='1' codename='sw_slide_sub_pcb1' x='-64' y='32' z='1.75' xsz='1.37931' ysz='1.77778' 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='$PORTA.0' />
					<value target='polarity' data='000' />
					<value target='debounce' data='10' />
					<value target='operation' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='7a287a58-cba5-42ad-b8a5-58694d7f678a' vmin='2' vmaj='1' codename='sw_slide_sub_pcb2' x='24' y='32' z='1.75' xsz='1.37931' ysz='1.77778' 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='$PORTA.1' />
					<value target='polarity' data='000' />
					<value target='debounce' data='10' />
					<value target='operation' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='d29dda88-17de-4008-991a-c881890d4c57' vmin='1' vmaj='1' codename='lcd_eb005' x='-56' y='88' z='3.575' xsz='1.1' ysz='1.5427' 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='$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' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='24219805-113d-4b12-b6bd-e1b0b0c33981' vmin='2' vmaj='1' codename='I2C_Master1' x='32' y='88' z='0.755' xsz='60' ysz='26' zsz='1.51' 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='CHANNEL' data='000' />
					<value target='BAUD_LIST' data='001' />
					<value target='SRC' data='000' />
					<value target='SMB' data='000' />
					<value target='BAUD' data='50000' />
					<value target='SDA' data='$PORTC.5' />
					<value target='SCL' data='$PORTC.4' />
					<value target='label' data='I2C Master' />
					<value target='Injector' data='000' />
					<value target='InjectorHandle' data='263' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='8d670813-9a40-4891-accc-c1bf864b8217' vmin='0' vmaj='1' codename='InjectorDS1307' x='16' y='64' z='0' 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='CircularBufferSize' data='1000' />
					<value target='TermChar' data='013' />
					<value target='DeviceAddress' data='104' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label1' x='-32' y='8' z='0' xsz='7.86348' ysz='8' zsz='0' 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='Color' data='192' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='Enter/Program Mode' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label2' x='24' y='16' z='0' xsz='8' ysz='8' 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='Color' data='192' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='Adjust +1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label3' x='-88' y='8' z='0' xsz='8' ysz='8' 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='Color' data='192' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='Short Press:' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label4' x='-88' y='0' z='0' xsz='8' ysz='8' 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='Color' data='192' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='Long Press:' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label5' x='-56' y='0' z='0' xsz='8' ysz='8' 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='Color' data='192' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='Undo' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label6' x='-64' y='48' z='0' xsz='8' ysz='8' 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='Color' data='192' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='A0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='text' codename='label7' x='24' y='48' z='0' xsz='8' ysz='8' 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='Color' data='192' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='A1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='9737364' img='' style='0' />
		<camera xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel2d>
	<panel3d shadows='0' lighting='2' brightness='76' perspective='0' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='7360576' img='' style='0' size='39' />
		<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='RTC_INIT' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA2wMAAFUCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA2wMAAFUCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ReadDate' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA2wMAAFUCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Set_Time_Date' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA2wMAAFUCAAA' zoom='75' scrollx='0' scrolly='4928' flags='0' />
		<view type='0' name='DisplayTimeAndDate' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA2wMAAFUCAAA' zoom='75' scrollx='0' scrolly='1333' flags='0' />
		<view type='0' name='TimerISR' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA2wMAAFUCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ReadTime' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAA2wMAAFUCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
