Using NRF24L01+ with pure assembler programing

Dear people

I have connected NRF24!01+ with PIC16F1826 for use as PRX and have also another similar for PRX

For an initial test I tryed to trasmit a closed / open switch state to a LED and as ussually hapens it does not work

Also I have a Tx packets each 200ms with one Data byte incremented in each Tx
I get SPI write an read ok but at PRX have not getting any received packet

There is the same program for PTX an PRX with  #define    PRX  o rnot at compiling so most of defined values are the same

What I get reading with SPI : in PRX , Reg 0x17 FIFO_STATUS  bit4 TX_EMPTY:
 is 1 before loading data
0 after loading payload   (4 bytes)
1 after CE goes H

At PRX side  not IRQ arises , not changes in Reg 07 bit RX_DR

I only use assembler programming and I didn´t found in the web any complete and working assembler example.

--> I am asking please the simplest example with a detailed list of commands to send for configuring and useing TPX
and PRX, similar at Appendix B, pag 77 in NRF24L01+ data sheet.

*** But please include the waiting delays and other instructions that may be  needed ***

For some address, default values may be used in a first test ? ( only 1 Pipe )

Is it posible not  using CRC ?

I need to have something working before going to a complete use of full NRF24L01+ capabilities

Finally I will insert well tested software in bigger assembler programs

I like to  replace a RS485 conexion with this RF link

I will1452.Control_NRF.rar send the assembler that I am testing if somebody like to see it, but RF part is not working

Waiting some help, Best Regards, Osvaldo Hojvat

Parents
  • Hi  Torbjørn

    I will apply your last sent information.  I need to adquire some experience before next steps

    We are a two people team makeing electronics parts for Ferromodelism - Model railroad

    My final target is to replace actual cable connection with Rx links, for a Central unit that may be  connected to several handheld controls, using RS485 serial cables.

    Most of the time, the central unit send a call byte with the address of one control, wait 130us and if it is not a reply, it send a call with the following address of a control is sent.

    I will replace it by NRF24L01+  using all the automaric features available.

    I am making some simple tests before incorporate the RF part  to  the program of the Control units, PTX

    I will place the PRX part in a special interfase that keeps updated information of controls and Central unit, and to convert RF Tx/ Rx data with the required timing.

    One interfase for up to 6 controls.  Usually no more that one or two controls will be connected

    As data to be send from controls will be a result of a keyboard switch pressing, I expect it will be not a problem for the posibility than more than one control may Tx Data at the same time.

    After the present initial test, I will use the enhanced shock burst in a new test  as a second step.

    I will post resulting assembler when it works well.

    Best Regards, Osvaldo

Reply
  • Hi  Torbjørn

    I will apply your last sent information.  I need to adquire some experience before next steps

    We are a two people team makeing electronics parts for Ferromodelism - Model railroad

    My final target is to replace actual cable connection with Rx links, for a Central unit that may be  connected to several handheld controls, using RS485 serial cables.

    Most of the time, the central unit send a call byte with the address of one control, wait 130us and if it is not a reply, it send a call with the following address of a control is sent.

    I will replace it by NRF24L01+  using all the automaric features available.

    I am making some simple tests before incorporate the RF part  to  the program of the Control units, PTX

    I will place the PRX part in a special interfase that keeps updated information of controls and Central unit, and to convert RF Tx/ Rx data with the required timing.

    One interfase for up to 6 controls.  Usually no more that one or two controls will be connected

    As data to be send from controls will be a result of a keyboard switch pressing, I expect it will be not a problem for the posibility than more than one control may Tx Data at the same time.

    After the present initial test, I will use the enhanced shock burst in a new test  as a second step.

    I will post resulting assembler when it works well.

    Best Regards, Osvaldo

Children
No Data
Related