Texas Instruments TRF4903 Скачать руководство пользователя страница 17

www.ti.com

5.3

Wireless Protocol

....

....

0

Pre-Amble

1

0

1

1

1

1

Packet Start Bit

Word0 Synch Bit

Word1 Synch Bit

Word0

Word1

Communication Protocol

0

Bit Width = 26 

S

....

Software Overview

The wireless data communication protocol is digital FSK at 38,400 bits per second with NRZ coding. The
communication protocol used for the demonstration board includes preamble, packet start bit, and
word-sync bit as illustrated in

Figure 10

.

Figure 10. Communication Protocol

Preamble

The function of the preamble is to train the receive hardware to set the proper reference voltage threshold
to extract 1 and 0 data. The preamble consists of a train of alternating ones and zeros. A longer preamble
may give better performance at a cost of more time to deliver an equivalent data packet. The current
design has a preamble 100 bits long, or 2.6 ms in duration. Shorter lengths may be used for more
time-critical applications.

5.3.1

Packet Start and Word-Sync Bits

The packet start bit and the word sync bit are used by the receive routine to adjust microprocessor timing
for sampling the incoming data stream. The packet start bit occurs once at the beginning of the data
packet to indicate the end of the preamble and the start of data. The sync bit is used to resynchronize the
bit stream and the data sampling 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 problem gets worse as the packet size increases. Resynchronization minimizes
this drift over time.

Although resynchronization can be done at byte boundaries, word boundary resynchronization is slightly
more efficient.

The data clock recovery feature of the TRF4903 and the TRF6903 provides a convenient way to
synchronize data.

5.3.2

Wireless Data Stream

The wireless data stream for the game application is implemented as follows:

User initiates an RF transmission on Board A (TRF4903 demo board) by pushing four buttons in any
sequence.

User sequence is sent to Board B (TRF6903 demo board) using the transmission data packet
described in

Table 4

embedded in the communication protocol described in

Figure 10

The

transmission packet includes a unique header, four bytes with the button IDs and a checksum.

Board A then goes to the IDLE_STATE and waits for further button pushes.

Board B receives the 6 data bytes, calculates the checksum and compares it with the received
checksum. If checksums match, it lights up the LED’s on the receive board in the same order in which
the transmit buttons were pressed. The Board B then goes into the receive mode and listens for
transmissions.

SWRU010A – October 2004 – Revised May 2005

17

TRF4903 With MSP430 Demonstration and Development Evaluation Kit

Содержание TRF4903

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 26: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information Texas Instruments MSP TRF4903 DEMO...

Отзывы: