Hi all,
I am using PIC16F877 to interface with nrf24l01 for both transmitter and receiver. I am able to configure all nrf24l01 registers using software SPI, and also read back to verify for the registers value. However, I can’t get the IRQ after the CE pulse at the transmitter side, of course the receiver side also can’t get the IRQ unless the transmitter is working correctly.
I also ported brennen’s tutorial 1 to PIC16F877, but i am still having this problem.
nrf24l01 configured for no ack, IRQ enabled, payload of 1 byte.
Below are my registers configurations:
config = TX:0x0a RX:0x0b
en_aa = TX:0x00 RX:0x00
en_rxaddr = TX:0x00 RX:0x01
setup_aw = TX:0x03 RX:0x03
setup_retr = TX:0x00 RX:0x00
rf_ch = TX:0x02 RX:0x02
rf_setup = TX:0x07 RX:0x07
rx_addr_p0 = TX:default RX:default
rx_addr_p1 = TX:default RX:default
rx_addr_p2 = TX:default RX:default
rx_addr_p3 = TX:default RX:default
rx_addr_p4 = TX:default RX:default
rx_addr_p5 = TX:default RX:default
tx_addr = TX:default RX:default
rx_pw_p0 = TX:0x00 RX:0x01
rx_pw_p1 = TX:0x00 RX:0x00
rx_pw_p2 = TX:0x00 RX:0x00
rx_pw_p3 = TX:0x00 RX:0x00
rx_pw_p4 = TX:0x00 RX:0x00
rx_pw_p5 = TX:0x00 RX:0x00
Connection for PIC with nordic is:
RA0 = CE
RA1 = SCK
RA2 = MOSI
RA3 = MISO
RA4 = CSN
RA5 = IRQ
I am able to get the status when i write SPI data, so i think the SCK, MOSI, MISO and CSN should be correct.
Is there any registers i set wrongly?
Thanks!!
Regards,
Sheng