/******************** (C) COPYRIGHT 2008 STMicroelectronics ********************
* File Name : readme.txt
* Author : MCD Application Team
* Version : V1.0.1
* Date : 06/20/2008
* Description : Description of the AN2668 Application note's triangular
* dither firmware.
********************************************************************************
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
* AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
* INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
* CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
* INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
*******************************************************************************/
Firmware description
===================
This firmware gives the STM32 ADC oversampling using triangular dither. This method
consists on adding a triangular signal to the input signal and sampling it with
a rate of 1�s.
The timer TIM2 is used to generate the input signal sampling frequency.
The STM32 ADC1 clock is configured to 14Mhz and the channel 10 is converted (PC.00).
The triangular dither is generated using the Timer TIM3.
After OSR DMA transfer from the ADC data register to a buffer in RAM, the new
sample is computed.
When uncommenting the Thermal_Noise_Measure, the ADC thermal noise can be
determined.
When uncommenting the line #define Oversampling_Test, the oversampled data is
displayed on the hyperterminal and can be captured in a file for the evaluation.
results.
The Hyperterminal configuration is 115.2KB and 8-bit data with 1 stop bit.
Directory contents
==================
+ project : containing the project workspace and project
+ include : containing the user header files
- stm32f10x_conf.h Library Configuration files
- stm32f10x_it.h Interrupt handlers header files
- oversampling.h oversampling header file
+ source : containg the user source files
- oversampling.c oversampling source file
- stm32f10x_it.c Interrupt handlers
- main.c Main program
Hardware environment
====================
- Connect the input signal to be converted on ADC Channel 10: PC.00
- Connect a RC signal on the TIM3 output channel
- Use a hardware network to add the input signal and the traingular signal
generated by the Timer TIM3.
How to use it
=============
+ EWARMv5:
- Open the OVERSAMPLING_AN_TriagularDitherMethod.eww workspace
- In the workspace toolbar select the project config:
- STM3210B-EVAL: to configure the project for STM32 Medium-density devices
- STM3210E-EVAL: to configure the project for STM32 High-density devices
- Rebuild all files: Project->Rebuild all
- Load project image: Project->Debug
- Run program: Debug->Go(F5)
+ RIDE
- Open the OVERSAMPLING_AN_TriagularDitherMethod.rprj project
- In the configuration toolbar(Project->properties) select the project config:
- STM3210B-EVAL: to configure the project for STM32 Medium-density devices
- STM3210E-EVAL: to configure the project for STM32 High-density devices
- Rebuild all files: Project->build project
- Load project image: Debug->start(ctrl+D)
- Run program: Debug->Run(ctrl+F9)
+ RVMDK
- Open the OVERSAMPLING_AN_TriagularDitherMethod.Uv2 project
- In the build toolbar select the project config:
- STM3210B-EVAL: to configure the project for STM32 Medium-density devices
- STM3210E-EVAL: to configure the project for STM32 High-density devices
- Rebuild all files: Project->Rebuild all target files
- Load project image: Debug->Start/Stop Debug Session
- Run program: Debug->Run (F5)
+ HiTOP
- Open the HiTOP toolchain, a "using projects in HiTOP" window appears.
- Select open an existing project.
- Browse to open the OVERSAMPLING_AN_TriagularDitherMethod.htp:
- under STM32F10B_EVAL directory: to select the project for STM32 Medium-density devices.
- under STM32F10E_EVAL directory: to select the project for STM32 High-density devices
- Rebuild all files: Project->Rebuild all
- Click on ok in the "download project" window.
- Run program: Debug->Go(F5).
Note:
- When using High-density devices, it is mandatory to reset the target
before loading the project into target.
- It is recommended to run the reset script (click on TR button in the
toolbar menu) after loading the project into target.
NOTE:
- Medium-density devices are STM32F101xx and STM32F103xx microcontrollers where
the Flash memory density ranges between 32 and 128 Kbytes.
- High-density devices are STM32F101xx and STM32F103xx microcontrollers where
the Flash memory density ranges between 256 and 512 Kbytes.
******************* (C) COPYRIGHT 2008 STMicroelectronics *****END OF FILE******
没有合适的资源?快使用搜索试试~ 我知道了~
AN2668过采样介绍与例程
共237个文件
c:36个
h:33个
d:28个
需积分: 5 1 下载量 119 浏览量
2023-06-26
09:06:36
上传
评论
收藏 2.8MB ZIP 举报
温馨提示
AN2668过采样介绍与例程
资源推荐
资源详情
资源评论
收起资源包目录
AN2668过采样介绍与例程 (237个子文件)
OVERSAMPLING_AN_TriangularDitherMethod.uvgui.Administrator 70KB
OVERSAMPLING_AN_WhiteNoiseMethod.uvgui.Administrator 70KB
cortexm3_macro.asm 12KB
cortexm3_macro.asm 12KB
cstart_thumb2.asm 7KB
cstart_thumb2.asm 7KB
initvectortable.asm 5KB
initvectortable.asm 5KB
inithardware.asm 373B
inithardware.asm 373B
STM3210B-EVAL.axf 188KB
STM3210B-EVAL.axf 182KB
stm32f10x_tim.c 128KB
stm32f10x_adc.c 57KB
stm32f10x_i2c.c 46KB
stm32f10x_rcc.c 43KB
stm32f10x_usart.c 42KB
stm32f10x_fsmc.c 41KB
stm32f10x_sdio.c 38KB
stm32f10x_spi.c 34KB
stm32f10x_dma.c 33KB
stm32f10x_flash.c 32KB
stm32f10x_can.c 31KB
stm32f10x_it.c 30KB
stm32f10x_it.c 30KB
stm32f10x_nvic.c 28KB
stm32f10x_gpio.c 22KB
main.c 18KB
stm32f10x_dac.c 17KB
main.c 15KB
stm32f10x_rtc.c 12KB
stm32f10x_pwr.c 11KB
stm32f10x_bkp.c 11KB
stm32f10x_lib.c 9KB
stm32f10x_exti.c 9KB
oversampling.c 9KB
stm32f10x_wwdg.c 8KB
stm32f10x_vector.c 7KB
stm32f10x_vector.c 7KB
oversampling.c 7KB
stm32f10x_systick.c 7KB
stm32f10x_iwdg.c 6KB
stm32f10x_vector.c 6KB
stm32f10x_vector.c 6KB
stm32f10x_vector.c 6KB
stm32f10x_vector.c 6KB
stm32f10x_dbgmcu.c 5KB
stm32f10x_crc.c 5KB
stm32f10x_it.d 1KB
stm32f10x_it.d 1KB
oversampling.d 1KB
oversampling.d 1KB
stm32f10x_lib.d 973B
stm32f10x_lib.d 973B
main.d 924B
main.d 924B
stm32f10x_usart.d 495B
stm32f10x_usart.d 495B
stm32f10x_gpio.d 486B
stm32f10x_gpio.d 486B
stm32f10x_tim.d 477B
stm32f10x_adc.d 477B
stm32f10x_dma.d 477B
stm32f10x_adc.d 477B
stm32f10x_tim.d 477B
stm32f10x_dma.d 477B
stm32f10x_flash.d 423B
stm32f10x_flash.d 423B
stm32f10x_nvic.d 415B
stm32f10x_nvic.d 415B
stm32f10x_rcc.d 407B
stm32f10x_rcc.d 407B
stm32f10x_vector.d 46B
stm32f10x_vector.d 46B
cortexm3_macro.d 42B
cortexm3_macro.d 42B
OVERSAMPLING_AN_TriangularDitherMethod.dbi 666B
OVERSAMPLING_AN_WhiteNoiseMethod.dbi 636B
OVERSAMPLING_AN_WhiteNoiseMethod.dep 42KB
OVERSAMPLING_AN_TriangularDitherMethod.dep 42KB
OVERSAMPLING_AN_WhiteNoiseMethod.dep 39KB
OVERSAMPLING_AN_TriangularDitherMethod.dep 39KB
OVERSAMPLING_AN_TriangularDitherMethod_STM3210B-EVAL.dep 11KB
OVERSAMPLING_AN_WhiteNoiseMethod_STM3210B-EVAL.dep 11KB
OVERSAMPLING_AN_WhiteNoiseMethod.ewd 33KB
OVERSAMPLING_AN_TriangularDitherMethod.ewd 33KB
OVERSAMPLING_AN_WhiteNoiseMethod.ewd 31KB
OVERSAMPLING_AN_TriangularDitherMethod.ewd 31KB
OVERSAMPLING_AN_WhiteNoiseMethod.ewp 45KB
OVERSAMPLING_AN_TriangularDitherMethod.ewp 45KB
OVERSAMPLING_AN_WhiteNoiseMethod.ewp 42KB
OVERSAMPLING_AN_TriangularDitherMethod.ewp 42KB
OVERSAMPLING_AN_TriangularDitherMethod.eww 192B
OVERSAMPLING_AN_TriangularDitherMethod.eww 192B
OVERSAMPLING_AN_WhiteNoiseMethod.eww 186B
OVERSAMPLING_AN_WhiteNoiseMethod.eww 186B
stm32f10x_tim.h 46KB
stm32f10x_map.h 28KB
stm32f10x_nvic.h 19KB
stm32f10x_fsmc.h 19KB
共 237 条
- 1
- 2
- 3
资源评论
爱上电路设计
- 粉丝: 10w+
- 资源: 237
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功