RF-TO-USB2-RD Silicon Laboratories Inc, RF-TO-USB2-RD Datasheet - Page 12

no-image

RF-TO-USB2-RD

Manufacturer Part Number
RF-TO-USB2-RD
Description
RF TO USB EVAL REF DESIGN
Manufacturer
Silicon Laboratories Inc
Series
-r
Type
Sensor Demor
Datasheet

Specifications of RF-TO-USB2-RD

Frequency
915MHz
Lead Free Status / Rohs Status
Contains lead / RoHS non-compliant
For Use With/related Products
-
Other names
336-2139
RF-to-USB-RD2
5.4. Understanding the Project
Examine the user code. One file, mainTxRx.c, contains the user code. Other files contain the code modules from
the ppPhy and do not need to be modified.
The first items called in main.c set the Si1014's DC-DC converter. In this example, the DC-DC converter is used to
step a single-cell battery voltage up to 3.3 V.
void main (void)
{
Next, initialization functions for the system clock, ports, and radio serial port are called:
Then the radio is initialized by the ppPhy:
These functions are included in ppPhy.c. Refer to “AN474: Si1000 Code Examples” and “AN440: Si4430/31/32
Register Descriptions” for additional detail.
Next, enable the interrupts and turn on the radio to receive any incoming packets:
Once initialized, the firmware loops, checking for either a keypress (requesting a packet to be transmitted) or a
receive flag, indicating a packet in the RX buffer.
For this example, the transmitter increments a variable, transmitWord, loads this in to the TxBuffer, and sends it.
The green LED winks to show the transmission.
12
SYSCLK_Init();
U8 status;
U8 RxPacketLength;
U8 transmitWord=0;
S16 tmp;
PCA0MD
// Configure DC/DC converter
DC0CN = 0x47;
DC0CF = 0x04;
PortInit();
SPI1_Init();
status = ppPhyInit();
status = ppPhyInitRadio();
EA = 1;
status = ppPhyRxOn();
while(1)
{
// transmit [1..3] value, incrementing each keypress
if(SW==0)
{
}//if TX
&= ~0x40;
while(SW==0);
TxBuffer[0] = transmitWord++;
if(transmitWord >3)
LED_GRN = ~LED_GRN;
status = ppPhyTx(64,TxBuffer);
LED_GRN = ~LED_GRN;
transmitWord = 1;
// disable watchdog
// 20ns min, big SW, 3.3V
// Local osc, High-Peak Current
Rev. 0.2

Related parts for RF-TO-USB2-RD