• 大小: 1.12MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-30
  • 语言: 其他
  • 标签: zigbee  无线定位  

资源简介

测算 8个模块 18个信道的 无线传输的RSSI 数据 芯片 TI CC2430

资源截图

代码片段和文件信息

/******************************************************************************
*                                                                             *
*        **********                                                           *
*       ************                                                          *
*      ***        ***                                                         *
*     ***    ++    ***                                                        *
*     ***   +  +   ***                      CHIPCON                           *
*     ***   +                                                                 *
*     ***   +  +   ***                                                        *
*     ***    ++    ***                                                        *
*      ***        ***                                                         *
*       ************                                                          *
*        **********                                                           *
*                                                                             *
*******************************************************************************

Filename:     adc.c
Target:       cc2430
Author:       KJA
Revised:      16/12-2005
Revision:     1.0

Description:
    This application shows how to use the AD-converter (single sample mode).

    When the potmeter at the Evaluation Board is turned the output voltage is
    sampled converted and written to LCD. The blinking speed of the green and
    yellow LEDs is adjusted according to the voltage.
    The direction of the joystick is shown on the LCD.

******************************************************************************/
#include “app_ex.h“

// Prototypes
void initAdc(void);
void adc_main(void);
void updateVoltageLCD(INT8 potVoltage INT8 adc_value);
void updateJoystickDirectionLCD(JOYSTICK_DIRECTION direction);
void updateCounter(INT8 delay);
INT8 scaleValue(INT8 adc_value);


/******************************************************************************
* @fn  initAdc
*
* @brief
*      Initializes components for use with the ADC application example (e.g.
*      LEDs PotMeter Joystick).
*
* Parameters:
*
* @param  void
*
* @return void
*
******************************************************************************/
void initAdc(void)
{
   initLcd();

   SET_MAIN_CLOCK_SOURCE(CRYSTAL);

   //init LEDs
   INIT_GLED();
   INIT_YLED();

   INIT_POT();
   INIT_JOYSTICK();
}


/******************************************************************************
* @fn  adc_main
*
* @brief
*      Main function of the ADC application example.
*
* Parameters:
*
* @param  void
*
* @return void
*
******************************************************************************/
#ifdef COMPLETE_APPLICATION
void adc_main(void){
#else
void main(void){
#endif
   JOYSTICK_DIRECTION joyst

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      69944  2011-05-08 23:28  CC2430 FDMA\App_Ex\cc2430\IAR_files\appEx_cc2430.dep

     文件      39397  2010-08-03 10:42  CC2430 FDMA\App_Ex\cc2430\IAR_files\appEx_cc2430.ewd

     文件      85641  2010-08-29 18:01  CC2430 FDMA\App_Ex\cc2430\IAR_files\appEx_cc2430.ewp

     文件      32496  2008-04-22 16:18  CC2430 FDMA\App_Ex\cc2430\IAR_files\Backup of appEx_cc2430.ewd

     文件      84645  2008-04-22 16:18  CC2430 FDMA\App_Ex\cc2430\IAR_files\Backup of appEx_cc2430.ewp

     文件      90206  2008-04-22 16:17  CC2430 FDMA\App_Ex\cc2430\IAR_files\Debug\Exe\appEx_cc2430.hex

     文件     206063  2008-04-22 16:17  CC2430 FDMA\App_Ex\cc2430\IAR_files\Debug\List\appEx_cc2430.map

     文件      23614  2008-04-22 16:17  CC2430 FDMA\App_Ex\cc2430\IAR_files\Debug\Obj\adc.r51

     文件       7710  2008-04-22 16:17  CC2430 FDMA\App_Ex\cc2430\IAR_files\Debug\Obj\adcSampleSingle.r51

     文件      40659  2008-04-22 16:17  CC2430 FDMA\App_Ex\cc2430\IAR_files\Debug\Obj\adcSeries.r51

     文件      52928  2008-04-22 16:17  CC2430 FDMA\App_Ex\cc2430\IAR_files\Debug\Obj\aes.r51

     文件      26138  2008-04-22 16:17  CC2430 FDMA\App_Ex\cc2430\IAR_files\Debug\Obj\aesEncrDecr.r51

     文件       3727  2008-04-22 16:17  CC2430 FDMA\App_Ex\cc2430\IAR_files\Debug\Obj\aesLoadKeyOrInitVector.r51

     文件      21608  2008-04-22 16:17  CC2430 FDMA\App_Ex\cc2430\IAR_files\Debug\Obj\app_ex_interrupt.r51

     文件       8047  2008-04-22 16:17  CC2430 FDMA\App_Ex\cc2430\IAR_files\Debug\Obj\app_ex_main.r51

     文件       9857  2008-04-22 16:17  CC2430 FDMA\App_Ex\cc2430\IAR_files\Debug\Obj\chipconLogo.r51

     文件      14392  2008-04-22 16:17  CC2430 FDMA\App_Ex\cc2430\IAR_files\Debug\Obj\clockmodes.r51

     文件      18663  2008-04-22 16:17  CC2430 FDMA\App_Ex\cc2430\IAR_files\Debug\Obj\dma.r51

     文件      11659  2008-04-22 16:17  CC2430 FDMA\App_Ex\cc2430\IAR_files\Debug\Obj\dmaAllocChannel.r51

     文件       6214  2008-04-22 16:17  CC2430 FDMA\App_Ex\cc2430\IAR_files\Debug\Obj\dmaFreeChannel.r51

     文件       4806  2008-04-22 16:17  CC2430 FDMA\App_Ex\cc2430\IAR_files\Debug\Obj\dmaFromAes.r51

     文件       4495  2008-04-22 16:17  CC2430 FDMA\App_Ex\cc2430\IAR_files\Debug\Obj\dmaFromRadio.r51

     文件      21153  2008-04-22 16:17  CC2430 FDMA\App_Ex\cc2430\IAR_files\Debug\Obj\dmaInit.r51

     文件      10250  2008-04-22 16:17  CC2430 FDMA\App_Ex\cc2430\IAR_files\Debug\Obj\dmaSetUpChannel.r51

     文件       4776  2008-04-22 16:17  CC2430 FDMA\App_Ex\cc2430\IAR_files\Debug\Obj\dmaToAes.r51

     文件       4794  2008-04-22 16:17  CC2430 FDMA\App_Ex\cc2430\IAR_files\Debug\Obj\dmaToFlash.r51

     文件       4923  2008-04-22 16:17  CC2430 FDMA\App_Ex\cc2430\IAR_files\Debug\Obj\dmaToRadio.r51

     文件       4927  2008-04-22 16:17  CC2430 FDMA\App_Ex\cc2430\IAR_files\Debug\Obj\dmaToUart0.r51

     文件      41714  2008-04-22 16:17  CC2430 FDMA\App_Ex\cc2430\IAR_files\Debug\Obj\eeprom.r51

     文件      48437  2008-04-22 16:17  CC2430 FDMA\App_Ex\cc2430\IAR_files\Debug\Obj\flash.r51

............此处省略319个文件信息

评论

共有 条评论