Home

Texas Instruments CC2511 User's Manual

image

Contents

1. av YETI L1 L BEAD I82 B4B2 Ld m ewe 2 24 EN i Ez 4 E IU BBB5 X7R K 1B A o j 3 un WoT RS PES EE 1O PCR 1 PN qo PR T omo r Ton Tomu 7 uo pam l LIG 7 LC EQ T 24 C 2l p at a la J a di y Da E 3 i is S z is z m 2 r3 ad a f Fal Rz L Tx A Hr L E L L 5 FE 2 zs ra m s sv a S ww 7 SU Ge E Al or Antenna_liFA_ n x I A LH S CE25 F x ta i M 2 DVDD L231 ze T E DvDBD AVDD t L 1N2 482 5 a INN mm i x 28 DGUARD AVDD 2 A M EM Bum gt m AVDD_DREG AVDD EX SS 740 DCOUPL AVDD 28 Tr FA paz E231 L IN2 0452 5 P2 D 4 P20 LiB P E482 NPB J GB X DAD k 2 P2 15 Xa P2 1 232 n 1 2 m ESTE a P2_2 m gt C iPn n402 _NPa_C 5a mu PI_BVLED 4 FILHAZLED RF FP 33 I PICI LED x i PI I LED a H402_NPG_J_5a v E ed B482 NP L 5H P1 2 x yl Pile RFN 24 T D T 2 i H i uin z PICS x dB P1 3 b x La PI 4 x 8 1 4 M Hl PILS Xi P15 C242 ee 33 PIB P2 3 XDSE32 Dl 7 C IPB 8482 NPE C 5H 234 n g c cada Fee B2 4 xDS8LD32 02 L241 E iP5 PaB
2. P2 2 PA DP amp xPA DP PA DM PA DM CONTRACT NG 02577 COMPANY NAME CHIPCON AS APPHOVALS DATE E2511 dongle DRAWH uH TAL MJ MEIE ESCM NO DWG NO REV CHECKED TER A 1 1 ISSUED SCALE SHEET 4 CC2511 Dongle schematic page 1 Figure 13 Page 20 of 24 SWRU082 INSTRUMENTS 35 TEXAS CC251I Dongle ducts Pro ipcon from Texas Instruments Ch C VBUS To CC25M d 3V Fram FE amp uz TPS7BH33 T In Out x YAEG gii x EN NC I Gnd CB 1 E LIU HBB3 XBRL GP3 LIE H4H2 x x d n pc I no I na Cc t9 gi m tu PS Lu a 7 bn 31 Nat mount CB CONTRACT NO COMPANY NAME 02577 CHIPCON AS APPAOVALS DATE DWG CC251 USB DONGLE VOLTAGE REGULATOR uH TALA T SEM N DWE NO REV CHECKED TER Ad 1 4 ISSUED SCALE SHEET 2 4 DRAWN Page 21 of 24 Figure 14 CC2511 Dongle schematic page 2 SWRUO82 INSTRUMENTS 35 TEXAS CC251I Dongle ipcon Products from Texas Instruments Chi
3. e Select the Category Chipcon e Click on the Target tab e Check the Reduce interface speed option See Figure 7 YF IAR Embedded Workbench IDE File Edit wiew Project Tools Window Help Daa S i selo olf Highlight the Workspace usb frameworl project name Debug 192 y 173 l74 ff 175 vo 176 m B fifo buffer c 17e 2 lio_buffer c 178 wo La G hal 178 2 rfConfig c BEEN UN Fa iSetRadioFrequency c 181 vo Figure 6 Highlight the project name Options for node winamp remote dongle x Category Check the General Options Reduce interface C C Compiler Download Target ssemble speed option Custom Build Build Actions Linker Debugger Number of banks 4 Third Party Driver v Enable stack overflow warning ROM Monitor Analog Devices Silabs Simulator Log communication communication log Figure 7 Reduce interface speed 35 TEXAS INSTRUMENTS SWRUO82 Page 8 of 24 C Chipcon Products CC2511 Dongle from Texas Instruments 6 CC2511 application examples This section describes the application examples available for the CC2511 These application examples focus on how to use the USB on the CC2511 The examples is available both as source code and ready to upload hex files from the Chipcon website There are three CC2511 application examples e Wireless mouse practical joke HID Human Interface Devices e Wireless U
4. 1233 Length Address Address Address dBm FCS 133835 0x35 0x01 0x121314 5 OK Time us Dest Source Network RSSI P nbr 1220 Length Address Address Address dBm FCS 135055 OxOl 0x35 xlzl1314 29 OK Time us Dest Source Network RSSI P nbr 1199 Length Address Address Address dBm FCS 136254 Ox35 0x01 0x121314 51 OK Time us Dest Source Network RSSI P nbr 1203 Length Address Address Address dBm FCS 137457 OxOl 0x35 xlzl1314 29 OK Time us Dest Source Network RSSI P nbr 1234 Length Address Address Address dBm FCS 136691 6 Ox35 OxOl 0x121314 51 OK Setup Select fields Packet details Address book Display fiter Time line Radio Settings FipEPERRERRER Select connected device ip type CC2510 EB type SmartRFO4EB EB ID 0319 Chip type CC2510 EB type SmartRFO4EB Select packet buffer size 20 MB Select channel Clock multiplier 1 0 Packet count 10780 Error count 4 Filter Off Figure 8 Screenshot of the Chipcon General Packet Sniffer 35 TEXAS INSTRUMENTS SWRUO82 Page 9 of 24 Chipcon Products C511 Dongle from Texas Instruments 6 1 Wireless mouse practical joke This application demonstrates the use of the CC2511Dongle as a USB composite HID Human Interface Device
5. Sza ne F SMa Salva S v UHddVv 5 Ped LI ra Sv NOJdIH ZIOZ ES E JWYN ANVdADO ON 12vHINOJ ro J AES E Zdx bd N l383H7 8 ld x a ie S ids 8 7 Zd I t eg EXZ MDHNId Lat HH a Zdx x xL t 7 G dx xE xf xb d be x E Bd m s xc Od Es Ede E x NE X Z H3v3H UNWS S GX Z MONI d oS bd tr 4 B ES AE ARE ace T ys 5ngap gos AE suid sa eum y ppy Z ld SHAHS NOLLNS HBSfld IS Wo yng J8ASIZ BI137031 zd ER I31 171d x si D SE pde N ve d BS D HN EBEH d t d rds AN a d Biarug ASTAN ZAA dt Te z E planus bi 1 I Z tA EE H TOFU Y CNS dd vd x E T pg NI vd 7 z Z a Jg cra EE H ESZH x SNBA va eM YESA kai ol ae Id t BM im SNEHA h 131 87lo ar ZAPA ATH GY z ru r2 d m Ctr wi SIF 4844 AS amp AE E c Page 23 of 24 Figure 16 CC2511 Dongle schematic page 4 SWRUO82 TEXAS STRUMENTS IN Chipcon Products C511 Dongle from Texas Instruments 10 Document history Revision Date Description Changes 2006 07 06 Initial release INSTRUMENTS SWRUO82 Page 24 of 24
6. The customer may not e Change decompile disassemble or in any way reverse engineer the cudal sys file Please contact Thesycon www thesycon com for information on how to obtain a licence T 3 Other firmware modules and libraries To ease the firmware development there are also general firmware modules and libraries available for the CC2510 and CC2511 The most important is the HAL library which contains functions and macros to enable and use all peripheral units on the CC2510 and CC2511 There is also an EB library containing functions and macros to use the peripheral units found on the SmarRFO4EB development card These libraries are all documented in the HAL CUL EB Software User Manual pdf Examples on how to use these libraries are found in the CC2510 application examples These application examples are documented in CC2430DK CC2510 CC1110 User Manual pdf The software is found in CC2510DK App_Ex cc2510 The CC2511 application examples use a library called CC2511AppExLibrary This library contains the following modules e HF module a simple RF protocol used in the CC2511 application examples e Timer4 manager module use timer4 to call functions at regular intervals e Buffer module implementation of a FIFO First In First Out buffer This library is documented in a compressed HTML file CC2511AppExLibrary chm The CC2511AppExLibrary is divided into two parts one for the CC2510 EM and one for the CC2511 USB Dongle The CC
7. free USB port The firmware will identify the CC2511 Dongle as a composite HID with a keyboard and mouse On most operating systems no extra driver is necessary the OS will automatically load a standard driver for HID devices The pot meter RT1 on the SmartRFO4EB is used to choose between the simple mouse and the practical joke mode Turn the pot meter fully counter clockwise to select the simple mouse fully clockwise to select the practical joke mode In simple mouse mode the joystick on the SmartRFO4EB can be used as a mouse The button S1 is the left mouse button pushing the joystick is the right mouse button While in simple mouse mode the CC2510 will calculate the RSSI Receive Signal Strength Indicator on the packets received from the CC2511 Dongle and display it on the LCD screen The RSSI value is updated each second In practical joke mode there are three jokes to choose from e Moving mouse the mouse will constantly move slowly towards the right e Write to screen Writes the text anybody home to the PC e Change window ALT TAB Changes the active window in Windows by sending the ALT TAB keystrokes Move the joystick up and down to select joke push S1 button to start stop a INSTRUMENTS SWRUO82 Page 10 of 24 Cc Chipcon Products CC25 17 Dong e from Texas Instruments 6 2 Wireless USB to Serial port converter This application example is a wireless USB to serial port RS232
8. programmed CC2511 USB Dongle from the SmartRFO4EB and plug it into a free USB port on the PC 7 When windows ask for a driver point to the file CC2511ApExWinAmpRemote inf INSTRUMENTS SWRUO82 Page 13 of 24 Cc Chipcon Products CC251I Dong e from Texas Instruments 8 lf windows ask for the file cudal sys or cudal98 sys point to cudal sys or cudal98 sys 9 Turn on the CC2510EM SmartRFOAEB 10 The USB dongle may have to be removed and reinserted once to the PC for the application to work 6 3 8 Running the application 1 Start WinAmp the gen chipcon remote plug in will automatically be loaded 2 Make sure the CC2510 USB Dongle is plugged into a USB port on the PC 3 Turn on the SmartRFOAEB development card with the CC2510EM e The song title volume time and status will appear in the LCD screen on the SmartRFO4EB e The controls are the following o Joystick up down next previous song o Joystick left right fast forward backwards o Push joystick toggle play pause o Push button S1 toggle play list shuffling o Turn pot meter Pot adjust volume INSTRUMENTS SWRU082 Page 14 of 24 Chipcon Products C511 Dongle from Texas Instruments 7 USB development framework A versatile efficient and easy to use USB development framework is available for the CC2511 The intension with this framework is to make USB development as quick and easy as possible
9. standard requests o GET DESCRIPTOR GET STATUS SET CONFIGURATION GET CONFIGURATION SET INTERFACE o GET INTERFACE e All vendor requests e Allclass requests e BULK and INTERRUPT transfers with asynchronous and synchronous read and write functions OO O The following features are not supported in CUDAL e The following standard requests o SET DESCRIPTOR o SET FEATURE o CLEAR FEATURE e sochronous transfers INSTRUMENTS SWRUO82 Page 16 of 24 C Chipcon Products CC2511 Dongle from Texas Instruments The complete documentation of the CUDAL framework is available in a compressed HTML file cudal chm found in CC2511DK pc_sw CUDAL doc 7 2 1 Windows USB driver license The Windows USB driver framework CUDAL is based on the USBIO driver from Thesycon This driver is not free and requires a licence Texas Instruments have a license that allows its customers to do the following e Use the application examples included in the kit e Develop own applications using CUDAL Chipcon USB Dongle Access Library as long as all development and testing is done on the hardware CC2511 USB Dongle supplied in the development kit from Texas Instruments e Modify or add functionality in the CUDAL library The customer must purchase their own license if they wish to do any of the following e Develop or test software on hardware that was not supplied in the development kit e Go into production with a product that uses the driver
10. the two sources at a time Do not connect the USB cable to the CC2511 Dongle while it is powered from the SmartRFO4EB The SmartRFO4EB have a level converter on the debug connector so the SmartRFO4EB and the CC2511 Dongle may have a different power supply voltage INSTRUMENTS SWRUO82 Page 4 of 24 Chipcon Products C511 Dongle from Texas Instruments Figure 2 CC2511 Dongle powered from SmartRF04EB 6 Turn on the power on the SmartRF04EB See Figure 3 Figure 3 SmartRFO4EB Power switch power on The CC2511 can now be programmed with the Chipcon Flash Programmer software The firmware on the CC2511 can also be debugged using the IAR embedded workbench debugger Please see the IAR user manual and the Chipcon Flash Programmer user manual for more details Ip 4 INSTRUMENTS SWRUO82 Page 5 of 24 Chipcon Products C511 Dongle from Texas Instruments 5 Using SmartRFO4EB as an In Circuit Emulator ICE The SmartRFO4EB can be used as ICE for the CC251 1 To use the SmartRFO4EB as ICE the IAR Embedded Workbench software must be installed The Embedded Workbench is a C Compiler Simulator and ICE debugger See the IAR Embedded Workbench documentation supplied with the kit for instructions how to set up the ICE debugger for use as an ICE When the SmartRFO4EB is connected to a PC with the USB port the debugger will connect to the SmartRFO4EB Several SmartRFO4EB can be connected to USB ports simultaneously A selectio
11. with both keyboard and mouse The application will work on most operating systems This application example uses the USB framework found in the CC2511 firmware library to setup the USB on the CC2511 Dongle and to handle all USB standard requests In addition the Class requests required by the HID device class are implemented in a separate file The radio communication between CC2510EM and CC2511 Dongle is done using the RF part of the CC2511 firmware library See Device Class Definition for Human Interface Devices HID found on http Awww usb org developers devclass docs HID1 11 pdf for more information about the HID class 6 1 1 Software components e simple hid dongle hex The CC2511 USB Dongle firmware is found in CC2511DK embedded_sw App_Ex simple_hid simple_hid_dongle e Simple hid eb hex The CC2510 EM firmware is found in CC2511DK embedded_sw App_ Exsimple hidWsimple hid ebV 6 1 2 Installing the application 1 Attach the CC2510EM to a SmartRFO4EB and program it with the flash image simple hid eb hex using IAR workbench or the Chipcon FLASH programmer See CC2430DK CC2510 CC1110 User Manual for more information 2 Connect the CC2511 Dongle to the other SmartRFO4EB and program it with the flash image simple hid dongle hex using IAR workbench or the Chipcon FLASH programmer See CC2430DK CC2510 CC1110 User Manual for more information 6 1 8 Running the application Insert the CC2511 Dongle into a
12. 2 MPO E 5B xd me L_1N2_0482_S PB B ATEST Era ji PALI xDSE D zi T BH E 1 P _2 XOSC_O2 28 i Si E B8 P833 arro 3 PU 4 RBIAS 22 eke PB Ex a Pas i 2 iB PADRE 2 B sot 5 PADM ii n d Es x 25 BEUB Z IB ZZ 18 15 RESET Mi a SET N GND Exposed 35 R 5BK B482 F R0402 up Bem JZ m EM L261 x2 Ev L IEAI _ 15 08 18 18 16 16 Alternative XTAL pad 1 2 all Lu a 31 T co 7 zt 2 C 33P p482 NPB 5B Tm CONTRACT NO COMPANY NAME C0402 C 33P 8482 NPB J 58 02577 HIPCON AS APPROVALS DATE DWG EC251 1 USB DONGLE RF PAAT DRAWN TALZAUA ET SEM NO DWE NO REV CHECKED Not mount RIB AM R12 L2BI E212 XI TBR 4 i Change from 48 MHz oscillator frequency to 16 MHz with 3rd harmonic network L2 C5 IS ED SCALE SHEET J 4 c Page 22 of 24 Figure 15 CC2511 Dongle schematic page 3 SWRUO82 TEXAS STRUMENTS i IN CC251I Dongle Products ipcon from Texas Instruments Ch vlt 133H8S Emini qanss5l LI UV Hea I I3323H3 SET ni a AJH ON Saad ON ANISA IZIS ay ay e i ad H HH EH uno ON NMHC r4 5 amp 41tn2413 gsn a6uep sN
13. 2511AppExLibrary and documentation is found here e CC2510 CC2511DK embedded_sw Library cc2510 CC2511AppExLibrary e CC2511 CC2511DK embedded_sw Library cc251 1 CC2511AppExLibrary INSTRUMENTS SWRUO82 Page 17 of 24 c frown Toxa I cl CC25 1 Dong le 8 CC2511 Dongle hardware description PCB antenna Line marking cutaway section of the dongle LE ts Button USB connector GPIO testpins Debug connector Figure 11 CC2511 Dongle top view Alternative debug connector A p go UR mL Dong le Rev 1 1 2005 19 039 Texas Instruments CC 2511 Figure 12 CC2511 Dongle back view 8 1 User Interface The CC2511 Dongle has one button and one LED that can be used to interact with the user The LED is connected to pin P1 1 Setting P1 1 high to logic 1 will turn the led on The button is connected to pin P1 2 and GND The pin P1 2 should be configured as an input with pull up The button is pushed when P1 2 is pulled low to logic O 8 2 USB interface The CC2511 Dongle has a standard USB connector The dongle is powered through this connector On the D line there is a pull up used to identify the dongle as a full soeed USB unit on the USB bus The pull up can be controlled from the firmware using P1_0 This enables the firmware to be connected to the USB bus for a period of time before it signals its presence to the USB hub 3 TEXAS INSTRUMENTS SWRUO82 P
14. C Chipcon Products CC2511 Dongle from Texas Instruments CC2511 Dongle User Manual Rev 1 0 TEXAS INSTRUMENTS SWRUO82 Page 1 of 24 Cc Chipcon Products CC25 17 Dong e from Texas Instruments Table of contents 1 INTRODUCTION e 3 2 ABOUT THIS MANUAL oa ieRaE Fere ois copo ERERONED Fou e RERRPUREEUK O40 SERERE ERO UqR SEES TORRES ar arainn avada 3 3 DE ETN INS 3 4 CONNECTING CC2511 DONGLE TO SMARTREO4EB cccecscccccccccccccccccccccees 4 5 USING SMARTRFO4EB AS AN IN CIRCUIT EMULATOR ICE cscccossssecccscseoes 6 5 1 DEBUGGING USB BIR MW ABE Sectenisesdacssuvue Enos Eo ou duo BUR a 7 5 2 MTS PR OB D ERR C M 8 6 CC2511 APPLICATION EXAMPLES wisscssictcctecccscnscascdeutcetescescasedcubsancecedoascdsubdasencscvadedenteessies 9 6 1 WIRELESS MOUSE PRACTICAL JOKE ccccceccececcsceccecescececcscuceececcecscescscscsctscscesescucescesescusescncacs 10 6 1 1 Software OO OTIC n T P M 10 6 1 2 Installing the application PNE ETE LITERE 10 6 1 3 Running the TE LUO MERO cT MN 10 6 2 WIRELESS USB TO SERIAL PORT CONVERTER ceccececcececcececcececcececescscscscescscesescusescecscecescncass 11 6 2 1 DOP S OVETTANE OI TIT TAE E ll 6 2 2 Installine the COM CT EERE EEE EE E EEE EE EEE E E EE EEEE ERE 11 6 2 3 Run
15. SB to Serial port converter CDC Communication Devices e Wireless WinAmp remote control Vendor requests custom Windows driver There is also a CC2510 Application Example available This example provides valuable information about setup and usage of different modules found in both CC2510 and CC2511 Please see the CC2430DK CC2510 CC1110 User Manual for more information about this Application Example All the application examples use the same packet format and radio frequency This is done to make it simple to observe the radio activity on the Chipcon General Packet Sniffer After installing the packet sniffer choose the CC2511 App Example protocol to see the radio traffic Figure 8 show the packet sniffer observing radio traffic in the Wireless USB to Serial port converter application example See the Chipcon General Packet Sniffer user manual for more information Chipcon General Packet Sniffer CC2511 App Example File Help O S Winall js i Time us Dest f Source Network Flag RSSI Pn io LEMS address f Address Address Type InSusp R wakeup Pnd Ack req Seq dBm bes al 0 6 OxFF 0x35 OxFFFFFF BIND REQ 0 0 0 4t 29 OK Time us Dest Source ES RSSI P nbr 1188 Length Address Address Address E id 1188 7 xFF x l ES E Time us Dest Source Network E P nbr 131414 Length Address Address Address dBm B 132602 OxOl 0x35 Oxlz1314 E Time us Dest Source Network RSSI P nbr
16. The framework includes a firmware framework for the embedded software on the CC2511 and a Windows USB driver framework In addition there is general example code and libraries available showing how to use the CC2510 and CC2511 MCU radio and other peripherals 7 1 CC2511 USB embedded firmware library The CC2511 USB library is a software package aimed at making development of USB devices with the CC2511 quick and simple It supports both vendor specified device classes and standardized device classes such as HID and USB audio with any number of configurations interfaces and alternate settings The following features are provided e Initialization of the USB peripheral unit and response to reset signaling on the bus e Automated response to almost all standard requests based on data from the USB descriptor set the SYNCH FRAME and SET DESCRIPTOR requests must be handled by the application e Automated setup of endpoint control registers depending on the selected configuration and interface alternate settings e All endpoint types are supported Setup bulk interrupt and isochronous e A simple and efficient interface for responding to class and vendor requests Both automated and manual data transfer is supported e Endpoint access via a simple set of macros and functions e Support for suspend mode and remote wake up e A function hook and event based interface allows for the framework to run from main the USB interrupt or a comb
17. age 18 of 24 Chipcon Products C511 Dongle from Texas Instruments 8 3 Debug connector The CC2511 Dongle has debug connector P3 that is compatible with the SoC debug connector on the SmartRFO4EB This enables the CC2511 Dongle to be programmed and debugged via the SmartRFO4EB The debug connector and the test pins on the CC2511 Dongle can be removed to reduce its size If that is done programming and debugging can still be done using the connector on the back of the CC2511 Dongle P5 The pin out of the debug connector P3 is given in Table 2 8 1 Pt6 09 9 Jj 9 Notconnected VDD by mounting R6 0 Ohm Table 2 Debug connector P3 pin out 8 4 General purpose I O connectors All GPIO pins on the CC2511 that are not used on the Dongle are routed to the P4 Test pins pin row They can be used for debugging or to connect external devices to the CC2511 The pin out is given in Table 3 Table 3 Test pins P4 pin out 8 5 Cutaway section On the CC2511 Dongle the debug connector and the GPIO test pin connector is mounted on a section of the Dongle that may be removed to minimise the CC2511 Dongle size This cutaway section is marked with a white line see Figure 11 If this section is removed from the dongle the CC2511 can still be programmed and debugged using the alternative debug connector found on the back of the CC2511 Dongle see Figure 12 8 6 RF Performance of PCB antenna The per
18. cesessescescescssescescascsens 19 8 5 CUTAWAY SECTION NMKTRI 19 8 6 RF PERFORMANCE OF PCB ANTENNA ccccecesceccecececcececececsceccscsesceseecucesceceececscscescecusescusesces 19 9 CC2511 DONGLE SCHEMATICS 2 cccccccccccccccccccccccccccccccccccccccccccccccccccscccccccccccces 20 10 DOCUMENT HISTORY eeeseeseseesesesccsesecsesesccsesecceseseoseseceosesescoseseoscseseosesesecsesececseseoseseseosesesees 24 Li kis TEXAS INSTRUMENTS SWRUO82 Page 2 of 24 C Chipcon Products CC2511 Dongle from Texas Instruments 1 Introduction Thank you for purchasing a SmartRF 04DK Development Kit Please note that Chipcon uses the term SmartRF 04DK as a collective term for all development kits on the SmartRF 04 platform This development platform supports evaluation development and prototyping using the SmartRF 04 products from Chipcon Make sure to subscribe to Chipcon s Developer s Newsletter to receive information about updates to documentation new product releases and more Sign up on the Chipcon web site 2 About this manual This manual covers the CC2511 Dongle found in the CC2510 CC2511DK It covers both the CC2511 Dongle hardware and software components of the development kit It covers the use of CC2511 application examples The CC2510EM and CC2510 application examples are covered in a separate document SmartRF Studio has its own user manual The Chipcon Pack
19. converter It creates a virtual serial port in Windows Data sent to this virtual serial port will be sent to the CC2511 Dongle over USB then to CC2510 EM over radio and finally out on the serial port on the CC2510 EM SmartRFO4EB Data sent to the serial port on the SmartRFO4EB will be transferred to the virtual serial port in Windows Full duplex and flow control on the serial port CTS and RTS lines are supported The radio link has CRC check and automatic retransmission for error free operation The application uses a CDC driver found in Windows if used on other operating systems a suitable driver must be found created The Windows driver is rather slow and will limit the maximum throughput to approx 70 Kbit s This application example uses the USB framework found in the CC2511 firmware library to setup the USB on the CC2511 Dongle and to handle all USB standard requests In addition the class requests required by the CDC device class are implemented in a separate file The radio communication between CC2510EM and CC2511 Dongle is done using the RF part of the CC2511 firmware library The application example also uses the buffer module in the library to handle data buffering and the timer4 manager module for timing See Class Definitions for Communication Devices found on http Awww usb org developers devclass docs usbcdc11 pdf for more information about the CDC class 6 2 1 Software components e rs232 to usb dongle hex Th
20. e CC2511 USB Dongle firmware is found in CC2511DK embedded_sw App_ Exwvs232 to usbws232 to usb dongle e rs232 to usb eb hex The CC2510 EM firmware is found in CC2511DK embedded_sw App_ ExWws232 to usbWws232 to usb ebV e CC2511ApExSerialPort inf The windows driver for the Wireless USB to Serial port found in CC2511DK pc_sw App_Ex rs232_to_usb driver 6 2 2 Installing the application 1 Attach the CC2510EM to a SmartRFO4EB and program it with the flash image rs232 to usb eb hex using IAR workbench or the Chipcon FLASH programmer See CC2430DK CC2510 CC1110 User Manual for more information 2 Connect the CC2511 Dongle to the other SmartRFO4EB and program it with the flash image rs232 to usb dongle hex using IAR workbench or the Chipcon FLASH programmer See CC2430DK CC2510 CC1110 User Manual for more information 3 Disconnect the programmed CC2511 USB Dongle from the SmartRFO4EB and plug it into a free USB port on the PC 4 When windows ask for a driver point to the file CC2511ApExSerialPort inf INSTRUMENTS SWRUO82 Page 11 of 24 Chipcon Products C511 Dongle from Texas Instruments When Windows have finished installing the device a new serial port will appear in the device manager in Windows See Figure 9 Z Device Manager 000000 nix C by Multifunction adapters G H Network adapters BED 3Com Gigabit NIC 3c2000 BB Intel R PRO 1000 CT Network Connection Er F Po
21. e OS in use may crash or misbehave Hence breakpoints should be used with caution Obviously inserting and using breakpoints in the firmware during debugging will be extremely useful to pinpoint bugs and follow code execution And they can and should be used But they will also stop the code execution on the CC2511 and may cause the device to act in conflict with the USB specification This can lead to the PC disconnecting the CC2511 Dongle sending a USB reset or worst case the operating system may crash If the firmware contain bugs that make the PC disconnect the CC2511 Dongle it may be necessary to disconnect the USB cable and power the CC2511 Dongle from the SmartRFO4EB in order to reprogram it 1 INSTRUMENTS SWRUO82 Page 7 of 24 Chipcon Products C511 Dongle from Texas Instruments 5 2 Known problems When using the debug interface through the level converter on the SmartRfO4EB Shown in Figure 1 and Figure 2 it might become unstable This problem is more likely to occur a low voltages or with crosstalk in the cable at high interface speed First make sure that the 10 pin flat cable used to connect the CC2511 USB Dongle to the SmartRFO4EB is as short as possible Next it might be necessary to reduce the debug interface speed in order to achieve stable operation In the IAR workbench do the following e Highlight the project name by clicking on it in the Files window See Figure 6 e Go to Project gt Options
22. et Sniffer has its own user manual The Chipcon Flash Programmer has its own user manual Further background information can be found in the device datasheets 3 Definitions SmartRFO4EB Evaluation Board Main board with LCD USB interface LEDs pot meter etc Platform for the Evaluation Modules EM see below SmartRF 04DK A collective term used for all development kits for the SmartRF 04 platform i e SmartRFO4EB EM CC2510EM CC2510 Evaluation Module a small plug in module for MuR SmartRFO4EB should be used as reference design for antenna and HF layout CC2511 USB Dongle CC2511 Evaluation Module a small USB dongle SmartRFO4EB should be used as reference design for antenna and HF layout SoC System on a Chip A collective term used to refer to Chipcon ICs with on chip MCU and RF transceiver Used in this document to reference the CC2430 and the CC2510 In Circuit Emulator CC2510 application examples Application examples using only the CC2510 CC2511 application examples Application examples using the CC2511 USB Dongle together with a CC2510 INSTRUMENTS SWRUO82 Page 3 of 24 C Chipcon Products CC2511 Dongle from Texas Instruments 4 Connecting CC2511 Dongle to SmartRFO4EB Please see the CC2430DK CC2510 CC1110 User Manual for more information on the SmartRFO4EB and how to use the CC2510EM Make sure to install SmartRF Studio before connecting the SmartRFO4EB to a PC SmartRF Studio can be down
23. formance of the PCB antenna will be affected by the device the CC2511 USB dongle is connected to Thus when plugged into different computers or a USB extension cable differences in the CC2511 USB dongle RF performance must be expected The maximum antenna gain measured with this design is 5 3 dBi Thus duty cycling or reduction of output power might be needed to ensure compliance with regulatory limits see application note ANO32 for more information about SRD regulations in the 2 4 GHz ISM band ANO32 is available from www ti com lpw or www chipcon com INSTRUMENTS SWRUO82 Page 19 of 24 CC251I Dongle from Texas Instruments Cc Chipcon Products CC2511 Dongle schematics 9 VOI TAG R GULATOR Generated valtaue 3 9 V for CO2511 FIDUCIAL_MARKPIDUCIAL_MARK ETDUCIAL MARK FIDUCIAL_MARK FIDUCIAL_MARK FIDUCIAL_MARK FM FMZ FM3 FM4 FMS FME ng ge o 6x reas ng SoC periferials R SoC PAR Including P antenna LIEB Connactor Buttons LEDs SMD sockats RESET_N 4 RESET_N FB _ _ PG_ PB BB 1 PH_2 Paz PH_o PB 3 Po_4 4 PD A PH_5 PES Pi_ LED P1 B ZLED Pi_i LED PII LED PI 23 PI 2 BI 3 BI 3 Pi_4 x PIA P15 PIS FILES HI B PIC x Pi_ P _ 4 P28 P2_1 R21 P 2_2
24. ination of both The library is completely generic flexible efficient and easy to use However it does require brief knowledge of the USB specification including the concepts of configurations interfaces and endpoints different endpoint types standard vendor and class requests and USB descriptor sets EE Framework i og USB Standard Request Processing i USB Descriptor Parser CC2511 USB Register Interface Use Suspend Suspend USB T User software Interrupt C GG2511 USB library O CC2511 hardware CC2511 USB Serial Interface Engine Figure 10 USB library 3 TEXAS INSTRUMENTS SWRUO82 Page 15 of 24 C Chipcon Products CC2511 Dongle from Texas Instruments As shown in Figure 10 the USB library is divided into five modules The USB Framework usbfw contains all USB status information and functions for initialization device reset handling and transfers on endpoint O It also contains basic macros and functions for endpoint control and FIFO access Vendor and class requests are passed up to the application and standard requests further down for internal processing The USB Standard Requests usbsr module contains automated processing functions for almost all standard requests The automated handling and endpoint configuration relies on the USB descriptor set and two look up tables Requests that are not supported SYNCH FRAME and SET DESCRIPTOR or that are class specific are passed up to the applicati
25. loaded from the www chipcon com or www ti com lpw The CC2511 have a 2 wire debug interface that is used for chip programming and debugging When connecting this interface to the SmartRFO4EB USB MCU the CC2511 can be programmed from the Chipcon Flash Programmer software and debugged from IAR embedded workbench To connect the CC2511 Dongle to the SmartRFO4EB follow these 6 Steps 1 Turn off the SmartRFO4EB power by moving the power switch to the left position See Figure 3 2 Remove any CCxxxxEM modules attached to the SmarRFO4EB 3 Connect the SmartRFO4EB to a PC with the supplied USB cable 4 Connect the CC2511 Dongle to the SmartRFO4EB with the supplied 10 pin cable The cable should be mounted between the SoC debug connector on the CC251 1 Dongle and the P14 SoC debug flash connector on the SmartRFO4EB Make sure pin 1 is connected to pin 1 This cable connects the debug interface and GND between the two devices however the CC2511 Dongle is not powered trough this cable 5 Power the CC2511 Dongle To power the CC2511 Dongle there are two options e Powered with a USB cable Using the supplied USB extension cable to connect the CC2511 Dongle to the PC See Figure 1 e Powered from the SmartRFO4EB Connect pin 9 on the Test pin connector on CC2511 Dongle to pin 5 on the I O A connector on SmartRFO4EB to power the Dongle from the SmartRFO4EB See Figure 2 The CC2511 Dongle should only be powered by one of
26. n window will display the connected SmartRFO4EB and the user can select which device to load For custom PCB s with the CC2511 it is recommended to include a pin header or test points to allow in circuit emulation or programming using SmartRFOAEB or other 3rd party programming tools Use the CC2511 Dongle as a reference Please see the CC2510 CC251 1section of the Chipcon web site for an updated list of 3rd party programming tools When using smartRFO4EB as emulator for external target debugging any CCxxxxEM module must be removed The pin out used on the SmartRFOAEB is explained in Table 1 and Figure 4 The connector includes 4 SPI control signals These are currently not used but they are included to give users flexibility Pin Function J 1 d VDD NDD 0 00 3 DebugClock DC 4 DebugData DD CSn optional 6 SCLK optional 7 RestN JX J A 8 MoOSI ptional 9 83 VVDD alt NC MISO Table 1 P14 SOC debug connector pin out VDD note The SmartRFOAEB includes a voltage converter to support programming and debugging of external systems with different voltage than the SmartRFO4EB The debug connector includes two VDD connections on pin 2 and pin 9 The function is different for these connections Pin 2 VDD supplies voltage to the voltage converter If the target application is self powered pin 2 should be connected to VDD to assure tha
27. ning 00000052179 RR 12 6 3 WIRELESS WINAMP REMOTE CONTROL sccsceccsceccececcececcececcececcecscescscesescescscesescecescucescscscscecs 13 6 3 1 Software Components Seema ORE RL OT ON NTL TON eee Ae OMT ee MENTE Oe eee PNA nT ere On ent ont Semen ny ere en 13 6 3 2 Installing the application T aaa 13 6 3 3 Running TI 00 2074 PRETIOSO 14 7 USB DEVELOPMENT FRA MEW OR K z cccccccccccscccccscccccccccccccccccccccccccccccccccccccscese 15 7 1 CC2511 USB EMBEDDED FIRMWARE LIBRARY scceccsccscescecceccscescesceccscescscescscescescescecescesceseecs 15 7 2 WINDOWS USB DRIVER FRAMEWORK cscescececcececcecescececcecuccecsccecscescscnscscsscscesescusescusscusescscacs 16 7 2 1 Windows USB driver licens cnnan ee 17 7 3 OTHER FIRMWARE MODULES AND LIBRARIES eccsceccsceccececcscuccsceceececescecscscuscscesescesescesescuseecs 17 8 CC2511 DONGLE HARDWARE DESCRIPTION cccccccsccccccccccccccccccscccccccsces 18 8 1 USER IN TE RE AC Becca enasiea de crrectonacalnethacunetwxnadleasdunsuestptevtlncdecstnetayneruad dvasuectaetenineddeueeneawvacveeddvesuesavee 18 8 2 NTS Tey gri e ONNORRRRRRRRRORPRK 18 8 3 DEBUG CONNECTOR ERE 19 8 4 GENERAL PURPOSE I O CONNECTORS csccsccsceccecceccsccscesccceccecescscsccecescs
28. on The application is also notified upon important events such as change in endpoint status or interface alternate settings The USB Descriptor Parser usbdp module provides a mechanism for locating standard formatted USB descriptors The user must provide a USB descriptor set and two simple lookup tables one for locating other descriptor formats and another for setting up endpoint double buffering The necessary constant and structure definitions and guidelines for writing compatible descriptor sets are found in the USB Descriptor module The USB Suspend usbsusp module provides easy to use fully automated support for USB suspend USB resume and USB remote wakeup functionality To implement USB suspend and USB resume the user only need to add a short piece of code to the main loop USB remote wakeup is performed by a single function call The complete documentation of the CC2511 USB embedded firmware framework is available in a compressed HTML file cc2511 USB library chm found in CC2511DK embedded_sw Library cc2511 CC2511UsbLibrary doc 7 2 Windows USB driver framework CUDAL Chipcon USB Dongle Access Library provides an easy to use C interface to the CC2511 USB Dongle making development of PC software easy This framework is used to create the USB driver in the WinAmp remote control application example The other application examples use standard Windows drivers The following features are supported in CUDAL e he
29. or to only accept bind requests from units that are in close proximity If the two devices are too far apart more than approx 1 meter the CC2511 will not accept the bind request To test the link connect a RS232 cable between a PC and the SmartRFO4EB start HyperTerminal in Windows Start gt Programs gt accessories gt Communications gt HyperTerminal Connect one HyperTerminal window to the Virtual COM port and another HyperTerminal window to the COM port connected to the CC2510EM SmartRFO4EB Text written to one window will be sent to the other one Ji INSTRUMENTS SWRUO82 Page 12 of 24 Chipcon Products C511 Dongle from Texas Instruments 6 3 Wireless WinAmp remote control This application example is a wireless remote control for WinAmp media player It is a two way remote which display the song information of the song played on the LCD screen on the SmartRFO4EB The communication between the CC2511 Dongle and WinAmp is handled by a custom WinAmp plug in Hence this remote control will work with WinAmp only This application example uses the USB framework found in the CC2511 firmware library to setup the USB on the CC2511 Dongle and to handle all USB standard requests In addition it demonstrates the use of Vendor requests in the USB framework On the PC the CUDAL library is used to create a custom driver see chapter 7 2 Windows USB driver framework The radio communication between CC2510EM and CC2511 Dongle is done
30. rts COM amp LPT H H I 8 Ti Wireless USB to Serial COMB ASS Sound videa and game controllers E E System devices H Universal Serial Bus controllers T Figure 9 Virtual serial port in Windows Device manager The Windows driver will only work if the Ti Wireless USB to Serial is assigned to COM1 to COMS In Figure 9 it is assigned to COMO If there are many COM ports installed on the PC Windows may chose to assign it to a number higher than 9 If that happens it must be changed Right click on the Ti Wireless USB to Serial in the device manager and choose Properties gt Port settings gt Advanced to change 6 2 8 Running the application Connect the CC2510EM to the SmartRFO4EB and power it Use the joystick and the S1 button to select the settings for the UART The settings can only be selected once if they are wrong turn power off and on to reset the CC2510EM and select UART settings again These settings only apply to the UART on the CC2510 SmartRFO4EB the settings used on the Virtual COM port on the PC can be different Changing the settings on the CC2510EM SmartRFO4EB will not affect the settings used in the Virtual COM port and visa versa To bind the CC2510EM to the CC2511 Dongle hold them close together and push S1 on the SmartRFO4EB The RF protocol found in the CC2511 firmware library uses kiss binding which mean that the CC2511 Dongle use the RSSI Received Signal Strength Indicat
31. t the correct supply voltage is used for the voltage converter This pin must always be connected to VDD Pin 9 VDD supplies 3 3V from the SmartRFO4EB If the target application is powered from the SmartRFO4EB supply during programming and debugging this pin can be connected to VDD If the target voltage differs from 3 3V this pin should not be connected On the CC2511 Dongle this pin is not connected Hence the CC2511 Dongle must be powered from a separate USB cable or a separate cable connecting pin 9 on test pins P4 to VDD on the SmartRFO4EB See chapter 4 for details INSTRUMENTS SWRUO82 Page 6 of 24 Chipcon Products C511 Dongle from Texas Instruments 1 GND 2 VDD 3 DC 4 DD 7 Reset_N Figure 4 Recommended debug connector layout Top view Figure 4 shows the required signal for a minimum connector layout Figure 5 SmartRFO4EB debug connector for debugging CC2511 Dongle other external target systems 5 1 Debugging USB firmware When writing and debugging USB firmware one should remember that when Windows or another OS detects a USB device it will assume that it works in accordance with the USB specification During debugging this might not be the case Breakpoints may stop the execution of code on the CC2511 Dongle and firmware under development may not be completed or error free This may lead to the PC disconnecting the CC2511 Dongle and turning off or toggling its power supply In some cases Windows or th
32. using the RF part of the CC2511 firmware library The application example also uses the buffer module in the library to handle data buffering and the timer4 manager module for timing 6 3 1 Software components e winamp remote dongle hex The CC2511 USB Dongle firmware is found in CC2511DK embedded_sw App ExWwinamp remoteWwinamp remote dongleV e winamp remote eb hex The CC2510 EM firmware is found in CC2511DK embedded_sw App ExWwinamp remoteWwinamp remote ebV e gen chipcon remote dll The WinAmp plug in is found in CC2511DK pc_sw App_Ex winamp_remote WinAmp_pluginn e CC2511ApExWinAmpRemote inf cudal sys and cudal98 sys The windows driver for the WinAmp remote control found in CC2511DK pc_sw App_Ex winamp_remote driver 6 3 2 Installing the application 1 Attach the CC2510EM to a SmartRFO4EB and program it with the flash image winamp remote eb hex using IAR workbench or the Chipcon FLASH programmer See CC2430DK CC2510 CC1110 User Manual for more information 2 Connect the CC2511 Dongle to the other SmartRFO4EB and program it with the flash image winamp remote dongle hex using IAR workbench or the Chipcon FLASH programmer See CC2430DK CC2510 CC1110 User Manual for more information 3 Download WinAmp from www winamp com 4 Install WinAmp 5 Install the WinAmp plug in by copying the file gen_chipcon_remote dll to the C Program Files Winamp Plugins folder 6 Disconnect the

Download Pdf Manuals

image

Related Search

Related Contents

microguard® rci 510 telescopic boom cranes gruas de pluma  Posiflex CR-4000N cash box tray  ABC Analytics – Manuel d`utilisation  Spirit eMotion TW 7235i    Samsung SP-43T8HE Užívateľská príručka  IMC Toys 250253 toy  OmniMount OMN-OS50FM  

Copyright © All rights reserved.
Failed to retrieve file