This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

cc115l spi read write

Other Parts Discussed in Thread: CC115L

Hi

I used the cc115l module together with an evalboard (TrxEB), setup the whole configurations and send stuff in the air, so thats was fine.

No i´m trying to setup the same module wirhaut the evalboard over SPI with en µC (PIC18f...)

So now i pull down the CSn and put the config-pakets on the SI-line, wich look like this

---> 0x00 0x0B

--->0x01 0x2E

....

As response i get for every single paket the 0x0F. I think, ok, that says it is in the idle mode.

Then i want to go in the tx mode to send stuff over GPO0 (Synchronous) and there is exactly the same response 0x0F. When i want to read a register its also the 0x0F.

Where is the problem?

The SPI setup from my µC is as follows:

  1. transmit occurs on Idle-to-active;
  2. Idle state is low
  3. clk is 2Mhz
  4. input data samplet at end
  • I assume your code is OK if it works on TrxEB and that the problem is related to the SPI on the PIC. Have you been able to look at the SPI lines on a scope or logic analyzer to make sure that the SPI behaves as intended. SCLK should be low in IDLE and data should be set up on a falling edge as the radio samples on a rising edge.

    Have you powered the EM properly and are there common ground between the PIC board and the EM?

    Siri