/*!
\file readme.txt
\brief description of ADC Temperature Vrefint example
\version 2016-08-15, V1.0.0, demo for GD32F4xx
\version 2018-12-12, V2.0.0, demo for GD32F4xx
*/
/*
Copyright (c) 2018, GigaDevice Semiconductor Inc.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. 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.
3. Neither the name of the copyright holder 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 HOLDER 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.
*/
This demo is based on the GD32450Z-EVAL-V1.1 board, it shows how to use
the ADC to convert analog signal to digital data.The ADC is configured
in dependent mode, inner channel 16(temperature sensor channel),channel 17
(VREFINT channel) and channel 18(VBAT/4 channel) are chosen as analog input pin.
As the AD convertion begins by software,the converted data is stored in the
ADC_IDTRx register,where the x is 0 to 2.COM will print these values.
Notice: Because there is an offset,when inner temperature sensor is used to detect
accurate temperature,an external temperature sensor part should be used to calibrate
the offset error.
没有合适的资源?快使用搜索试试~ 我知道了~
GD32F407ZET6ADC驱动例程 测试可用
共664个文件
d:140个
o:140个
crf:136个
需积分: 1 2 下载量 60 浏览量
2023-11-01
16:01:07
上传
评论
收藏 35.52MB ZIP 举报
温馨提示
/* configure the ADC sync mode */ adc_sync_mode_config(ADC_DAUL_REGULAL_FOLLOW_UP); adc_sync_dma_config(ADC_SYNC_DMA_MODE1); adc_sync_dma_request_after_last_enable(); /* ADC data alignment config */ adc_data_alignment_config(ADC0,ADC_DATAALIGN_RIGHT); adc_data_alignment_config(ADC1,ADC_DATAALIGN_RIGHT); /* ADC scan mode function enable */ adc_special_function_config(ADC0,ADC_SCAN_MODE,ENABLE); adc_special_function_config(ADC1,ADC_SCAN_MODE,ENABLE); /
资源推荐
资源详情
资源评论
收起资源包目录
GD32F407ZET6ADC驱动例程 测试可用 (664个子文件)
Project.uvguix.10400 85KB
Project.uvguix.10400 84KB
Project.uvguix.10400 84KB
Project.uvguix.10400 84KB
Project.axf 270KB
Project.axf 270KB
Project.axf 208KB
Project.axf 179KB
gd32f4xx_enet.c 148KB
gd32f4xx_timer.c 87KB
gd32f4xx_exmc.c 56KB
gd32f4xx_rcu.c 49KB
gd32f4xx_adc.c 49KB
gd32f4xx_rtc.c 46KB
gd32f4xx_can.c 40KB
gd32f4xx_dma.c 36KB
system_gd32f4xx.c 35KB
gd32f4xx_usart.c 34KB
gd32f4xx_fmc.c 34KB
audio_core.c 32KB
gd32f4xx_i2c.c 30KB
gd32f4xx_spi.c 30KB
gd32f4xx_sdio.c 28KB
gd32f4xx_ipa.c 26KB
usbd_enum.c 25KB
gd32f4xx_tli.c 24KB
usbd_msc_scsi.c 24KB
dfu_core.c 23KB
usbh_enum.c 22KB
usbh_core.c 21KB
gd32f4xx_dac.c 20KB
drv_usb_dev.c 20KB
usbh_msc_core.c 19KB
usbh_hid_core.c 19KB
drv_usbh_int.c 19KB
drv_usbd_int.c 18KB
usb_iap_core.c 17KB
cdc_acm_core.c 16KB
custom_hid_core.c 15KB
gd32f4xx_gpio.c 15KB
standard_hid_core.c 14KB
drv_usb_host.c 14KB
usbh_msc_scsi.c 13KB
gd32f4xx_ctc.c 13KB
usbh_msc_bbb.c 13KB
usbh_standard_hid.c 12KB
usbd_msc_core.c 12KB
drv_usb_core.c 12KB
gd32f4xx_pmu.c 12KB
usbh_transc.c 11KB
gd32f4xx_dci.c 10KB
printer_core.c 10KB
usbd_core.c 10KB
usbd_msc_bbb.c 9KB
gd32f4xx_exti.c 8KB
gd32f450z_eval.c 8KB
usbd_transc.c 8KB
main.c 8KB
main.c 8KB
gd32f4xx_syscfg.c 8KB
gd32f4xx_dbg.c 8KB
dfu_mem.c 7KB
gd32f4xx_misc.c 7KB
gd32f4xx_fwdgt.c 7KB
usbh_msc_fatfs.c 7KB
usbh_pipe.c 6KB
audio_out_itf.c 6KB
main.c 5KB
gd32f4xx_trng.c 5KB
main.c 4KB
gd32f4xx_wwdgt.c 4KB
gd32f4xx_crc.c 4KB
gd32f4xx_iref.c 4KB
gd32f4xx_it.c 4KB
gd32f4xx_it.c 4KB
gd32f4xx_it.c 4KB
gd32f4xx_it.c 4KB
systick.c 3KB
systick.c 3KB
systick.c 3KB
systick.c 3KB
gd32f4xx_enet.crf 418KB
gd32f4xx_enet.crf 418KB
gd32f4xx_enet.crf 418KB
gd32f4xx_enet.crf 418KB
gd32f4xx_timer.crf 411KB
gd32f4xx_timer.crf 411KB
gd32f4xx_timer.crf 411KB
gd32f4xx_timer.crf 411KB
gd32f4xx_rtc.crf 405KB
gd32f4xx_rtc.crf 405KB
gd32f4xx_rtc.crf 405KB
gd32f4xx_rtc.crf 405KB
gd32f4xx_exmc.crf 403KB
gd32f4xx_exmc.crf 403KB
gd32f4xx_exmc.crf 403KB
gd32f4xx_exmc.crf 403KB
gd32f4xx_adc.crf 400KB
gd32f4xx_adc.crf 400KB
gd32f4xx_adc.crf 400KB
共 664 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7
资源评论
wangxiansheng121
- 粉丝: 347
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功