Octajul
Newbie level 2
I been trying to learn how to communicate two pic18f45k22 using NRF24L01 I did some research and found a tutorial for pic18F452 so i used this to build one for pic18F45K22 but when i try it doesnt works as it should and im running out of ideas to solve it so I would really appreciate some help, here's the link for a zip of both of my codes RX and TX and the PDF tutorial with the source files. I should add thatm im using and external clock of 8MHZ, MPLAB X, XC8 V.1.45, I downloaded the peripheral libraries for Pic18F and the connections are the following:
24L01 pins (1) Vcc -> +5Vdc supply
(2) CE -> uC pin PORTC.1, configured as GPIO/input
(3) CSN -> uC pin PORTC.2, configured as GPIO/output
(4) SCK -> uC pin PORTC.3/SCK, configured as SCK(SPI)/output
(5) MOSI -> uC pin PORTC.5/SDO, configured as SDO(SPI)/output
(6) MISO -> uC pin PORTC.4/SDI, configured as SDI(SPI)/input
(7) IRQ -> uC pin PORTB.0, configured as GPIO/input
(8) GND -> common digital ground
Thanks in advance
24L01 pins (1) Vcc -> +5Vdc supply
(2) CE -> uC pin PORTC.1, configured as GPIO/input
(3) CSN -> uC pin PORTC.2, configured as GPIO/output
(4) SCK -> uC pin PORTC.3/SCK, configured as SCK(SPI)/output
(5) MOSI -> uC pin PORTC.5/SDO, configured as SDO(SPI)/output
(6) MISO -> uC pin PORTC.4/SDI, configured as SDI(SPI)/input
(7) IRQ -> uC pin PORTB.0, configured as GPIO/input
(8) GND -> common digital ground
Thanks in advance