<root>
<document schema='101' license='1,,剏挬灭瑮⨺' title='' description='Programa que realiza una temporización de forma regresiva con un máximo de tiempo de 60sg.
El tiempo de la temporización se puede seleccionar con 2 pulsadores asociados a los pines RA1 y RA2.
Con RA1 se selecciona el tiempo de forma ascendente y con RA2 en forma descendente.
Con RA0 se seleciona la puesta en marcha y la parada de la temporización.
Mientras RA0 está a nivel alto se produce la activación de la temporización y si llega al valor máximo
seleccionado se produce la activacion del pin RB0, permaneciendo en ese estado hasta que pasa de 
nuevo a nivel bajo.
Si RA0 pasa a nivel bajo sin llegar la temporización a 0, ésta se detiene y cuando retoma el nivel alto
la temporización continúa desde el punto en que se detuvo.
Una vez finalizada la temporización, sino se cambia el valor, al activarse otra vez RA0, se puede realizar
una nueva temporización con el valor anteriormente ajustado.
Los display de 7 segmentos estan colocados los ánodos al puerto C (a..g a los pines 0..7) los cátodos
a los pines B0 y B1.
La salida de activación del relé está colocado al pin RB5.

**********************************  VERSIONES ***************************************
V0.01 (15.03.2019) = Versión inicial.
V0.02 (19.03.2019) = Añadir interrupción de TMR1, lectura y escritura del valor ajustado en la EEPROM.

' target='PIC.16F.16F882' >
	<config data='!0,2ff4!10,3fff%0,4%3,0%4,1%5,1%6,1%7,1%8,3%a,1%b,1%c,0%d,1%18,1%19,3' clkspd='8000000' simspd='1' usewdt='0' constif='0' />
	<plugins >
		<dll_dbg_icd enabled='0' >
			<data name='debug' value='1' />
			<data name='userpins' value='0' />
			<data name='speed' value='0' />
			<data name='usev9' value='0' />
			<data name='breaks' value='8' />
			<data name='stacks' value='8' />
			<data name='clkport' value='1' />
			<data name='clkbit' value='6' />
			<data name='dataport' value='1' />
			<data name='databit' value='7' />
			<data name='ghostype' value='0' />
			<data name='monitor' value='1' />
			<data name='ictloop' value='0' />
			<data name='ictrate' value='20000' />
			<data name='ictmask' value='0' />
			<data name='anlpres' value='19' />
			<data name='digmask1' value='-1' />
			<data name='digmask2' value='-1' />
		</dll_dbg_icd>
		<dll_models enabled='1' />
		<dll_upgrader enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug >
		<watch expr='TiempoTotal' />
		<watch expr='Pul_Subir' />
		<watch expr='Pul_Bajar' />
		<watch expr='Start_Stop' />
		<watch expr='T_1sg' />
		<watch expr='T_ajustado' />
		<watch expr='T_60sg' />
		<watch expr='Cuenta_Respaldo' />
		<watch expr='T_Respaldo' />
	</debug>
	<ghost >
		<FK2 >
			<data name='FK2D0' port='4294967295' pin='4294967295' />
			<data name='FK2D1' port='4294967295' pin='4294967295' />
			<data name='FK2D2' port='4294967295' pin='4294967295' />
			<data name='FK2D3' port='4294967295' pin='4294967295' />
			<data name='FK2D4' port='4294967295' pin='4294967295' />
			<data name='FK2D5' port='4294967295' pin='4294967295' />
			<data name='FK2D6' port='4294967295' pin='4294967295' />
			<data name='FK2D7' port='4294967295' pin='4294967295' />
			<data name='FK2D8' port='4294967295' pin='4294967295' />
			<data name='FK2D9' port='4294967295' pin='4294967295' />
			<data name='FK2D10' port='4294967295' pin='4294967295' />
			<data name='FK2D11' port='4294967295' pin='4294967295' />
			<data name='FK2D12' port='4294967295' pin='4294967295' />
			<data name='FK2D13' port='4294967295' pin='4294967295' />
			<data name='FK2D14' port='4294967295' pin='4294967295' />
			<data name='FK2D15' port='4294967295' pin='4294967295' />
			<data name='FK2A0' port='4294967295' pin='4294967295' />
			<data name='FK2A1' port='4294967295' pin='4294967295' />
			<data name='FK2A2' port='4294967295' pin='4294967295' />
			<data name='FK2A3' port='4294967295' pin='4294967295' />
			<data name='FK2A4' port='4294967295' pin='4294967295' />
			<data name='FK2A5' port='4294967295' pin='4294967295' />
		</FK2>
		<ICD >
			<data name='AnalogPrescaleValue' value='19' />
			<data name='DigitalSampleRate' value='100000' />
			<data name='BreakpointCount' value='8' />
			<data name='CallStackDepthCount' value='8' />
			<data name='ClockPort' value='1' />
			<data name='ClockPin' value='6' />
			<data name='DataPort' value='1' />
			<data name='DataPin' value='7' />
			<data name='UseDefaultPins' value='1' />
			<data name='WrapEnabled' value='1' />
			<data name='CommsDelayOverridden' value='0' />
			<data name='CommsDelay' value='21' />
			<data name='CalculatedCommsDelay' value='21' />
		</ICD>
		<pins >
			<digital A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
			<analog A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
		</pins>
	</ghost>
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='e1cc7273-cf7e-48fe-8ae7-37a9cdab5a5e' 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='SEG2' type='u8' description='Segmento del led 2' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='SEG1' type='u8' description='Segmento del led 1' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Pul_Subir' type='b1' description='Entrada seleccion de cuenta ascendente' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='T_60sg' type='u8' description='Valor para temporizar un segundo' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='T_Respaldo' type='u8' description='Lectura del valor ajustado que fue previamnete guardado.' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Pul_Bajar' type='b1' description='Entrada seleccion de cuenta descendente' 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='T_1sg' type='u8' description='Generación de 1sg.' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='TiempoTotal' type='u8' description='Valor del tiempo total para temporzar' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Start_Stop' type='b1' description='Entrada del pulsador de Start_Stop' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='T_ajustado' type='u8' description='Se cipia el valor de tiempo ajustado' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Cuenta_Respaldo' type='u16' description='Lugar donde se almacena el valor de la cantidad de tiempo a guardar.' 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>
			</variables>
			<macros >
				<macro >
					<flowline name='M_Bajar' description='realiza el ajuste del tiempo de forma descendente' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='input' title='Entrada' cmdcolor='4664832' cmdcolor_sec='4470784' mode='1' port='1048576' mask='4' exp='Pul_Bajar' />
						<command class_type='decision' title='Decisión' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Pul_Bajar = 0' swap='1' >
							<flowline >
								<command class_type='decision' title='Decisión' cmdcolor='12615680' cmdcolor_sec='15376912' exp='TiempoTotal = 0' swap='1' >
									<flowline >
										<command class_type='calculation' title='Cálculo' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='TiempoTotal = TiempoTotal - 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Cálculo' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='TiempoTotal = 0' />
										</command>
									</flowline>
								</command>
								<command class_type='delay' title='Retardo' cmdcolor='12632064' cmdcolor_sec='16769676' exp='400' type='1' />
								<command class_type='calculation' title='Cálculo' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='T_ajustado = TiempoTotal' />
									<exp exp='T_1sg = 0' />
									<exp exp='T_60sg = 0' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Ini_Tiempo' description='Inicia a descontar la temporización
' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='interrupt' title='Interrupción' cmdcolor='17151' cmdcolor_sec='355583' enable='1' name='TMR0' call='Int_TMR0' >
							<settings timer='1' prescale='128' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='1' />
								<option value='0' />
								<option value='7' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
							</settings>
						</command>
						<command class_type='decision' title='Decisión' cmdcolor='12615680' cmdcolor_sec='15376912' exp='TiempoTotal &lt;= 0' swap='1' >
							<flowline />
							<flowline >
								<command class_type='interrupt' title='Interrupción' cmdcolor='17151' cmdcolor_sec='355583' enable='0' name='TMR0' >
									<settings timer='1' prescale='128' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
										<option value='1' />
										<option value='0' />
										<option value='7' />
										<option value='-1' />
										<option value='-1' />
										<option value='-1' />
										<option value='-1' />
										<option value='-1' />
									</settings>
								</command>
								<command class_type='call' title='Llamar Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Ver_Valores' />
								<command class_type='label' title='Espera Start_Stop=0' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='A' />
								<command class_type='output' title='Salida' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048577' mask='32' exp='1' />
								<command class_type='delay' title='Retardo' cmdcolor='12632064' cmdcolor_sec='16769676' exp='5' type='1' />
								<command class_type='input' title='Entrada' cmdcolor='4664832' cmdcolor_sec='4470784' mode='1' port='1048576' mask='1' exp='Start_Stop' />
								<command class_type='decision' title='Decisión' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Start_Stop = 0' swap='1' >
									<flowline >
										<command class_type='goto' title='Espera Start_Stop=0' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
									</flowline>
									<flowline >
										<command class_type='output' title='Salida' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048577' mask='32' exp='0' />
										<command class_type='delay' title='Retardo' cmdcolor='12632064' cmdcolor_sec='16769676' exp='5' type='1' />
										<command class_type='calculation' title='Cálculo' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='TiempoTotal = T_ajustado' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Int_TMR0' description='Generción de cuenta de 1 segundo.' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Cálculo' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='T_1sg = T_1sg + 1' />
						</command>
						<command class_type='decision' title='Decisión' cmdcolor='12615680' cmdcolor_sec='15376912' exp='T_1sg &gt;= 61' swap='1' >
							<flowline />
							<flowline >
								<command class_type='calculation' title='Cálculo' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='T_1sg = 0' />
									<exp exp='' />
								</command>
								<command class_type='calculation' title='Cálculo' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='T_60sg = T_60sg + 1' />
								</command>
								<command class_type='decision' title='Decisión' cmdcolor='12615680' cmdcolor_sec='15376912' exp='T_60sg &gt;= 60' swap='1' >
									<flowline />
									<flowline >
										<command class_type='calculation' title='Cálculo' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='T_1sg = 0' />
											<exp exp='' />
										</command>
										<command class_type='calculation' title='Cálculo' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='T_60sg = 0' />
											<exp exp='' />
										</command>
										<command class_type='calculation' title='Cálculo' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='TiempoTotal = TiempoTotal - 1' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Ver_Valores' description='Se visualizan los valores de los datos.' >
						<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='SEG1 = TiempoTotal MOD 10' />
							<exp exp='SEG2 = TiempoTotal / 10 MOD 10' />
						</command>
						<command class_type='call' title='Refresca el segmento 1' cmdcolor='1879295' cmdcolor_sec='5751039' component='v5__led7seg41' macro='ShowDigit' >
							<argument exp='1' />
							<argument exp='SEG2' />
							<argument exp='0' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='5' type='1' />
						<command class_type='call' title='Refresca segmento 2' cmdcolor='1879295' cmdcolor_sec='5751039' component='v5__led7seg41' macro='ShowDigit' >
							<argument exp='2' />
							<argument exp='SEG1' />
							<argument exp='0' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='5' type='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='M_Subir' description='Realiza el ajuste de forma ascendente' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='input' title='Entrada' cmdcolor='4664832' cmdcolor_sec='4470784' mode='1' port='1048576' mask='2' exp='Pul_Subir' />
						<command class_type='decision' title='Decisión' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Pul_Subir = 0' swap='1' >
							<flowline >
								<command class_type='decision' title='Decisión' cmdcolor='12615680' cmdcolor_sec='15376912' exp='TiempoTotal = 60' swap='1' >
									<flowline >
										<command class_type='calculation' title='Cálculo' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='TiempoTotal = TiempoTotal + 1' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Cálculo' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='TiempoTotal = 60' />
											<exp exp='' />
										</command>
									</flowline>
								</command>
								<command class_type='delay' title='Retardo' cmdcolor='12632064' cmdcolor_sec='16769676' exp='400' type='1' />
								<command class_type='calculation' title='Cálculo' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='T_ajustado = TiempoTotal' />
									<exp exp='T_1sg = 0' />
									<exp exp='T_60sg = 0' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='native' title='Código C' ccode='/*
  Introduzca el código C por debajo de este comentario
*/
OSCCON=0x70' cmdcolor='7687168' cmdcolor_sec='8152576' language='C' />
						<command class_type='calculation' title='Cálculo' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='T_1sg = 0' />
							<exp exp='T_60sg = 0' />
							<exp exp='Cuenta_Respaldo = 0' />
							<exp exp='' />
						</command>
						<command class_type='output' title='Salida' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='1048577' mask='32' exp='0' />
						<command class_type='call' title='LeerEEPROM' cmdcolor='1879295' cmdcolor_sec='5751039' component='eeprom1' macro='Read' >
							<return exp='T_Respaldo' />
							<argument exp='0' />
						</command>
						<command class_type='delay' title='Retardo' cmdcolor='12632064' cmdcolor_sec='16769676' exp='50' type='1' />
						<command class_type='interrupt' title='Interrupción' cmdcolor='17151' cmdcolor_sec='355583' enable='1' name='TMR1' call='M_Respaldo' >
							<settings timer='1' prescale='8' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='1' />
								<option value='3' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
							</settings>
						</command>
						<command class_type='loop' title='Bucle' cmdcolor='12615680' cmdcolor_sec='15376912' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='Llamar Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='M_Subir' />
								<command class_type='call' title='Llamar Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='M_Bajar' />
								<command class_type='call' title='Llamar Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Ver_Valores' />
								<command class_type='label' title='Punto de Conexión' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='A' />
								<command class_type='input' title='Entrada' cmdcolor='4664832' cmdcolor_sec='4470784' mode='1' port='1048576' mask='1' exp='Start_Stop' />
								<command class_type='decision' title='Decisión' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Start_Stop = 0' swap='1' >
									<flowline >
										<command class_type='call' title='Llamar Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Ini_Tiempo' />
										<command class_type='call' title='Llamar Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Ver_Valores' />
										<command class_type='goto' title='Ir a Punto de Conexión' cmdcolor='12615680' cmdcolor_sec='15376912' labelid='0' labelname='' />
									</flowline>
									<flowline >
										<command class_type='interrupt' title='Interrupción' cmdcolor='17151' cmdcolor_sec='355583' enable='0' name='TMR0' >
											<settings timer='1' prescale='128' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
												<option value='1' />
												<option value='0' />
												<option value='7' />
												<option value='-1' />
												<option value='-1' />
												<option value='-1' />
												<option value='-1' />
												<option value='-1' />
											</settings>
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='M_Respaldo' description='Calcula el tiempo que debe transcurrir para proceder a la comprobación y posterior grabado del valor ajustado.' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Cálculo' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='Cuenta_Respaldo = Cuenta_Respaldo + 1' />
						</command>
						<command class_type='decision' title='Decisión' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Cuenta_Respaldo &gt;= 50' swap='0' >
							<flowline >
								<command class_type='calculation' title='Cálculo' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='Cuenta_Respaldo = 0' />
								</command>
								<command class_type='decision' title='Decisión' cmdcolor='12615680' cmdcolor_sec='15376912' exp='T_ajustado = T_Respaldo' swap='1' >
									<flowline >
										<command class_type='call' title='Guardar tiempo ajustado' cmdcolor='1879295' cmdcolor_sec='5751039' component='eeprom1' macro='Write' >
											<argument exp='0' />
											<argument exp='T_ajustado' />
										</command>
										<command class_type='calculation' title='Cálculo' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='T_Respaldo = T_ajustado' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='5c1da48f-ce54-4622-bdd9-fc812e373696' vmin='1' vmaj='1' codename='sw_push_rnd_pnl1' x='30' y='170' z='0' xsz='2.12766' ysz='2.12766' 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 >
					<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='5c1da48f-ce54-4622-bdd9-fc812e373696' vmin='1' vmaj='1' codename='sw_push_rnd_pnl2' x='30.7934' y='120' z='0' xsz='2.12766' ysz='2.12766' 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 >
					<value target='pin' data='$PORTA.2' />
					<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='5c1da48f-ce54-4622-bdd9-fc812e373696' vmin='1' vmaj='1' codename='sw_push_rnd_pnl3' x='90.793' y='150' z='0' xsz='2.12766' ysz='2.12766' 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 >
					<value target='pin' data='$PORTA.0' />
					<value target='polarity' data='000' />
					<value target='debounce' data='10' />
					<value target='operation' data='001' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='7fdaec78-394e-4ec9-a578-4f1a12a12076' vmin='1' vmaj='1' codename='led_5mm_clip2' x='45.8468' y='290' z='0' xsz='3.84615' ysz='3.84615' 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 >
					<value target='pin' data='$PORTB.5' />
					<value target='polarity' data='001' />
					<value target='on_color' data='255' />
					<value target='show_label' data='002' />
					<value target='label_property' data='pin' />
					<value target='label_color' data='16777215' />
					<value target='label_scale' data='1.000000' />
					<value target='label_auto_scale' data='0' />
					<value target='label_position' data='003' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='f4400e36-dd95-4472-86da-4bba68d68d5d' vmin='2' vmaj='1' codename='v5__led7seg41' x='53.9545' y='240' z='0' xsz='100' ysz='50' zsz='1.14286' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Display_Type' data='001' />
					<value target='ShowSegLabels' data='1' />
					<value target='Common_Pin0' data='$PORTB.3' />
					<value target='Common_Pin1' data='$PORTB.2' />
					<value target='Common_Pin2' data='$PORTB.1' />
					<value target='Common_Pin3' data='$PORTB.0' />
					<value target='Pin0' data='$PORTC.0' />
					<value target='Pin1' data='$PORTC.1' />
					<value target='Pin2' data='$PORTC.2' />
					<value target='Pin3' data='$PORTC.3' />
					<value target='Pin4' data='$PORTC.4' />
					<value target='Pin5' data='$PORTC.5' />
					<value target='Pin6' data='$PORTC.6' />
					<value target='Pin7' data='$PORTC.7' />
					<value target='FGColor' data='65280' />
					<value target='BGColor' data='1973790' />
					<value target='LabelColor' data='16777215' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label1' x='30' y='200' z='0' xsz='1.21622' ysz='2.5' 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 >
					<value target='Color' data='1975743' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='Subir' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label2' x='31.1318' y='80' z='0' xsz='1.21622' ysz='2.5' 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 >
					<value target='Color' data='1975743' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='Bajar' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label3' x='91.1318' y='180' z='0' xsz='1.21622' ysz='2.5' 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 >
					<value target='Color' data='1975743' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='Start-Stop' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label4' x='41.1318' y='320' z='0' xsz='1.21622' ysz='2.5' 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 >
					<value target='Color' data='1975743' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='Rele' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='dcbf571f-a6fa-402d-bdd4-be00cca4070f' vmin='1' vmaj='1' codename='eeprom1' x='100' y='300' 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='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='EESize' data='128 byte' />
					<value target='EEbitdepth' data='8 bit' />
					<value target='InitialValues' data='0' />
					<value target='InitValsParsed' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='3e5cc6d0-3e36-46b8-bc40-f238a5735b6e' vmin='0' vmaj='1' codename='IntOscHelper2' x='90' y='60' z='0' xsz='25' ysz='25' zsz='25' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='OscSpeed' data='008' />
					<value target='OscFreq' data='8000000' />
					<value target='ClockSpeed' data='8000000' />
					<value target='Info' data='Clock Speed OK, Check configuration Osc settings are correct' />
					<value target='Code' data='OSCCON = 0x70;' />
				</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='1' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='7360576' img='' style='0' size='0' />
		<camera xe='45.3014' ye='197.799' ze='185.797' xt='45.3014' yt='197.799' 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---------------------wUAAAAYAAAA4QEAAIsBAAA' zoom='75' scrollx='32' scrolly='16' flags='0' />
		<view type='0' name='Int_TMR0' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA4QEAAIsBAAA' zoom='75' scrollx='0' scrolly='203' flags='0' />
		<view type='0' name='Ver_Valores' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA4QEAAIsBAAA' zoom='75' scrollx='0' scrolly='13' flags='0' />
		<view type='0' name='Ini_Tiempo' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA4QEAAIsBAAA' zoom='50' scrollx='0' scrolly='97' flags='0' />
		<view type='0' name='M_Respaldo' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA4QEAAIsBAAA' zoom='75' scrollx='72' scrolly='138' flags='0' />
		<view type='0' name='M_Subir' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA4QEAAIsBAAA' zoom='75' scrollx='0' scrolly='433' flags='0' />
		<view type='0' name='M_Bajar' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA4QEAAIsBAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
