<root>
<document schema='101' license='0,94026356,HZE13E' title='' description='' target='PIC.16F.16F886' >
	<config data='!0,23f2!10,3fff%0,2%3,0%4,1%5,1%6,1%7,1%8,3%a,0%b,0%c,0%d,1%19,3%18,1' 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='1000' />
			<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='monitor' value='1' />
			<data name='ictloop' value='1' />
			<data name='ictrate' value='1000' />
			<data name='ictmask' 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='adat1' />
		<watch expr='adat2' />
		<watch expr='valasz1' />
		<watch expr='valasz2' />
		<watch expr='inbit' />
		<watch expr='hofok' />
	</debug>
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='a307bb18-d0c9-408f-bdc4-2a6c0ee59604' 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='hofok' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='valasz2' type='T8' description='' isconst='0' isinit='1' usrinit='&quot;a&quot;' setinit='&quot;a&quot;' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='valasz1' type='T8' description='' isconst='0' isinit='1' usrinit='&quot;a&quot;' setinit='&quot;a&quot;' >
						<array size='20' />
					</def>
				</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='osszegzes' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='para2' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='hofok2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='inbit' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='para' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='szamit' type='u8' 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>
			</variables>
			<macros >
				<macro >
					<flowline name='respond' description='' >
						<command class_type='input' title='Bemenet' mode='1' port='1048576' mask='1' exp='inbit' />
						<command class_type='loop' title='NUlla végét várjuk' type='0' exp='inbit = 0' >
							<flowline >
								<command class_type='input' title='Bemenet' mode='1' port='1048576' mask='1' exp='inbit' />
							</flowline>
						</command>
						<command class_type='loop' title='1 végét várjuk' type='0' exp='inbit = 1' >
							<flowline >
								<command class_type='input' title='Bemenet' mode='1' port='1048576' mask='1' exp='inbit' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='startsignal' description='' >
						<command class_type='delay' title='Késleltetés' exp='1' type='2' />
						<command class_type='output' title='Kimenet' mode='1' port='1048576' mask='1' exp='0' />
						<command class_type='delay' title='Késleltetés' exp='25' type='1' />
						<command class_type='output' title='Kimenet' mode='0' port='1048576' mask='0' exp='1' />
						<command class_type='delay' title='Késleltetés' exp='30' type='0' />
					</flowline>
				</macro>
				<macro >
					<flowline name='readbyte' description='' >
						<return name='Return' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='loop' title='Ciklus' type='2' exp='7' >
							<flowline >
								<command class_type='input' title='Bemenet' mode='1' port='1048576' mask='1' exp='inbit' />
								<command class_type='comment' title='' comment='Kivárjuk a o végét' textarea='12,0,12,0' />
								<command class_type='loop' title='Nulla végét várjuk' type='0' exp='inbit = 0' >
									<flowline >
										<command class_type='input' title='Bemenet' mode='1' port='1048576' mask='1' exp='inbit' />
									</flowline>
								</command>
								<command class_type='comment' title='' comment='Amikor 1 lesz, várunk 35 microsecet. 
- Ha utána még mindig 1 van, akkor 1-es jött, azt tároljuk. 
  Az aktuális 1 végét ki kell várni. 

- Ha utána nulla van, az jött, azt tároljuk

Kezdjük előről.' textarea='12,0,12,0' />
								<command class_type='delay' title='Késleltetés' exp='35' type='0' />
								<command class_type='input' title='Bemenet' mode='1' port='1048576' mask='1' exp='inbit' />
								<command class_type='decision' title='Milyen értéket kapok a bemeneten?' exp='inbit = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Egyes jött tárolom' >
											<exp exp='szamit = szamit &lt;&lt; 1' />
											<exp exp='szamit = szamit | 1' />
										</command>
										<command class_type='comment' title='' comment='Megvárom az aktuális 1 végét, hogy kezdhessem előről.' textarea='12,0,12,0' />
										<command class_type='loop' title='Léptesse amíg inbit 0 lesz' type='0' exp='inbit = 1' >
											<flowline >
												<command class_type='input' title='Bemenet' mode='1' port='1048576' mask='1' exp='inbit' />
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Nulla jott, eltarolom' >
											<exp exp='szamit = szamit &lt;&lt; 1' />
											<exp exp='szamit = szamit | 0' />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='visszatero szamitasa' >
							<exp exp='readbyte.Return = szamit' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<command class_type='call' title='Komponens makró hívása' component='lcd_eb005' macro='Start' />
						<command class_type='loop' title='Ciklus' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='Start szingnál kérése' macro='startsignal' />
								<command class_type='call' title='válasz érkezése' macro='respond' />
								<command class_type='call' title='egy byte beolvasása' macro='readbyte' >
									<return exp='hofok' />
								</command>
								<command class_type='call' title='egy byte beolvasása' macro='readbyte' >
									<return exp='hofok2' />
								</command>
								<command class_type='call' title='egy byte beolvasása' macro='readbyte' >
									<return exp='para' />
								</command>
								<command class_type='call' title='egy byte beolvasása' macro='readbyte' >
									<return exp='para2' />
								</command>
								<command class_type='call' title='egy byte beolvasása' macro='readbyte' >
									<return exp='osszegzes' />
								</command>
								<command class_type='comment' title='' comment='Kiírások' textarea='12,0,12,0' />
								<command class_type='call' title='Komponens makró hívása' component='lcd_eb005' macro='Clear' />
								<command class_type='call' title='Komponens makró hívása' component='lcd_eb005' macro='PrintNumber' >
									<argument exp='hofok' />
								</command>
								<command class_type='call' title='Komponens makró hívása' component='lcd_eb005' macro='PrintString' >
									<argument exp='&quot; ; &quot;' />
								</command>
								<command class_type='call' title='Komponens makró hívása' component='lcd_eb005' macro='PrintNumber' >
									<argument exp='hofok2' />
								</command>
								<command class_type='call' title='Komponens makró hívása' component='lcd_eb005' macro='Cursor' >
									<argument exp='0' />
									<argument exp='1' />
								</command>
								<command class_type='call' title='Komponens makró hívása' component='lcd_eb005' macro='PrintNumber' >
									<argument exp='para' />
								</command>
								<command class_type='call' title='Komponens makró hívása' component='lcd_eb005' macro='PrintString' >
									<argument exp='&quot; ; &quot;' />
								</command>
								<command class_type='call' title='Komponens makró hívása' component='lcd_eb005' macro='PrintNumber' >
									<argument exp='para2' />
								</command>
								<command class_type='delay' title='Késleltetés' exp='200' type='1' />
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='d29dda88-17de-4008-991a-c881890d4c57' vmin='296' vmaj='16' codename='lcd_eb005' x='0' y='0' z='3.575' 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 >
					<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>
	</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='0' perspective='0' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='7360576' img='' style='0' size='25' />
		<camera xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel3d>
	<layout >
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAFgMAAOQBAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='readbyte' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAFgMAAOQBAAA' zoom='75' scrollx='0' scrolly='546' flags='0' />
		<view type='0' name='startsignal' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAFgMAAOQBAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='respond' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAFgMAAOQBAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
