• 大小: 36.57MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-08-07
  • 语言: 其他
  • 标签: 例程  

资源简介

lpc1768例程资源,包含串口 ADC,SPI,I2c,PWM,DAC等例程

资源截图

代码片段和文件信息

/* ----------------------------------------------------------------------
* Copyright (C) 2010 ARM Limited. All rights reserved.
*
* $Date:        29. November 2010
* $Revision:  V1.0.3
*
* Project:      CMSIS DSP Library
* title:        arm_class_marks_example_f32.c
*
* Description: Example code to calculate Minimum Maximum
*               Mean std and variance of marks obtained in a class
*
* Target Processor: Cortex-M4/Cortex-M3
*
* Version 1.0.3 2010/11/29
*    Re-organized the CMSIS folders and updated documentation.
*
* Version 1.0.1 2010/10/05 KK
*    Production release and review comments incorporated.
*
* Version 1.0.0 2010/09/20 KK
*    Production release and review comments incorporated.
* ------------------------------------------------------------------- */

/**
 * @ingroup groupExamples
 */

/**
 * @defgroup ClassMarks Class Marks Example
 *
 * \par Description:
 * \par
 * Demonstrates the use the Maximum Minimum Mean Standard Deviation Variance
 * and Matrix functions to calculate statistical values of marks obtained in a class.
 *
 * \note This example also demonstrates the usage of static initialization.
 *
 * \par Variables Description:
 * \par
 * \li \c testMarks_f32 points to the marks scored by 20 students in 4 subjects
 * \li \c max_marks     Maximum of all marks
 * \li \c min_marks     Minimum of all marks
 * \li \c mean          Mean of all marks
 * \li \c var           Variance of the marks
 * \li \c std           Standard deviation of the marks
 * \li \c numStudents   Total number of students in the class
 *
 * \par CMSIS DSP Software Library Functions Used:
 * \par
 * - arm_mat_init_f32()
 * - arm_mat_mult_f32()
 * - arm_max_f32()
 * - arm_min_f32()
 * - arm_mean_f32()
 * - arm_std_f32()
 * - arm_var_f32()
 *
 *  Refer  
 * \link arm_class_marks_example_f32.c \endlink
 *
 */


#include “arm_math.h“

#define USE_STATIC_INIT

 /* ----------------------------------------------------------------------
** Global defines
** ------------------------------------------------------------------- */

#define TEST_LENGTH_SAMPLES  (20*4)

/* ----------------------------------------------------------------------
** List of Marks scored by 20 students for 4 subjects
** ------------------------------------------------------------------- */
const float32_t testMarks_f32[TEST_LENGTH_SAMPLES] =
{
42.000000 37.000000 81.000000 28.000000
83.000000 72.000000 36.000000 38.000000
32.000000 51.000000 63.000000 64.000000
97.000000 82.000000 95.000000 90.000000
66.000000 51.000000 54.000000 42.000000
67.000000 56.000000 45.000000 57.000000
67.000000 69.000000 35.000000 52.000000
29.000000 81.000000 58.000000 47.000000
38.000000 76.000000 100.000000 29.000000
33.000000 47.000000 29.000000 50.000000
34.000000 41.000000 61.000000 46.000000
52.000000 50.000000 48.000000 36.000000
47.000000 55.000000 44.000000 40.000000
100.000000 94.000000 84.000000 37.000000
32.000000

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

     文件      51511  2012-05-26 06:00  lpc175x_6x_cmsis_driver_library\Core\CMSIS\CMSIS END USER LICENCE AGREEMENT.pdf

     文件      13369  2012-05-26 06:00  lpc175x_6x_cmsis_driver_library\Core\CMSIS\Documentation\CMSIS-SVD_Schema_1_0.xsd

     文件     123611  2012-05-26 06:00  lpc175x_6x_cmsis_driver_library\Core\CMSIS\Documentation\CMSIS_CM4_SIMD.htm

     文件      63937  2012-05-26 06:00  lpc175x_6x_cmsis_driver_library\Core\CMSIS\Documentation\CMSIS_Core.htm

     文件       9717  2012-05-26 06:00  lpc175x_6x_cmsis_driver_library\Core\CMSIS\Documentation\CMSIS_DebugSupport.htm

     文件      17391  2012-05-26 06:00  lpc175x_6x_cmsis_driver_library\Core\CMSIS\Documentation\CMSIS_History.htm

     文件     123676  2012-05-26 06:00  lpc175x_6x_cmsis_driver_library\Core\CMSIS\Documentation\CMSIS_Logo_Final.jpg

     文件      66130  2012-05-26 06:00  lpc175x_6x_cmsis_driver_library\Core\CMSIS\Documentation\CMSIS_System_View_Description.htm

     文件      15267  2012-05-26 06:00  lpc175x_6x_cmsis_driver_library\Core\CMSIS\Documentation\DSP_Lib\html\annotated.html

     文件      20882  2012-05-26 06:00  lpc175x_6x_cmsis_driver_library\Core\CMSIS\Documentation\DSP_Lib\html\arm_class_marks_example_f32_8c-example.html

     文件      21498  2012-05-26 06:00  lpc175x_6x_cmsis_driver_library\Core\CMSIS\Documentation\DSP_Lib\html\arm_convolution_example_f32_8c-example.html

     文件      14580  2012-05-26 06:00  lpc175x_6x_cmsis_driver_library\Core\CMSIS\Documentation\DSP_Lib\html\arm_dotproduct_example_f32_8c-example.html

     文件      12892  2012-05-26 06:00  lpc175x_6x_cmsis_driver_library\Core\CMSIS\Documentation\DSP_Lib\html\arm_fft_bin_example_f32_8c-example.html

     文件      17085  2012-05-26 06:00  lpc175x_6x_cmsis_driver_library\Core\CMSIS\Documentation\DSP_Lib\html\arm_fir_example_f32_8c-example.html

     文件      40177  2012-05-26 06:00  lpc175x_6x_cmsis_driver_library\Core\CMSIS\Documentation\DSP_Lib\html\arm_graphic_equalizer_example_q31_8c-example.html

     文件      17696  2012-05-26 06:00  lpc175x_6x_cmsis_driver_library\Core\CMSIS\Documentation\DSP_Lib\html\arm_linear_interp_example_f32_8c-example.html

     文件      19019  2012-05-26 06:00  lpc175x_6x_cmsis_driver_library\Core\CMSIS\Documentation\DSP_Lib\html\arm_matrix_example_f32_8c-example.html

     文件      25734  2012-05-26 06:00  lpc175x_6x_cmsis_driver_library\Core\CMSIS\Documentation\DSP_Lib\html\arm_signal_converge_example_f32_8c-example.html

     文件      14778  2012-05-26 06:00  lpc175x_6x_cmsis_driver_library\Core\CMSIS\Documentation\DSP_Lib\html\arm_sin_cos_example_f32_8c-example.html

     文件      17189  2012-05-26 06:00  lpc175x_6x_cmsis_driver_library\Core\CMSIS\Documentation\DSP_Lib\html\arm_variance_example_f32_8c-example.html

     文件       5272  2012-05-26 06:00  lpc175x_6x_cmsis_driver_library\Core\CMSIS\Documentation\DSP_Lib\html\arm__abs__f32_8c.html

     文件      11579  2012-05-26 06:00  lpc175x_6x_cmsis_driver_library\Core\CMSIS\Documentation\DSP_Lib\html\arm__abs__f32_8c_source.html

     文件       5222  2012-05-26 06:00  lpc175x_6x_cmsis_driver_library\Core\CMSIS\Documentation\DSP_Lib\html\arm__abs__q15_8c.html

     文件      15956  2012-05-26 06:00  lpc175x_6x_cmsis_driver_library\Core\CMSIS\Documentation\DSP_Lib\html\arm__abs__q15_8c_source.html

     文件       5222  2012-05-26 06:00  lpc175x_6x_cmsis_driver_library\Core\CMSIS\Documentation\DSP_Lib\html\arm__abs__q31_8c.html

     文件      12282  2012-05-26 06:00  lpc175x_6x_cmsis_driver_library\Core\CMSIS\Documentation\DSP_Lib\html\arm__abs__q31_8c_source.html

     文件       5216  2012-05-26 06:00  lpc175x_6x_cmsis_driver_library\Core\CMSIS\Documentation\DSP_Lib\html\arm__abs__q7_8c.html

     文件      14433  2012-05-26 06:00  lpc175x_6x_cmsis_driver_library\Core\CMSIS\Documentation\DSP_Lib\html\arm__abs__q7_8c_source.html

     文件       5326  2012-05-26 06:00  lpc175x_6x_cmsis_driver_library\Core\CMSIS\Documentation\DSP_Lib\html\arm__add__f32_8c.html

     文件      11657  2012-05-26 06:00  lpc175x_6x_cmsis_driver_library\Core\CMSIS\Documentation\DSP_Lib\html\arm__add__f32_8c_source.html

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

评论

共有 条评论