资源简介
AD9959完整驱动程序工程,基于KEIL5与STM32.包括单频,PSK,FSK,ASK等、
代码片段和文件信息
/* ----------------------------------------------------------------------
* Copyright (C) 2010-2013 ARM Limited. All rights reserved.
*
* $Date: 17. January 2013
* $Revision: V1.4.1
*
* Project: CMSIS DSP Library
* title: arm_sin_q15.c
*
* Description: Fast sine calculation for Q15 values.
*
* Target Processor: Cortex-M4/Cortex-M3/Cortex-M0
*
* Redistribution and use in source and binary forms with or without
* modification are permitted provided that the following conditions
* are met:
* - Redistributions of source code must retain the above copyright
* notice this list of conditions and the following disclaimer.
* - Redistributions in binary form must reproduce the above copyright
* notice this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
* - Neither the name of ARM LIMITED nor the names of its contributors
* may be used to endorse or promote products derived from this
* software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* “AS IS“ AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT
* LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT INDIRECT
* INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING
* BUT NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE DATA OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY WHETHER IN CONTRACT STRICT
* LIABILITY OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
* ANY WAY OUT OF THE USE OF THIS SOFTWARE EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
* -------------------------------------------------------------------- */
#include “arm_math.h“
/**
* @ingroup groupFastMath
*/
/**
* @addtogroup sin
* @{
*/
/**
* \par
* Table values are in Q15 (1.15 fixed-point format) and generation is done in
* three steps. First generate sin values in floating point:
*
* tableSize = 256;
* for(n = -1; n < (tableSize + 1); n++)
* {
* sinTable[n+1]= sin(2*pi*n/tableSize);
* }
* where pi value is 3.14159265358979
* \par
* Second convert floating-point to Q15 (fixed-point):
* (sinTable[i] * pow(2 15))
* \par
* Finally round to the nearest integer value:
* sinTable[i] += (sinTable[i] > 0 ? 0.5 :-0.5);
*/
static const q15_t sinTableQ15[259] = {
0xfcdc 0x0 0x324 0x648 0x96b 0xc8c 0xfab 0x12c8
0x15e2 0x18f9 0x1c0c 0x1f1a 0x2224 0x2528 0x2827 0x2b1f
0x2e11 0x30fc 0x33df 0x36ba 0x398d 0x3c57 0x3f17 0x41ce
0x447b 0x471d 0x49b4 0x4c40 0x4
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-11-27 23:17 AD9959调试程序-final-new32\
目录 0 2016-11-28 18:15 AD9959调试程序-final-new32\CORE\
文件 109142 2014-07-17 21:52 AD9959调试程序-final-new32\CORE\core_cm4.h
文件 22735 2014-07-17 21:52 AD9959调试程序-final-new32\CORE\core_cm4_simd.h
文件 29605 2014-08-02 00:12 AD9959调试程序-final-new32\CORE\startup_stm32f40_41xxx.s
目录 0 2016-11-27 20:55 AD9959调试程序-final-new32\FWLIB\
目录 0 2016-11-28 19:26 AD9959调试程序-final-new32\FWLIB\inc\
文件 4676 2014-07-17 21:52 AD9959调试程序-final-new32\FWLIB\inc\arm_common_tables.h
文件 3666 2014-07-17 21:52 AD9959调试程序-final-new32\FWLIB\inc\arm_const_structs.h
文件 242444 2015-04-17 18:05 AD9959调试程序-final-new32\FWLIB\inc\arm_math.h
文件 6924 2014-08-01 23:18 AD9959调试程序-final-new32\FWLIB\inc\misc.h
文件 32880 2014-08-01 23:18 AD9959调试程序-final-new32\FWLIB\inc\stm32f4xx_adc.h
文件 27318 2014-08-01 23:18 AD9959调试程序-final-new32\FWLIB\inc\stm32f4xx_can.h
文件 2416 2014-08-01 23:18 AD9959调试程序-final-new32\FWLIB\inc\stm32f4xx_crc.h
文件 14481 2014-08-01 23:18 AD9959调试程序-final-new32\FWLIB\inc\stm32f4xx_cryp.h
文件 14946 2014-08-01 23:18 AD9959调试程序-final-new32\FWLIB\inc\stm32f4xx_dac.h
文件 4296 2014-08-01 23:18 AD9959调试程序-final-new32\FWLIB\inc\stm32f4xx_dbgmcu.h
文件 12977 2014-08-01 23:18 AD9959调试程序-final-new32\FWLIB\inc\stm32f4xx_dcmi.h
文件 28882 2014-08-01 23:18 AD9959调试程序-final-new32\FWLIB\inc\stm32f4xx_dma.h
文件 19692 2014-08-01 23:18 AD9959调试程序-final-new32\FWLIB\inc\stm32f4xx_dma2d.h
文件 8012 2014-08-01 23:18 AD9959调试程序-final-new32\FWLIB\inc\stm32f4xx_exti.h
文件 24467 2014-08-04 22:05 AD9959调试程序-final-new32\FWLIB\inc\stm32f4xx_flash.h
文件 3275 2014-08-04 22:05 AD9959调试程序-final-new32\FWLIB\inc\stm32f4xx_flash_ramfunc.h
文件 44924 2014-08-01 23:18 AD9959调试程序-final-new32\FWLIB\inc\stm32f4xx_fmc.h
文件 27181 2014-08-01 23:18 AD9959调试程序-final-new32\FWLIB\inc\stm32f4xx_fsmc.h
文件 23548 2014-08-01 23:18 AD9959调试程序-final-new32\FWLIB\inc\stm32f4xx_gpio.h
文件 10084 2014-08-01 23:18 AD9959调试程序-final-new32\FWLIB\inc\stm32f4xx_hash.h
文件 31939 2014-08-01 23:18 AD9959调试程序-final-new32\FWLIB\inc\stm32f4xx_i2c.h
文件 4323 2014-08-01 23:18 AD9959调试程序-final-new32\FWLIB\inc\stm32f4xx_iwdg.h
文件 21191 2014-08-01 23:18 AD9959调试程序-final-new32\FWLIB\inc\stm32f4xx_ltdc.h
文件 7728 2014-08-01 23:18 AD9959调试程序-final-new32\FWLIB\inc\stm32f4xx_pwr.h
............此处省略240个文件信息
评论
共有 条评论