brownt
Member level 3
Hi,
Using a PIC18F26K40 to run a NRF24L01 over SPI. Works as expected.
Trying to use PIC16F18326 to run a NRF24L01 over SPI. Doesn't work.
I am using pretty much the same code as the 18F. It is generated by MCC. The main differences are the microcontroller, and the pins that are being mapped via PPS. I have tried various things but I have run out of options to fault find it.
The 16F code works ok with a digital pot MCP4341, and I believe the NRF24L01 has the same CKE and CKP requirements. I have used a logic analyser and it looks like the correct values are being written via MOSI, but what is being read back doesn't seem right. I am writing to the status register of the NRF and there should be data coming back saying there is data in the RX buffer. but all i get back is 0E, which means buffer empty.
What can i do to try and work out what is happening?
Using a PIC18F26K40 to run a NRF24L01 over SPI. Works as expected.
Trying to use PIC16F18326 to run a NRF24L01 over SPI. Doesn't work.
I am using pretty much the same code as the 18F. It is generated by MCC. The main differences are the microcontroller, and the pins that are being mapped via PPS. I have tried various things but I have run out of options to fault find it.
The 16F code works ok with a digital pot MCP4341, and I believe the NRF24L01 has the same CKE and CKP requirements. I have used a logic analyser and it looks like the correct values are being written via MOSI, but what is being read back doesn't seem right. I am writing to the status register of the NRF and there should be data coming back saying there is data in the RX buffer. but all i get back is 0E, which means buffer empty.
What can i do to try and work out what is happening?