Communication between PIC16F877 and ccrf2 (CC1120)

Thread Starter

Dule_AAC

Joined Feb 21, 2017
1
Hi all,

Need help to implement small app where two sides (PIC + ccrf2 each side) exchange data. For now, I am just trying to make a connection to ccrf2 and calibrate it but it's not going well. I am using UART for debugging, and software gets stuck in first do-while loop in manualCalibration() function, SPI_ReadExtended() never reads 0x41.

I am programming PICs on EasyPIC5 board, using MPLAB X IDE v3.30. Also, I am using cc112x_easy_link as reference guide.
CC1120 register settings are generated using SmartRF Studio 7.
Code is attached.

What do you think, what am I doing wrong?

Thanks.
 

Attachments

Top