Texas Instruments TRF4903 User Manual Download Page 14

www.ti.com

5

Software Overview

5.1

Software Description

Software Overview

4.7.5

High-Frequency Crystal

The board has a footprint for a high-frequency (4 MHz) microprocessor crystal (Y3) as well as the
low-frequency crystal. The factory board configuration uses the 32-kHz watch crystal (Y4). An internal
frequency multiplier generates the 2.4576-MHz system clock.

4.7.6

Discrete LC Filter or SAW Filter

A SAW filter is typically used to band-limit the received RF signal and reduce RF interference outside the
ISM band. The SAW filter from Murata (SAFC915MA70N-TC11) gives a pass band typical of 902 MHz to
928 MHz, while providing about 30-dB attenuation in the stop band. Insertion loss in the pass band is
about 4.5 dB. This causes a corresponding loss in operational range due to signal attenuation. The SAW
filter is not normally installed at the factory in order to maximize range rather than noise immunity.

There are other hardware configurations for attenuating transmitter harmonics and filtering out-of-band
received noise. It is recommended that discrete LC filters be used for this purpose. See the TRF6903
Design Guide (

SWRU009

for a detailed discussion on the design of discrete LC filters.

4.7.7

Disabling the MSP430

In normal operation, the MSP430 microprocessor controls the TRF4903 transmitter and the game user
interface. The RF section can also be controlled directly with external computer software. To disable the
microcontroller, either short the MSP430 reset pin (RST) to ground at the JTAG connector (preferred
method), or remove R42, which disables the voltage supply to the MSP430. The TRF4903 can then be
controlled directly through J5, the 14-pin surface-mount header.

4.7.8

Game and RF Operational Modes (Jumper JP2)

The TRF4903 circuit board comes with jumper JP2 set in the position for the game (demonstration link)
mode, where two circuit boards communicate with each other in game mode to demonstrate a wireless
link. In the other jumper position (RF evaluation mode), the TRF4903 is controlled from external software
run on a PC and the commands are passed through the MSP430. This software can be downloaded from
the http://www.ti.com/ismrf website.

This chapter describes the link demonstration firmware that has been flashed to the microcontroller and
external control software for RF test and evaluation.

The demonstration software implements a simple one-way game application utilizing a half-duplex
unidirectional wireless link. The transmit board and receive board have different software. The 4903-based
transmit side software routines are discussed in this section. The software was developed using IAR’s
Embedded Workbench, version 3.20a (www.iar.com). The software files are:

trf4903_demo_us.ewp – Project file

trf4903_main.c – Main body of the program written in C languge. All subroutines are called from this
program

rf_reg.c – C file to configure the TRF4903 registers

api_4903.c – C file for UART interface

trf4903.s43 – Assembly subroutine to program the TRF4903 registers

radio49.s43 – Assembly subroutines that execute wireless transmission commands

setdco.s43 – Assembly routine that sets the baseband clock.

TRF4903 With MSP430 Demonstration and Development Evaluation Kit

14

SWRU010A – October 2004 – Revised May 2005

Summary of Contents for TRF4903

Page 1: ...tise Other related Texas Instruments information includes the following that may be helpful TRF4903 data sheet SWRS023 TRF6903 data sheet SWRS022 MSP430F449 data sheet SLAS344 TRF6903 Design Guide SWR...

Page 2: ...ency RF data link without the need of an external computer and for prototyping by downloading new software code to the MSP430F449 through the JTAG connector This kit is used to evaluate the Texas Inst...

Page 3: ...demo purposes the TRF6903 board is used as a receiver for the TRF4903 transmitter The microcontroller firmware is configured by default to use the 902 MHz to 928 MHz ISM frequency band Additional firm...

Page 4: ...1 c 2 d e f k j i h g Demonstrating a Wireless Link Figure 1 Top Side Back Side of the TRF4903 Demonstration Board TRF4903 With MSP430 Demonstration and Development Evaluation Kit 4 SWRU010A October...

Page 5: ...er A simple game is implemented in the firmware to demonstrate unidirectional RF communication between the TRF4903 transmit board and the TRF6903 configured in the receive mode The user starts the gam...

Page 6: ...smit data the multiplexed pin 16 is programmed for the DCLK mode and the recovered data clock at 38 4 kbps is output at terminal 16 This blinks the LOCK LED at 38 4 kbps Once the transmission is compl...

Page 7: ...r conditions that persist Error conditions are defined as lost communication mismatch in response sequences or response time outs In some cases antenna orientation signal multipath or another interfer...

Page 8: ...switch to ON Step 2 Start the Workbench START PROGRAMS IAR SYSTEMS IAR EMBEDDED WORKBENCH Step 3 Use FILE OPEN WORKSPACE to open the workspace file at Installation root TRF4903_Demo_US eww Step 4 Use...

Page 9: ...to implement The TRF4903 ISM band transmitter IC operates from 315 MHz to 950 MHz It has low power consumption and an operating voltage of 2 2 V to 3 6 V It features an integer N PLL synthesizer and s...

Page 10: ...MSP430F44x See SWRR009 for the TRF4903 transmit side schematics and SWRR001 for the TRF6903 receiver side schematics All the schematics for the demonstration boards can be found at http www ti com is...

Page 11: ...C104KAT2A CAP CER 0603 16 V 10 0 1 F C23 C30 C31 C33 C34 C37 C40 C43 C44 C45 C46 C51 C52 C53 C55 C56 C57 C58 C59 4 1 F AVX TAJA105K016R CAP TANT 3216 16 V 10 1 F C26 C27 C28 C29 4 22 F CAL CHIP GMC32Y...

Page 12: ...W 4050 Green See sample Cap 1 12 mm Switch OMRON B32 1380 Cap SW 12 mm sq fits B3W 4050 Red See sample Cap 1 2468 MemProtectionD BC2AAAPC Battery holder 2 X AAA PCB Mount BAT1 ev 1 TP Red Kobiconn 41...

Page 13: ...figuration at the silk screen Table 3 lists information for some antenna suppliers If the PCB antenna is not used leave it unconnected remove the matching components from each end and substitute one 1...

Page 14: ...referred method or remove R42 which disables the voltage supply to the MSP430 The TRF4903 can then be controlled directly through J5 the 14 pin surface mount header 4 7 8 Game and RF Operational Modes...

Page 15: ...roller is configured as a state machine to run the link demonstration Figure 8 illustrates the state machine flowchart for the TRF4903 transmit board and the TRF6903 receive board Buttons and timer fu...

Page 16: ...eived Remote Button Packet Local Button Activated Received Response Packet 5 Second Timed Out All 4 Button Pushed 3 sec Timeout All Response Button 3 sec Timeout Local Button Initiated COM Response to...

Page 17: ...ing timer Over time the receive timing could shift in phase relative to transmit timing due to the small variation in component tolerances and performance This shows up as an error in sampled data The...

Page 18: ...Application Register Values Register Parameter Value A PA attenuation 0 dB Mode 0 TX Charge Pump 0 5 mA Frequency Band 915 MHz TX Frequency 902 3488 MHz B PA attenuation 0 dB PA Enabled Mode 1 TX Mod...

Page 19: ...int f_sel trf4903 a bit B_DIV_M0 MAIN_B_T pointer trf4903 a bit A_DIV_M0 MAIN_A_T pointer program_TRF4903_word trf4903 a all trf4903 b bit B_DIV_M1 MAIN_B_R pointer trf4903 b bit A_DIV_M1 MAIN_A_R poi...

Page 20: ...out by the user before clicking the Send All button to configure the RF transceiver Some of the boxes will toggle state when the cursor is placed over the box contents and double clicked power amplif...

Page 21: ...erent set of firmware needs to de downloaded to operate the evaluation kit at the EU band The firmware can be downloaded from the www ti com ismrf website See the Operating the TRF4903 With MSP430 Eva...

Page 22: ...768KHZ R47 100 J2 HEADER 7X2 1 2 3 4 5 6 7 8 9 10 11 12 13 14 U6 MSPF449 59 58 57 55 54 53 12 13 46 47 48 49 50 51 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 52 56 14 15 16 17 18 19 20 21 2...

Page 23: ...PRODUCED OR COPIED OR USED PARTIALL Y OR WHOLLY IN ANY MANNER WITHOUT PRIOR EXPRESS WRITTEN AUTHORIZA TION OF CNOWIRE TECHNOLOGY INC LEDRED LEDORN LEDYEL LEDGRN VCC VCC R13 10k R14 10k R17 10K SW2 PB...

Page 24: ...10k C14 43pF D13 MBRM120LT3 D10 RED R10 15K R61 200 C55 1uF C54 100pF D12 RED R44 10 R35 10 Y2 19 6608MHZ C17 27pF U1 TRF4903PW 9 5 7 4 8 6 11 12 15 13 3 2 1 18 19 20 21 22 24 23 16 10 17 14 VCO_GND...

Page 25: ...ute a license from TI to use such products or services or a warranty or endorsement thereof Use of such information may require a license from a third party under the patents or other intellectual pro...

Page 26: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information Texas Instruments MSP TRF4903 DEMO...

Reviews: