i want to interface RFM22B to 8051 family micro controller…using spi communication,SDI access the internal registers of RFM 22B…i found Arduino file from your website…i am not familiar to Arduino board as well as code. how to pass the data using SPI communication to use all applications of RFM22B by this micro controller.
Read the data sheet for the 8051 variant you have. Does it have a hardware SPI module?
If yes then read the data sheet on how to setup the SPI hardware.
If not then learn how to ‘bit-bang’ the SPI protocol. This is not difficult and google will find you lots of info on serial bit-banging.
Last step is to study the RFM22B data sheet for the sequence of writes/reads to ‘talk’ to it. Any of the Arduino C code for the higher level RFM22 protocol can be ported to C code for the 8051.