<root>
<document schema='101' license='1,,*****' title='' description='' target='PIC.16F.16F88' >
	<config data='!0,2f0a!10,3ffc%0,2%2,0%3,1%5,0%6,0%7,0%8,1%9,3%b,1%c,0%d,1%10,0%11,0' clkspd='20000000' simspd='1' usewdt='0' constif='0' />
	<plugins >
		<dll_dbg_icd enabled='0' >
			<data name='debug' value='1' />
			<data name='userpins' value='0' />
			<data name='speed' value='0' />
			<data name='usev9' value='0' />
			<data name='breaks' value='8' />
			<data name='stacks' value='8' />
			<data name='clkport' value='1' />
			<data name='clkbit' value='6' />
			<data name='dataport' value='1' />
			<data name='databit' value='7' />
			<data name='ghostype' value='0' />
			<data name='monitor' value='1' />
			<data name='ictloop' value='0' />
			<data name='ictrate' value='20000' />
			<data name='ictmask' value='0' />
			<data name='anlpres' value='19' />
			<data name='digmask1' value='-1' />
			<data name='digmask2' value='-1' />
		</dll_dbg_icd>
		<dll_models enabled='1' />
		<dll_upgrader enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug />
	<ghost >
		<FK2 >
			<data name='FK2D0' port='4294967295' pin='4294967295' />
			<data name='FK2D1' port='4294967295' pin='4294967295' />
			<data name='FK2D2' port='4294967295' pin='4294967295' />
			<data name='FK2D3' port='4294967295' pin='4294967295' />
			<data name='FK2D4' port='4294967295' pin='4294967295' />
			<data name='FK2D5' port='4294967295' pin='4294967295' />
			<data name='FK2D6' port='4294967295' pin='4294967295' />
			<data name='FK2D7' port='4294967295' pin='4294967295' />
			<data name='FK2D8' port='4294967295' pin='4294967295' />
			<data name='FK2D9' port='4294967295' pin='4294967295' />
			<data name='FK2D10' port='4294967295' pin='4294967295' />
			<data name='FK2D11' port='4294967295' pin='4294967295' />
			<data name='FK2D12' port='4294967295' pin='4294967295' />
			<data name='FK2D13' port='4294967295' pin='4294967295' />
			<data name='FK2D14' port='4294967295' pin='4294967295' />
			<data name='FK2D15' port='4294967295' pin='4294967295' />
			<data name='FK2A0' port='4294967295' pin='4294967295' />
			<data name='FK2A1' port='4294967295' pin='4294967295' />
			<data name='FK2A2' port='4294967295' pin='4294967295' />
			<data name='FK2A3' port='4294967295' pin='4294967295' />
			<data name='FK2A4' port='4294967295' pin='4294967295' />
			<data name='FK2A5' port='4294967295' pin='4294967295' />
		</FK2>
		<ICD >
			<data name='AnalogPrescaleValue' value='19' />
			<data name='DigitalSampleRate' value='100000' />
			<data name='BreakpointCount' value='8' />
			<data name='CallStackDepthCount' value='8' />
			<data name='ClockPort' value='1' />
			<data name='ClockPin' value='6' />
			<data name='DataPort' value='1' />
			<data name='DataPin' value='7' />
			<data name='UseDefaultPins' value='1' />
			<data name='WrapEnabled' value='1' />
			<data name='CommsDelayOverridden' value='0' />
			<data name='CommsDelay' value='9' />
			<data name='CalculatedCommsDelay' value='9' />
		</ICD>
		<pins >
			<digital A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
			<analog A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
		</pins>
	</ghost>
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='fdcd90f3-f290-4720-a75a-d522d960f18b' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='1' iconpath='' />
		<component class_type='root' codename='panel' x='0' y='0' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
			<resources />
			<properties />
			<values />
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='g' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='f' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='e' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='d' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='c' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='b' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='a' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</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='dp' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ADC' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Digit4' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Digit3' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Count_Multiplex' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Number' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Digit2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Digit1' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Clock_Bits' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Digit' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Clock' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Clock_Multiplexing' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Bit_Digit' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Count_Bits' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='true' type='b1' description='' isconst='1' isinit='1' usrinit='1' setinit='1' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='ADC = 127' />
							<exp exp='Bit_Digit = 0' />
							<exp exp='Clock = 0' />
							<exp exp='Clock_Bits = 0' />
							<exp exp='Clock_Multiplexing = 0' />
							<exp exp='Count_Bits = 0' />
							<exp exp='Count_Multiplex = 0' />
							<exp exp='Digit = 0' />
							<exp exp='Number = 0' />
							<exp exp='Digit1 = 0' />
							<exp exp='Digit2 = 0' />
							<exp exp='Digit3 = 0' />
							<exp exp='Digit4 = 0' />
							<exp exp='a = 0' />
							<exp exp='b = 0' />
							<exp exp='c = 0' />
							<exp exp='d = 0' />
							<exp exp='e = 0' />
							<exp exp='f = 0' />
							<exp exp='g = 0' />
							<exp exp='dp = 0' />
						</command>
						<command class_type='interrupt' title='Interrupt' cmdcolor='17151' cmdcolor_sec='355583' enable='1' name='TMR0' call='Int' >
							<settings timer='1' prescale='1' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='1' />
								<option value='0' />
								<option value='0' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
							</settings>
						</command>
						<command class_type='loop' title='Loop' cmdcolor='12615680' cmdcolor_sec='15376912' type='0' exp='1' >
							<flowline >
								<command class_type='comment' title='' comment='Definiçao dos valores dos bits enviados ao 74HC595. Ordem dos bits enviados: dp -&gt; a' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
								<command class_type='comment' title='' comment='Setting the values of the bits sent to the 74HC595. Order of sent bits: dp -&gt; a' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
								<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Digit' >
									<case >
										<flowline />
									</case>
									<case exp='0' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='Number = Digit1' />
											</command>
										</flowline>
									</case>
									<case exp='1' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='Number = Digit2' />
											</command>
										</flowline>
									</case>
									<case exp='2' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='Number = Digit3' />
											</command>
										</flowline>
									</case>
									<case exp='3' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='Number = Digit4' />
											</command>
										</flowline>
									</case>
								</command>
								<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Number' >
									<case >
										<flowline />
									</case>
									<case exp='0' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='a = 0' />
												<exp exp='b = 0' />
												<exp exp='c = 0' />
												<exp exp='d = 0' />
												<exp exp='e = 0' />
												<exp exp='f = 0' />
												<exp exp='g = 1' />
												<exp exp='dp = 1' />
												<exp exp='' />
											</command>
										</flowline>
									</case>
									<case exp='1' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='a = 1' />
												<exp exp='b = 0' />
												<exp exp='c = 0' />
												<exp exp='d = 1' />
												<exp exp='e = 1' />
												<exp exp='f = 1' />
												<exp exp='g = 1' />
												<exp exp='dp = 1' />
												<exp exp='' />
											</command>
										</flowline>
									</case>
									<case exp='2' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='a = 0' />
												<exp exp='b = 0' />
												<exp exp='c = 1' />
												<exp exp='d = 0' />
												<exp exp='e = 0' />
												<exp exp='f = 1' />
												<exp exp='g = 0' />
												<exp exp='dp = 1' />
												<exp exp='' />
											</command>
										</flowline>
									</case>
									<case exp='3' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='a = 0' />
												<exp exp='b = 0' />
												<exp exp='c = 0' />
												<exp exp='d = 0' />
												<exp exp='e = 1' />
												<exp exp='f = 1' />
												<exp exp='g = 0' />
												<exp exp='dp = 1' />
												<exp exp='' />
											</command>
										</flowline>
									</case>
									<case exp='4' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='a = 1' />
												<exp exp='b = 0' />
												<exp exp='c = 0' />
												<exp exp='d = 1' />
												<exp exp='e = 1' />
												<exp exp='f = 0' />
												<exp exp='g = 0' />
												<exp exp='dp = 1' />
												<exp exp='' />
											</command>
										</flowline>
									</case>
									<case exp='5' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='a = 0' />
												<exp exp='b = 1' />
												<exp exp='c = 0' />
												<exp exp='d = 0' />
												<exp exp='e = 1' />
												<exp exp='f = 0' />
												<exp exp='g = 0' />
												<exp exp='dp = 1' />
												<exp exp='' />
											</command>
										</flowline>
									</case>
									<case exp='6' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='a = 0' />
												<exp exp='b = 1' />
												<exp exp='c = 0' />
												<exp exp='d = 0' />
												<exp exp='e = 0' />
												<exp exp='f = 0' />
												<exp exp='g = 0' />
												<exp exp='dp = 1' />
												<exp exp='' />
											</command>
										</flowline>
									</case>
									<case exp='7' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='a = 0' />
												<exp exp='b = 0' />
												<exp exp='c = 0' />
												<exp exp='d = 1' />
												<exp exp='e = 1' />
												<exp exp='f = 1' />
												<exp exp='g = 1' />
												<exp exp='dp = 1' />
												<exp exp='' />
											</command>
										</flowline>
									</case>
									<case exp='8' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='a = 0' />
												<exp exp='b = 0' />
												<exp exp='c = 0' />
												<exp exp='d = 0' />
												<exp exp='e = 0' />
												<exp exp='f = 0' />
												<exp exp='g = 0' />
												<exp exp='dp = 1' />
												<exp exp='' />
											</command>
										</flowline>
									</case>
									<case exp='9' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='a = 0' />
												<exp exp='b = 0' />
												<exp exp='c = 0' />
												<exp exp='d = 0' />
												<exp exp='e = 1' />
												<exp exp='f = 0' />
												<exp exp='g = 0' />
												<exp exp='dp = 1' />
												<exp exp='' />
											</command>
										</flowline>
									</case>
								</command>
								<command class_type='comment' title='' comment='Iserçao dos valores individuais dos bits a serem enviados para o 74HC595 em sua devida ordem.' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
								<command class_type='comment' title='' comment='Iseration of the individual values ​​of the bits to be sent to the 74HC595 in their proper order.' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
								<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Count_Bits' >
									<case >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='Bit_Digit = 0' />
											</command>
										</flowline>
									</case>
									<case exp='1' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='Bit_Digit = dp' />
											</command>
										</flowline>
									</case>
									<case exp='2' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='Bit_Digit = g' />
											</command>
										</flowline>
									</case>
									<case exp='3' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='Bit_Digit = f' />
											</command>
										</flowline>
									</case>
									<case exp='4' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='Bit_Digit = e' />
											</command>
										</flowline>
									</case>
									<case exp='5' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='Bit_Digit = d' />
											</command>
										</flowline>
									</case>
									<case exp='6' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='Bit_Digit = c' />
											</command>
										</flowline>
									</case>
									<case exp='7' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='Bit_Digit = b' />
											</command>
										</flowline>
									</case>
									<case exp='8' >
										<flowline >
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='Bit_Digit = a' />
											</command>
										</flowline>
									</case>
								</command>
								<command class_type='comment' title='' comment='Divisão de intervalos de tempo entre ciclos de clock e Data. Data esta 1/4 de ciclo adiantado, para que o bit seja enviado ao pino Data na borda de subida de nivel alto do clock
' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
								<command class_type='comment' title='' comment='Division of time intervals between clock and data cycles. Data is 1/4 of the cycle in advance, so that the bit is sent to the Data pin on the high level rising edge of the clock' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
								<command class_type='comment' title='' comment='Count_Bits sends the bits in the correct order to the 74HC595 according to the number to be inserted in the display.' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
								<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Clock_Bits' >
									<case >
										<flowline />
									</case>
									<case exp='3' >
										<flowline >
											<command class_type='comment' title='' comment='Bit de dados
' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
											<command class_type='comment' title='' comment='Data bit start.' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
											<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048576' mask='2' exp='Bit_Digit' />
										</flowline>
									</case>
									<case exp='6' >
										<flowline >
											<command class_type='comment' title='' comment='Bit de clock
' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
											<command class_type='comment' title='' comment='Clock bit start.' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
											<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048576' mask='8' exp='1' />
										</flowline>
									</case>
									<case exp='9' >
										<flowline >
											<command class_type='comment' title='' comment='Bit de dados
' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
											<command class_type='comment' title='' comment='End of data bit.' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
											<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048576' mask='2' exp='0' />
											<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Count_Bits = 8' swap='0' >
												<flowline >
													<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048576' mask='16' exp='1' />
													<command class_type='comment' title='' comment='Multiplexação; Alternancia entre digitos do display.' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
													<command class_type='comment' title='' comment='A4 raises CT_CP to a high level at the end of sending bits to the 74HC595.' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
													<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Digit' >
														<case >
															<flowline />
														</case>
														<case exp='0' >
															<flowline >
																<command class_type='comment' title='' comment='Digito 1 ligado' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
																<command class_type='comment' title='' comment='Digit1 ON.' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
																<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048577' mask='2' exp='0' />
																<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048577' mask='4' exp='1' />
															</flowline>
														</case>
														<case exp='1' >
															<flowline >
																<command class_type='comment' title='' comment='Digito 2 ligado' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
																<command class_type='comment' title='' comment='Digit2 ON.' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
																<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048577' mask='4' exp='0' />
																<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048577' mask='64' exp='1' />
															</flowline>
														</case>
														<case exp='2' >
															<flowline >
																<command class_type='comment' title='' comment='Digito 3 ligado' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
																<command class_type='comment' title='' comment='Digit3 ON.' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
																<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048577' mask='64' exp='0' />
																<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048577' mask='128' exp='1' />
															</flowline>
														</case>
														<case exp='3' >
															<flowline >
																<command class_type='comment' title='' comment='Digito 4 ligado' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
																<command class_type='comment' title='' comment='Digit4 ON.' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
																<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048577' mask='128' exp='0' />
																<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048577' mask='2' exp='1' />
															</flowline>
														</case>
													</command>
													<command class_type='comment' title='' comment='Windows for multiplexing the display.' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
												</flowline>
												<flowline />
											</command>
										</flowline>
									</case>
									<case exp='12' >
										<flowline >
											<command class_type='comment' title='' comment='Bit de clock
' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
											<command class_type='comment' title='' comment='End of clock bit.' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
											<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048576' mask='8' exp='0' />
											<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Count_Bits = 8' swap='0' >
												<flowline >
													<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048576' mask='16' exp='0' />
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='Digit = Digit + 1' />
													</command>
													<command class_type='comment' title='' comment='Contador responsavel pela multiplexação do display
' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
													<command class_type='comment' title='' comment='Counter responsible for multiplexing the display.' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='Clock = Clock + 1' />
													</command>
													<command class_type='comment' title='' comment='Clock is responsible for timing the ADC reading. The ADC reading is done before sending a new bit packet to the 74HC595 in order to avoid sending incorrect bits to the display due to changing the variable after reading the ADC. This avoids flickering on the display caused by malformed numbers on the display due to an incorrect bit packet.' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
													<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Digit = 4' swap='0' >
														<flowline >
															<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																<exp exp='Digit = 0' />
															</command>
														</flowline>
														<flowline />
													</command>
												</flowline>
												<flowline />
											</command>
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='Count_Bits = Count_Bits + 1' />
											</command>
											<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Count_Bits = 9' swap='0' >
												<flowline >
													<command class_type='comment' title='' comment='Count_Bits is reset to count a new packet of bits to be sent to the 74HC595.
' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
													<command class_type='comment' title='' comment='Count_Bits faz a contagem da quantidade de bits enviados ao 74HC595 para formar conjuntos de instruções para formar os numeros no diplay
' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='Count_Bits = 1' />
													</command>
												</flowline>
												<flowline />
											</command>
											<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
												<exp exp='Clock_Bits = 0' />
											</command>
											<command class_type='comment' title='' comment='São enviados 152 conjuntos de bits ao 74HC595 a cada seungundo, ou seja, o display é atualizado 152 vezes por segundo.
' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
											<command class_type='comment' title='' comment='The counter restarts to send a new bit to the 74HC595.' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
										</flowline>
									</case>
								</command>
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Clock = 610' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='slider_plastic1' macro='GetInt' >
											<return exp='ADC' />
										</command>
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='Digit4 = ADC % 10' />
											<exp exp='Digit3 = (ADC / 10) % 10' />
											<exp exp='Digit2 = (ADC / 100) % 10' />
											<exp exp='Digit1 = (ADC / 1000) % 10' />
										</command>
										<command class_type='comment' title='' comment='The variables are updated when a new bit packet has not yet started to be sent to avoid vibrations in the displayed values.
' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='Clock = 0' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Int' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='Clock_Bits = Clock_Bits + 1' />
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='1a8c2bb7-8bed-4a1c-9186-ba24688c8840' vmin='3' vmaj='1' codename='slider_plastic1' x='0' y='0' z='5' xsz='12.502' ysz='112.5' zsz='10' 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='tang_col' data='16711680' />
					<value target='mark_col' data='255' />
					<value target='ScopeTraces' data='0' />
					<value target='channel' data='0' />
					<value target='vrefvol' data='500' />
					<value target='vrefop' data='000' />
					<value target='convspd' data='003' />
					<value target='actime' data='40' />
					<value target='bits' data='10' />
					<value target='bitmul' data='0.004883' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='7292207' img='' style='0' />
		<camera xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel2d>
	<panel3d shadows='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='7360576' img='' style='0' size='0' />
		<camera xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey0 xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey1 xe='-3.67394e-14' ye='0' ze='-300' xt='0' yt='0' zt='0' xquat='0' yquat='1' zquat='0' wquat='6.12323e-17' />
		<camerakey2 xe='0' ye='-300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.707107' yquat='0' zquat='0' wquat='0.707107' />
		<camerakey3 xe='-3.67394e-14' ye='300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-4.32978e-17' yquat='0.707107' zquat='0.707107' wquat='4.32978e-17' />
		<camerakey4 xe='-300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='0.5' zquat='0.5' wquat='0.5' />
		<camerakey5 xe='300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='-0.5' zquat='-0.5' wquat='0.5' />
		<camerakey6 xe='-173.205' ye='-173.205' ze='173.205' xt='0' yt='0' zt='0' xquat='-0.424708' yquat='0.17592' zquat='0.339851' wquat='0.820473' />
	</panel3d>
	<layout >
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAALwUAAEcCAAA' zoom='75' scrollx='0' scrolly='138' flags='0' />
		<view type='0' name='Int' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAALwUAAEcCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
