<root>
<document schema='101' license='1,Marcel Ulrich,G44FQ5' title='' description='' target='AVR.ATMEGA.Arduino Nano 328' >
	<config data='' clkspd='16000000' simspd='1' usewdt='0' constif='0' />
	<plugins >
		<dll_dbg_icd enabled='0' >
			<data name='debug' value='1' />
			<data name='userpins' value='0' />
			<data name='speed' value='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='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 />
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='7b6fafab-ff9a-41d6-b694-beed68d27dc9' 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='Counter' type='u8' description='Just a counter to help show a number' 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='terug' 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='Init' description='' >
						<command class_type='comment' title='' comment='Initialise the NRF24L01+ as a transmitter

Maybe not the best configuration at this point but it works :-)' textarea='12,0,12,0' />
						<command class_type='comment' title='' comment='Nr 1: 

24= Write reg SETUP_RETR
4F = 01001111

' textarea='500,54,500,54' />
						<command class_type='output' title='Uitvoer' mode='1' port='1048577' mask='4' exp='0' />
						<command class_type='call' title='Component Macro Aanroepen' component='SPI_Master1' macro='SendChar' >
							<argument exp='0x24' />
						</command>
						<command class_type='call' title='Component Macro Aanroepen' component='SPI_Master1' macro='SendChar' >
							<argument exp='0x4f' />
						</command>
						<command class_type='output' title='Uitvoer' mode='1' port='1048577' mask='4' exp='255' />
						<command class_type='delay' title='Vertraging' exp='40' type='0' />
						<command class_type='comment' title='' comment='Nr 8: 

26 = Write reg RF_SETUP
07 = 00000111

' textarea='500,44,500,44' />
						<command class_type='output' title='Uitvoer' mode='1' port='1048577' mask='4' exp='0' />
						<command class_type='call' title='Component Macro Aanroepen' component='SPI_Master1' macro='SendChar' >
							<argument exp='0x26' />
						</command>
						<command class_type='call' title='Component Macro Aanroepen' component='SPI_Master1' macro='SendChar' >
							<argument exp='0x07' />
						</command>
						<command class_type='output' title='Uitvoer' mode='1' port='1048577' mask='4' exp='255' />
						<command class_type='delay' title='Vertraging' exp='40' type='0' />
						<command class_type='comment' title='' comment='Nr 12: 

3C = Write reg EN_AA (auto enable ack)
00 = 00000000
' textarea='500,47,500,47' />
						<command class_type='output' title='Uitvoer' mode='1' port='1048577' mask='4' exp='0' />
						<command class_type='call' title='Component Macro Aanroepen' component='SPI_Master1' macro='SendChar' >
							<argument exp='0x3C' />
						</command>
						<command class_type='call' title='Component Macro Aanroepen' component='SPI_Master1' macro='SendChar' >
							<argument exp='0x00' />
						</command>
						<command class_type='output' title='Uitvoer' mode='1' port='1048577' mask='4' exp='255' />
						<command class_type='delay' title='Vertraging' exp='40' type='0' />
						<command class_type='comment' title='' comment='Nr 13: 

27 = Write reg STATUS
70 = 01110000
' textarea='500,20,500,20' />
						<command class_type='output' title='Uitvoer' mode='1' port='1048577' mask='4' exp='0' />
						<command class_type='call' title='Component Macro Aanroepen' component='SPI_Master1' macro='SendChar' >
							<argument exp='0x27' />
						</command>
						<command class_type='call' title='Component Macro Aanroepen' component='SPI_Master1' macro='SendChar' >
							<argument exp='0x70' />
						</command>
						<command class_type='output' title='Uitvoer' mode='1' port='1048577' mask='4' exp='255' />
						<command class_type='delay' title='Vertraging' exp='40' type='0' />
						<command class_type='comment' title='' comment='Nr 14: 

25 = Write reg RF_CH
4C = 01001100
' textarea='500,47,500,47' />
						<command class_type='output' title='Uitvoer' mode='1' port='1048577' mask='4' exp='0' />
						<command class_type='call' title='Component Macro Aanroepen' component='SPI_Master1' macro='SendChar' >
							<argument exp='0x40' />
						</command>
						<command class_type='call' title='Component Macro Aanroepen' component='SPI_Master1' macro='SendChar' >
							<argument exp='0x4C' />
						</command>
						<command class_type='output' title='Uitvoer' mode='1' port='1048577' mask='4' exp='255' />
						<command class_type='delay' title='Vertraging' exp='40' type='0' />
						<command class_type='comment' title='' comment='Nr 15: 

E2 = Flush RX fifo
' textarea='500,41,500,41' />
						<command class_type='output' title='Uitvoer' mode='1' port='1048577' mask='4' exp='0' />
						<command class_type='call' title='Component Macro Aanroepen' component='SPI_Master1' macro='SendChar' >
							<argument exp='0xE2' />
						</command>
						<command class_type='output' title='Uitvoer' mode='1' port='1048577' mask='4' exp='255' />
						<command class_type='delay' title='Vertraging' exp='40' type='0' />
						<command class_type='comment' title='' comment='Nr 16: 

E1 = Flush TX fifo

' textarea='500,44,500,44' />
						<command class_type='output' title='Uitvoer' mode='1' port='1048577' mask='4' exp='0' />
						<command class_type='call' title='Component Macro Aanroepen' component='SPI_Master1' macro='SendChar' >
							<argument exp='0xE1' />
						</command>
						<command class_type='output' title='Uitvoer' mode='1' port='1048577' mask='4' exp='255' />
						<command class_type='delay' title='Vertraging' exp='40' type='0' />
						<command class_type='comment' title='' comment='Nr 18: 

2A Write reg RX adrr Pipe 0

11 11 11 11 11 11' textarea='500,44,500,44' />
						<command class_type='output' title='Uitvoer' mode='1' port='1048577' mask='4' exp='0' />
						<command class_type='call' title='Component Macro Aanroepen' component='SPI_Master1' macro='SendChar' >
							<argument exp='0x2A' />
						</command>
						<command class_type='call' title='Component Macro Aanroepen' component='SPI_Master1' macro='SendChar' >
							<argument exp='0x11' />
						</command>
						<command class_type='call' title='Component Macro Aanroepen' component='SPI_Master1' macro='SendChar' >
							<argument exp='0x11' />
						</command>
						<command class_type='call' title='Component Macro Aanroepen' component='SPI_Master1' macro='SendChar' >
							<argument exp='0x11' />
						</command>
						<command class_type='call' title='Component Macro Aanroepen' component='SPI_Master1' macro='SendChar' >
							<argument exp='0x11' />
						</command>
						<command class_type='call' title='Component Macro Aanroepen' component='SPI_Master1' macro='SendChar' >
							<argument exp='0x11' />
						</command>
						<command class_type='output' title='Uitvoer' mode='1' port='1048577' mask='4' exp='255' />
						<command class_type='delay' title='Vertraging' exp='40' type='0' />
						<command class_type='comment' title='' comment='Nr 19: 

30 = Write reg TX addr Pipe

I use these RX settings.

11 11 11 11 11 11

Make sure the RX settings are accordingly' textarea='500,44,500,44' />
						<command class_type='output' title='Uitvoer' mode='1' port='1048577' mask='4' exp='0' />
						<command class_type='call' title='Component Macro Aanroepen' component='SPI_Master1' macro='SendChar' >
							<argument exp='0x30' />
						</command>
						<command class_type='call' title='Component Macro Aanroepen' component='SPI_Master1' macro='SendChar' >
							<argument exp='0x11' />
						</command>
						<command class_type='call' title='Component Macro Aanroepen' component='SPI_Master1' macro='SendChar' >
							<argument exp='0x11' />
						</command>
						<command class_type='call' title='Component Macro Aanroepen' component='SPI_Master1' macro='SendChar' >
							<argument exp='0x11' />
						</command>
						<command class_type='call' title='Component Macro Aanroepen' component='SPI_Master1' macro='SendChar' >
							<argument exp='0x11' />
						</command>
						<command class_type='call' title='Component Macro Aanroepen' component='SPI_Master1' macro='SendChar' >
							<argument exp='0x11' />
						</command>
						<command class_type='output' title='Uitvoer' mode='1' port='1048577' mask='4' exp='255' />
						<command class_type='delay' title='Vertraging' exp='40' type='0' />
						<command class_type='comment' title='' comment='Nr 19: 

31 = Write reg EN_AA (auto enable ack)
20 = 00100000
' textarea='500,73,500,73' />
						<command class_type='output' title='Uitvoer' mode='1' port='1048577' mask='4' exp='0' />
						<command class_type='call' title='Component Macro Aanroepen' component='SPI_Master1' macro='SendChar' >
							<argument exp='0x31' />
						</command>
						<command class_type='call' title='Component Macro Aanroepen' component='SPI_Master1' macro='SendChar' >
							<argument exp='0x20' />
						</command>
						<command class_type='output' title='Uitvoer' mode='1' port='1048577' mask='4' exp='255' />
						<command class_type='delay' title='Vertraging' exp='40' type='0' />
						<command class_type='output' title='Uitvoer' mode='1' port='1048577' mask='4' exp='0' />
						<command class_type='comment' title='' comment='Nr 21: 

20 = Write reg CONFIG
0E = 00001110
' textarea='500,44,500,44' />
						<command class_type='output' title='Uitvoer' mode='1' port='1048577' mask='4' exp='0' />
						<command class_type='call' title='Component Macro Aanroepen' component='SPI_Master1' macro='SendChar' >
							<argument exp='0x20' />
						</command>
						<command class_type='call' title='Component Macro Aanroepen' component='SPI_Master1' macro='SendChar' >
							<argument exp='0x0e' />
						</command>
						<command class_type='output' title='Uitvoer' mode='1' port='1048577' mask='4' exp='255' />
						<command class_type='delay' title='Vertraging' exp='40' type='0' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<command class_type='delay' title='Vertraging' exp='10' type='0' />
						<command class_type='comment' title='' comment='Maybe this delay isn&apos;t necessary but this 10µs won&apos;t harm' textarea='12,0,12,0' />
						<command class_type='comment' title='' comment='B1 = is CE on my Arduino Nano (digital 9)
B2 = CSn on my Arduino Nano (digital 10)

Please change according to your hardware settings' textarea='12,0,12,0' />
						<command class_type='output' title='Uitvoer' mode='1' port='1048577' mask='4' exp='255' />
						<command class_type='calculation' title='Berekening' >
							<exp exp='Counter = 0' />
						</command>
						<command class_type='comment' title='' comment='Initialise the SPI with the settings in the properties window.' textarea='12,0,12,0' />
						<command class_type='call' title='Component Macro Aanroepen' component='SPI_Master1' macro='Initialise' />
						<command class_type='comment' title='' comment='First initialise the NRF' textarea='12,0,12,0' />
						<command class_type='call' title='Initialise the NRF module' macro='Init' />
						<command class_type='loop' title='Lus' type='0' exp='1' >
							<flowline >
								<command class_type='comment' title='' comment='27 = Write reg STATUS

70 = 01110000

TX_FULL = 0
RX_P_NO = 0
RX_P_NO = 0
RX_P_NO = 0
MAX_RT = 1
TX_DS = 1
RX_DR = 1
Gereserveerd = 0


' textarea='12,0,12,0' />
								<command class_type='output' title='Uitvoer' mode='1' port='1048577' mask='4' exp='0' />
								<command class_type='call' title='Component Macro Aanroepen' component='SPI_Master1' macro='SendChar' >
									<argument exp='0x27' />
								</command>
								<command class_type='call' title='Component Macro Aanroepen' component='SPI_Master1' macro='SendChar' >
									<argument exp='0x70' />
								</command>
								<command class_type='output' title='Uitvoer' mode='1' port='1048577' mask='4' exp='255' />
								<command class_type='delay' title='Vertraging' exp='40' type='0' />
								<command class_type='comment' title='' comment='20 = Write reg CONFIG

0C = 00001100

PRIM_RX = 0
PWR_UP = 0
CRCO = 1
EN_CRC = 1
MASK_MAX_RT = 0
MASK_TX_DS = 0
MASK_RX_DR = 0
Gereserveerd = 0
' textarea='176,0,176,0' />
								<command class_type='output' title='Uitvoer' mode='1' port='1048577' mask='4' exp='0' />
								<command class_type='call' title='Component Macro Aanroepen' component='SPI_Master1' macro='SendChar' >
									<argument exp='0x20' />
								</command>
								<command class_type='call' title='Component Macro Aanroepen' component='SPI_Master1' macro='SendChar' >
									<argument exp='0x0C' />
								</command>
								<command class_type='output' title='Uitvoer' mode='1' port='1048577' mask='4' exp='255' />
								<command class_type='delay' title='Vertraging' exp='40' type='0' />
								<command class_type='comment' title='' comment='
E1 = Flush TX fifo

' textarea='210,3,210,3' />
								<command class_type='output' title='Uitvoer' mode='1' port='1048577' mask='4' exp='0' />
								<command class_type='call' title='Component Macro Aanroepen' component='SPI_Master1' macro='SendChar' >
									<argument exp='0xE1' />
								</command>
								<command class_type='output' title='Uitvoer' mode='1' port='1048577' mask='4' exp='255' />
								<command class_type='delay' title='Vertraging' exp='40' type='0' />
								<command class_type='comment' title='' comment='20 = Write reg CONFIG

0E = 00001110

PRIM_RX = 0
PWR_UP = 1
CRCO = 1
EN_CRC = 1
MASK_MAX_RT = 0
MASK_TX_DS = 0
MASK_RX_DR = 0
Gereserveerd = 0' textarea='12,0,12,0' />
								<command class_type='output' title='Uitvoer' mode='1' port='1048577' mask='4' exp='0' />
								<command class_type='call' title='Component Macro Aanroepen' component='SPI_Master1' macro='SendChar' >
									<argument exp='0x20' />
								</command>
								<command class_type='call' title='Component Macro Aanroepen' component='SPI_Master1' macro='SendChar' >
									<argument exp='0x0E' />
								</command>
								<command class_type='output' title='Uitvoer' mode='1' port='1048577' mask='4' exp='255' />
								<command class_type='delay' title='Vertraging' exp='40' type='0' />
								<command class_type='comment' title='' comment='
A0 = W_TX_Payload
32 byte Payload
' textarea='12,0,12,0' />
								<command class_type='output' title='Uitvoer' mode='1' port='1048577' mask='4' exp='0' />
								<command class_type='call' title='Component Macro Aanroepen' component='SPI_Master1' macro='SendChar' >
									<argument exp='0xA0' />
								</command>
								<command class_type='comment' title='' comment='As TX_payload I just send &quot;something&quot;.
In this case a byte that is the result of a counter.' textarea='12,0,12,0' />
								<command class_type='loop' title='Lus' type='2' exp='32' >
									<flowline >
										<command class_type='call' title='Component Macro Aanroepen' component='SPI_Master1' macro='SendChar' >
											<argument exp='Counter' />
										</command>
									</flowline>
								</command>
								<command class_type='output' title='Uitvoer' mode='1' port='1048577' mask='4' exp='255' />
								<command class_type='delay' title='Vertraging' exp='60' type='0' />
								<command class_type='comment' title='' comment='Make CE high for a short while to start the transmit' textarea='12,0,12,0' />
								<command class_type='output' title='Uitvoer' mode='1' port='1048577' mask='2' exp='255' />
								<command class_type='delay' title='Vertraging' exp='40' type='0' />
								<command class_type='output' title='Uitvoer' mode='1' port='1048577' mask='2' exp='0' />
								<command class_type='comment' title='' comment='And CE back low' textarea='12,0,12,0' />
								<command class_type='calculation' title='Berekening' >
									<exp exp='Counter = Counter + 1' />
									<exp exp='' />
								</command>
								<command class_type='comment' title='' comment='And chill for a moment' textarea='12,0,12,0' />
								<command class_type='delay' title='Vertraging' exp='1' type='1' />
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='4627d2fb-b41e-44cf-b125-e8511e5ebaa4' vmin='2' vmaj='1' codename='SPI_Master1' x='0' y='0' z='16.005' 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='001' />
					<value target='PR_SCALE' data='004' />
					<value target='CKP' data='000' />
					<value target='CKE' data='001' />
					<value target='SMP' data='000' />
					<value target='DAC_En' data='$PORTB.7' />
					<value target='NVM_En' data='$PORTB.6' />
					<value target='MOSI' data='$PORTB.3' />
					<value target='MISO' data='$PORTB.4' />
					<value target='CLK' data='$PORTB.5' />
					<value target='MosiRemap' data='' />
					<value target='MisoRemap' data='' />
					<value target='ClkRemap' data='' />
					<value target='label' data='SPI  Master' />
					<value target='ScopeTraces' data='0' />
					<value target='ConsoleData' data='0' />
					<value target='Injector' data='000' />
					<value target='InjectorHandle' data='0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='9868950' 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='Init' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAbAAAA3AQAAPoCAAA' zoom='75' scrollx='0' scrolly='1653' flags='0' />
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAbAAAA3AQAAPoCAAA' zoom='95' scrollx='0' scrolly='2159' flags='0' />
	</layout>
</document>
</root>
