This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

what is this?

unsigned char cklf;

SPICLK = 0; // Max SPI clock
SPI_CTRL = 0x02; // Connect SPI controller to Radio

// switch to 16MHz clock:
RACSN = 0;
SpiReadWrite(RRC | 0x09);
cklf = SpiReadWrite(0) | 0x04;
RACSN = 1;
RACSN = 0;
SpiReadWrite(WRC | 0x09);
SpiReadWrite(cklf);
RACSN = 1;
can i know what is meaning of RACSN, why RRC need to OR with 0x09, cklf = SpiReadWrite(0) | 0x04, SpiReadWrite(WRC | 0x09)and SpiReadWrite(cklf);?

Parents
  • You really do need to read the Datasheet for the device!

    Your questions refer to the operation of the particular chip - they have nothing specifically to do with Keil Software!

    The Datasheet will explain to you the functions of the various registers.
    This will show you what happens when you write certain values to certain registers.

    "sample 'rangedemo' programs"

    For information about such programs, you need to consult the author of the proram - and see the provided documentation.

Reply
  • You really do need to read the Datasheet for the device!

    Your questions refer to the operation of the particular chip - they have nothing specifically to do with Keil Software!

    The Datasheet will explain to you the functions of the various registers.
    This will show you what happens when you write certain values to certain registers.

    "sample 'rangedemo' programs"

    For information about such programs, you need to consult the author of the proram - and see the provided documentation.

Children
No data