I'm currently working on a project in which i have to enable wireless communication between two nxp mcu (part no: P89V51RD2). I intend to use the TR24A (a 2.4GHz multi-channel transceiver RF module) for this purpose. Could anybody please help me out with an algorithm or a flowchart for the programming...
i'm attaching herewith the datasheets of my mcu n the transciever...
you are going to need a better datasheet for the RF module. The datasheet you posted contains no information on how to communicate with the module via SPI.
The mcu you are using does have an SPI module built in, however the mcu runs at 5V and the RF module runs at 3V. You age going to need a Logic level conversion circuit. Logic Level Converter - SparkFun Electronics
* That's all the info i received about the transciever ic from the web as well as the electronic store from where i purchased it... :roll:
Well thanks for the link for the logic level converter.. i will definitely get me one of those later... But to begin with i wish to start with the programming part.. could you get me some help with that mate..???
Without knowing the packet structure (i.e. header information, address info for each transceiver, etc...)
it is just about IMPOSSIBLE to "GUESS" what to do just to send data to the module.
For example, the NRF2401a modules (also 2.4GHz) require configuration before they will operate correctly.
You must send a series of configuration bits followed by the address of the receiver.
Code:
0x00, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00 ;configuration data
0xAA,0xBB, 0xCC, 0xDD, 0xEE ;48 bit address
0xA3, 0x4F, 0x05 ;configuration data
If this is your first project, you should use an easier module such as these ones: