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

 

 

 

  

          

SWRU048   

Page 28 of 30  

 Utility.c 

Configure output profile 

The CC2400 Development Environment “build process” generates an executable file 
according to the settings specified in the make file provided with the application examples 
and by using the macros configured in the text editor.  To support the processor target the 
output file must be in the correct format.  

With CC2400DB an RF link example is provided in the application code section of the 
processor flash. The example is called rfBlinkLed. The application program is controlled by 
the same push button as the bootloader, S2. See schematic layout for location of the button 
on the PCB. Instead of powering up the board with the bootloader the board should be 
powered up with the application code. The CC2400 is configured with default settings, 
buffered mode, and a data rate of 1 Mbps. 

Use the S2 push button to start the application. You will see that if you have no receiver up 
and running the red LED will start to toggle. This means that you are not receiving 
acknowledge form the receiver and thus have no link. 

Data packet description 

The data packet consists of a preamble, synchronization word, length byte, flag byte and a 
data field. The length byte, flag byte and a fixed 10-byte payload are inserted by the 
application.   

The preamble, synchronization word and CRC is generated and inserted in the package by 
CC2400.  The data packet is shown in the figure 18. 

 

LENGTH

Preamble

SOF

FLAGS

PAYLOAD

CRC

Inserted by CC2400

 

 

Figure 18 The data packet used in the rfBlinkLed example 

Data transmission protocol 

The data transmission protocol is very simple, only using packet acknowledgement (ACK).  

When the receiver receives a data package, the packet type is checked for CRC. If the 
message is OK, it is shown on the green receiver LED, and an acknowledgement is sent as a 
reply. However, if an acknowledgement packet that is received by the transceiver originally 
transmitting, receival of the ACK is indicated on the yellow LED without any further reply. If no 
acknowledgement is received the red LED will toggle. 

DEVICE 1

DEVICE 2

Receiver polling

Initial
trans -
mission

LED (ACK)

RX

LED

TX ACK

TX

RX

Ack.
trans -
mission

Acknowledge
shown on

Transceiver LED

DEVICE 1

DEVICE 2

Receiver polling

Initial
trans -
mission

LED (ACK)

RX

LED

TX ACK

TX

RX

Ack.
trans -
mission

Acknowledge
shown on

LED

Device is active as

long as S2 push

button is held down

Message
shown on
receiver LED

Message
shown on
receiver LED

 

Figure 19 Data Transmission Protocol 

Содержание Chipcon CC2400DBK

Страница 1: ...SWRU048 Page 1 of 30 User Manual Rev 1 2 CC2400DBK Demonstration Board Kit...

Страница 2: ...USING AVR STUDIO 4 22 RC OSCILLATOR 23 MICROCONTROLLER EEPROM MAPPING 23 IN SYSTEM PROGRAMMING 24 BOOTLOADER 25 INTRODUCTION TO EXAMPLES PROVIDED WITH CC2400DB 26 SETTING UP A SOFTWARE PROJECT FOR CC2...

Страница 3: ...ard is also furnished with connectors where all of the internal signals on the PCB are available This User Manual describes how to use the CC2400DBK Demonstration Board Kit Atmel s AVR Studio and asso...

Страница 4: ...nstration board output power must be reduced for a 100 transmission duty cycle to be compliant with the FCC 15 2 nd harmonics regulation requirement At the moment the design is 1 dB above the limit An...

Страница 5: ...tenna is defined as the distance from the ground plane to the parallel section and the length is from the end of the antenna parallel section to the feed point Length L 26 19 mm 9 19 mm 1 22 mm x 17 6...

Страница 6: ...ication example the following range has been verified at Chipcon Norway with optimal SmartRF Studio settings for the respective data rates 1 Data rate settings 1 Mbps range measured 140 meters 2 Data...

Страница 7: ...ection The power supply section contains two voltage regulators a 3 3 V regulator for use by the microcontroller and the I O pins of the CC2400 and a 1 8 V regulator for powering the CC2400 core A dio...

Страница 8: ...erent examples use these peripherals differently An analog temperature sensor is also included An ISP connector is provided for programming the AVR without using the serial port In this case an Atmel...

Страница 9: ...3 CC2400 RX P4 pin 18 27 PC4 ADC4 SDA RS 232 on off P3 pin 11 28 PC5 ADC5 SCL Green LED P4 pin 5 29 PC6 RESET Reset button AVR ISP P4 pin 3 30 PD0 RXD RS 232 receive data from PC P3 pin 15 31 PD1 TXD...

Страница 10: ...11 PD7 AIN1 6 PD5 Joystick down 9 PD5 T1 7 PB7 Joystick right 8 PB7 XTAL2 TOSC2 8 9 PB6 Joystick up 7 PB6 XTAL1 TOSC1 10 11 FORCE_ON RS 232 on off 27 PC4 ADC4 SDA 12 13 RTS RS 232 handshaking push bu...

Страница 11: ...D Ground Table 3 P4 pinout PCB layout RF circuits operating at high frequencies are normally sensitive to the physical layout of the PCB Chipcon has carefully optimized the layout of the CC2400DB Demo...

Страница 12: ...SWRU048 Page 12 of 30 Layer 1 Layer 2 Layer 3 Layer 4 Figure 5 CC2400DB PCB layout...

Страница 13: ...SWRU048 Page 13 of 30 Top Assembly Bottom Assembly Figure 6 CC2400DB PCB layout silkscreen...

Страница 14: ...SWRU048 Page 14 of 30 Schematic Figure 7 CC2400DB schematic page 1...

Страница 15: ...SWRU048 Page 15 of 30 Figure 8 CC2400DB schematic page 2...

Страница 16: ...SWRU048 Page 16 of 30 Figure 9 CC2400DB schematic page 3...

Страница 17: ...SWRU048 Page 17 of 30 Figure 10 CC2400DB schematic page 4...

Страница 18: ...SWRU048 Page 18 of 30 Figure 11 CC2400DB schematic page 5...

Страница 19: ...P6_0402_NP0_C_50 C71 Capacitor 0402 100 nF 10 C_100N_0402_X5R_K_10 C81 Capacitor 0402 0 5 pF 0 25 pF C_0P5_0402_NP0_C_50 C101 Capacitor 0402 10 nF 10 C_10N_0402_X7R_K_25 C161 Capacitor 0402 68 pF 5 C_...

Страница 20: ...60 or less Bill of materials CC2400DB MCU section Reference Description Value Part C201 Capacitor 0603 100 nF 10 C_100N_0603_X7R_K_50 C202 Capacitor 0603 100 nF 10 C_100N_0603_X7R_K_50 C203 Capacitor...

Страница 21: ...key diode 2A 20BQ030 P7 9V battery connector positive CONN_9V_POS P8 9V battery connector negative CONN_9V_NEG U4 3 3V low drop out regulator LP2981IM5 3 3 U6 1 8V low drop out regulator XC6204B182MR...

Страница 22: ...rial cable connecting the serial interface of the CC2400DB to the serial port of a PC running AVR Studio and SmartRF Studio You can then use SmartRF Studio to find all the RF parameters for the CC2400...

Страница 23: ...icrocontroller EEPROM mapping The following map shows the data location To customize the CC2400DB for a different frequency the EEPROM data can be replaced by new values found using the calibration so...

Страница 24: ...can be reprogrammed Figure 14 AVRISP Program Window used to program flash or EEPROM The device used for programming must be connected to the CC2400DB programming socket The programming interface uses...

Страница 25: ...in AVR Studio until the bootloader program window is loaded See figure 15 and 16 Step by Step procedure 1 Connect the CC2400DB serial port to your PC COM port 2 Connect power to CC2400DB 3 Start AVR...

Страница 26: ...t editor of choice e g UltraEdit 32 a compiler assembler linker and software platform provided by the processor manufacturer The CC2400 Development Environment is based on the WinAVR which is a softwa...

Страница 27: ...ecified in the target project workspace of your text editor See figure 17 Figure 17 Software project workspace Hardware Definition Files HDF The hardware definition files include files define the hard...

Страница 28: ...nization word length byte flag byte and a data field The length byte flag byte and a fixed 10 byte payload are inserted by the application The preamble synchronization word and CRC is generated and in...

Страница 29: ...r to program the AVR with the bootloader before you can use the serial port to program the AVR again References CC2400 Datasheet Atmel Application note AVR109 Self programming Bootloader for CC2400DBK...

Страница 30: ...es chipcon com Chipcon Inc Eastern US Sales Office 35 Pinehurst Avenue Nashua New Hampshire 03062 USA Tel 1 603 888 1326 Fax 1 603 888 4239 Email eastUSsales chipcon com Sales Office Germany Chipcon A...

Страница 31: ...401 Building No 5 JiuGe Business Center Lane 2301 Yishan Rd Minhang District Shanghai China Sales Direct 86 21 6401 6692 Email amall ameya360 com QQ 800077892 Skype ameyasales1 ameyasales2 Customer Se...

Отзывы: