您的当前位置:首页正文

电子元器件应用-AN078 -- TIMAC and Z-Stack Modifications for using CC2591 RF Front End

2020-06-04 来源:客趣旅游网


Application Note AN078

By C. Sen, Z. Kyaw

TIMAC and Z-Stack Modifications for using CC2591 RF Front End with CC2530

Keywords

• PA • LNA • CC2591

• CC2530 • TI-MAC • Z-Stack

1 Introduction

This application note describes how to modify the current TI-MAC (v1.3.0) / Z-Stack (v2.2.0) software releases for the CC2530 SoC to support CC2591 PA/LNA controls.

SWRA290 Page 1 of 8

Table of Contents

KEYWORDS..............................................................................................................................1 1 INTRODUCTION.............................................................................................................1 2 ABBREVIATIONS...........................................................................................................2 3 SW MODIFICATIONS FOR CC2530 SOC + CC2591 PA/LNA COMBINATION...........3 3.1 CC2530-CC2591EM 2.0..........................................................................................3 3.1.1 HAL_PA_LNA_RX_LGM()...............................................................................................4 3.1.2 HAL_PA_LNA_RX_HGM()..............................................................................................4 3.2 SPECIAL NOTE FOR Z-STACK (V2.2.0) USERS.............................................................5 3.2.1 hal_mac_cfg.h..................................................................................................................5 3.2.2 mac_radio_defs.h.............................................................................................................5 3.2.3 mac_pib.c..........................................................................................................................5 4 REFERENCES................................................................................................................6 5 GENERAL INFORMATION.............................................................................................7 5.1 DOCUMENT HISTORY.................................................................................................7

2 Abbreviations

EM HAL HGM HW LGM LNA PA RX SoC SW

Evaluation module

Hardware abstraction layer High gain mode Hardware

Low gain mode Low noise amplifier Power amplifier Receive

System on Chip Software

SWRA290 Page 2 of 8

3 SW Modifications for CC2530 SoC + CC2591 PA/LNA combination

Below you can find the SW modifications needed when running the current TI-MAC (v1.3.0) / Z-Stack (v2.2.0) software releases on a CC2530 SoC in combination with a CC2591 PA/LNA. Later revisions of Z-stack or TI-MAC will have these additions already included in the distribution. For CC2590 PA/LNA users, please contact TI support for more information. 3.1

CC2530-CC2591EM 2.0

CC2530 P0_7, P1_1, and P1_4 GPIO pins are used to control CC2591 mode of operations in order to comply with ver 2.0 of the CC2530-CC2591 combo board EM. They are connected to CC2591 HGM, PAEN, and EN respectively. CC2591 is enabled by turning on the compiler switch, HAL_PA_LNA. This compiler switch should be added at the beginning of

“hal_board_cfg.h”. It is to be noted that once the HAL_PA_LNA compiler switch is turned on, the above mentioned pins are configured to be used ONLY for the control of the CC2591. The simple block diagram below shows the interconnect between the CC2530 and CC2591.

CC2530P1_1P1_4P0_7CC2591PA_ENENHGM Figure 1. CC2530-CC2591 Interconnect

In order to change the pin assignment of these control signals, the user must be aware of the following:

1) P0_7 can be moved to any GPIO pin, and the macros below HAL_PA_LNA_RX_LGM() and HAL_PA_LNA_RX_HGM() must be modified accordingly.

2) P1_1 and P1_4 are a subset of GPIO pins (only P1.0-P1.5) that can be configured to support special RF observation output control signals. PAEN and EN of the CC2591 are directly controlled by these signals via the radio core logic of the CC2530. See the CC253x User’s Guide for more details. The user only needs to adjust the OBSSELx registers to change the pin assignment.

When the CC2591 is enabled, only LED1 is available to the users on the SmartRF05EB board due to the shared GPIO pins.

Two (2) APIs are provided to select between CC2591 RX LGM and RX HGM. CC2591 is initialized to RX HGM in HAL_BOARD_INIT().

SWRA290 Page 3 of 8

3.1.1 HAL_PA_LNA_RX_LGM()

Description

This macro selects CC2591 RX low gain mode. To use this macro, “mac_radio_defs.h” must be included in your application.

Macro Definition

#define HAL_PA_LNA_RX_LGM() st(P0_7 = 0; )

Example

In your application, add HAL_PA_LNA_RX_LGM() to switch to RX LGM.

#include “mac_radio_defs.h” …

/* Switch PA LNA to LGM */ HAL_PA_LNA_RX_LGM();

3.1.2 HAL_PA_LNA_RX_HGM()

Description

This macro selects CC2591 RX high gain mode. To use this macro, “hal_board.h” must be included in your application. This macro should be added at the beginning of “hal_board_cfg.h”.

Macro Definition

#define HAL_PA_LNA_RX_HGM() st(P0_7 = 1; )

Example

In your application, add HAL_PA_LNA_RX_HGM() to switch to RX HGM.

#include “mac_radio_defs.h” …

/* Switch PA LNA to HGM */ HAL_PA_LNA_RX_HGM();

SWRA290 Page 4 of 8

3.2 Special Note for Z-Stack (v2.2.0) users

If you use Z-Stack (v2.2.0) release, additional software changes are required. For CC2590 PA/LNA users, please contact TI support for more information.

3.2.1 hal_mac_cfg.h

In “hal_mac_cfg.h”, change the RSSI offset defines to:

/* CC2591 RSSI offset */

#define HAL_MAC_RSSI_LNA_HGM_OFFSET -9 #define HAL_MAC_RSSI_LNA_LGM_OFFSET 4

3.2.2 mac_radio_defs.h

In “mac_radio_defs.h”, change the macRadioDefsTxPowerTable[] table to:

#if defined (HAL_PA_LNA)

const uint8 CODE macRadioDefsTxPowerTable[] = {

/* 0 dBm */ 0x05, /* characterized as -0.8 dBm in datasheet */ /* 1 dBm */ 0x15, /* characterized as 0.70 dBm in datasheet*/ /* 2 dBm */ 0x25, /* characterized as 2.71 dBm in datasheet */ /* 3 dBm */ 0x25,

/* 4 dBm */ 0x35, /* characterized as 4.30 dBm in datasheet */ /* 5 dBm */ 0x35,

/* 6 dBm */ 0x45, /* characterized as 6.64 dBm in datasheet */ /* 7 dBm */ 0x45,

/* 8 dBm */ 0x55, /* characterized as 8.94 dBm in datasheet */ /* 9 dBm */ 0x55, /* 10 dBm */ 0x55,

/* 11 dBm */ 0x65, /* characterized as 10.97 dBm in datasheet */ /* 12 dBm */ 0x75, /* characterized as 12.63 dBm in datasheet */ /* 13 dBm */ 0x75,

/* 14 dBm */ 0x85, /* characterized as 14.08 dBm in datasheet */ /* 15 dBm */ 0x95, /* characterized as 15.06 dBm in datasheet */ /* 16 dBm */ 0xA5, /* characterized as 16.42 dBm in datasheet */ /* 17 dBm */ 0xB5, /* characterized as 17.37 dBm in datasheet */ /* 18 dBm */ 0xD5, /* characterized as 18.45 dBm in datasheet */ /* 19 dBm */ 0xF5 /* characterized as 19.36 dBm in datasheet */ };

3.2.3 mac_pib.c

In “mac_pib.c”, add the \"hal_board.h\" include:

#include \"hal_board.h\"

SWRA290 Page 5 of 8

4 References

[1] [2] [3]

TI-MAC - IEEE802.15.4 Medium Access Control (MAC) Software Stack (TI-MAC) Z-Stack - ZigBee Protocol Stack - Z-STACK - TI Software Folder (Z-Stack) CC253x User’s Guide – SWRU191

SWRA290 Page 6 of 8

5 General Information

5.1

Document History

Revision Date

SWRA290 2009.07.20

Description/Changes Initial release.

SWRA290 Page 7 of 8

SWRA290 Page 8 of 8

IMPORTANTNOTICE

TexasInstrumentsIncorporatedanditssubsidiaries(TI)reservetherighttomakecorrections,modifications,enhancements,improvements,andotherchangestoitsproductsandservicesatanytimeandtodiscontinueanyproductorservicewithoutnotice.Customersshouldobtainthelatestrelevantinformationbeforeplacingordersandshouldverifythatsuchinformationiscurrentandcomplete.AllproductsaresoldsubjecttoTI’stermsandconditionsofsalesuppliedatthetimeoforderacknowledgment.

TIwarrantsperformanceofitshardwareproductstothespecificationsapplicableatthetimeofsaleinaccordancewithTI’sstandardwarranty.TestingandotherqualitycontroltechniquesareusedtotheextentTIdeemsnecessarytosupportthiswarranty.Exceptwheremandatedbygovernmentrequirements,testingofallparametersofeachproductisnotnecessarilyperformed.

TIassumesnoliabilityforapplicationsassistanceorcustomerproductdesign.Customersareresponsiblefortheirproductsand

applicationsusingTIcomponents.Tominimizetherisksassociatedwithcustomerproductsandapplications,customersshouldprovideadequatedesignandoperatingsafeguards.

TIdoesnotwarrantorrepresentthatanylicense,eitherexpressorimplied,isgrantedunderanyTIpatentright,copyright,maskworkright,orotherTIintellectualpropertyrightrelatingtoanycombination,machine,orprocessinwhichTIproductsorservicesareused.InformationpublishedbyTIregardingthird-partyproductsorservicesdoesnotconstitutealicensefromTItousesuchproductsorservicesorawarrantyorendorsementthereof.Useofsuchinformationmayrequirealicensefromathirdpartyunderthepatentsorotherintellectualpropertyofthethirdparty,oralicensefromTIunderthepatentsorotherintellectualpropertyofTI.

ReproductionofTIinformationinTIdatabooksordatasheetsispermissibleonlyifreproductioniswithoutalterationandisaccompaniedbyallassociatedwarranties,conditions,limitations,andnotices.Reproductionofthisinformationwithalterationisanunfairanddeceptivebusinesspractice.TIisnotresponsibleorliableforsuchaltereddocumentation.Informationofthirdpartiesmaybesubjecttoadditionalrestrictions.

ResaleofTIproductsorserviceswithstatementsdifferentfromorbeyondtheparametersstatedbyTIforthatproductorservicevoidsallexpressandanyimpliedwarrantiesfortheassociatedTIproductorserviceandisanunfairanddeceptivebusinesspractice.TIisnotresponsibleorliableforanysuchstatements.

TIproductsarenotauthorizedforuseinsafety-criticalapplications(suchaslifesupport)whereafailureoftheTIproductwouldreasonablybeexpectedtocauseseverepersonalinjuryordeath,unlessofficersofthepartieshaveexecutedanagreementspecificallygoverningsuchuse.Buyersrepresentthattheyhaveallnecessaryexpertiseinthesafetyandregulatoryramificationsoftheirapplications,and

acknowledgeandagreethattheyaresolelyresponsibleforalllegal,regulatoryandsafety-relatedrequirementsconcerningtheirproductsandanyuseofTIproductsinsuchsafety-criticalapplications,notwithstandinganyapplications-relatedinformationorsupportthatmaybeprovidedbyTI.Further,BuyersmustfullyindemnifyTIanditsrepresentativesagainstanydamagesarisingoutoftheuseofTIproductsinsuchsafety-criticalapplications.

TIproductsareneitherdesignednorintendedforuseinmilitary/aerospaceapplicationsorenvironmentsunlesstheTIproductsarespecificallydesignatedbyTIasmilitary-gradeor\"enhancedplastic.\"OnlyproductsdesignatedbyTIasmilitary-grademeetmilitary

specifications.BuyersacknowledgeandagreethatanysuchuseofTIproductswhichTIhasnotdesignatedasmilitary-gradeissolelyattheBuyer'srisk,andthattheyaresolelyresponsibleforcompliancewithalllegalandregulatoryrequirementsinconnectionwithsuchuse.TIproductsareneitherdesignednorintendedforuseinautomotiveapplicationsorenvironmentsunlessthespecificTIproductsaredesignatedbyTIascompliantwithISO/TS16949requirements.Buyersacknowledgeandagreethat,iftheyuseanynon-designatedproductsinautomotiveapplications,TIwillnotberesponsibleforanyfailuretomeetsuchrequirements.

FollowingareURLswhereyoucanobtaininformationonotherTexasInstrumentsproductsandapplicationsolutions:ProductsAmplifiers

DataConvertersDLP®ProductsDSP

ClocksandTimersInterfaceLogic

PowerMgmtMicrocontrollersRFID

RF/IFandZigBee®Solutions

amplifier.ti.comdataconverter.ti.comwww.dlp.comdsp.ti.comwww.ti.com/clocksinterface.ti.comlogic.ti.compower.ti.commicrocontroller.ti.comwww.ti-rfid.comwww.ti.com/lprfApplicationsAudio

AutomotiveBroadbandDigitalControlMedicalMilitary

OpticalNetworkingSecurityTelephony

Video&ImagingWireless

www.ti.com/audiowww.ti.com/automotivewww.ti.com/broadbandwww.ti.com/digitalcontrolwww.ti.com/medicalwww.ti.com/militarywww.ti.com/opticalnetworkwww.ti.com/securitywww.ti.com/telephonywww.ti.com/videowww.ti.com/wirelessMailingAddress:TexasInstruments,PostOfficeBox655303,Dallas,Texas75265

Copyright©2009,TexasInstrumentsIncorporated

因篇幅问题不能全部显示,请点此查看更多更全内容