文件名称:STM32-DAC
介绍说明--下载内容均来自于网络,请自行研究使用
使用软件:
keil5
硬件资源:
1,DS0(连接在PA8)
2,串口1(波特率:9600,PA9/PA10连接在板载USB转串口芯片CH340上面)
3,ALIENTEK 2.8/3.5/4.3/7寸TFTLCD模块(通过GPIO驱动,连接关系见lcd.h)
4,按键KEY0(PC5)/KEY_UP(PA0,也称之为WK_UP)
5,DAC(STM32内部DAC通道1,通过PA4输出)
6,ADC(STM32内部ADC1_CH1,连接在PA1).
实验现象:
本实验利用按键(KEY0/KEY_UP两个按键,或USMART)控制STM32F1内部DAC模块的通道1来输出电压,通过ADC1的
通道1采集DAC的输出电压,在LCD模块上面显示ADC获取到的电压值以及DAC的设定输出电压值等信息。同时可以通过usmart调用Dac1_Set_Vol函数,来直接设置DAC输出电压。-
Purpose:
STM32 learning to use internal DAC
Hardware resources:
1, DS0 (connected PA8)
2, 1 serial port (baud rate: 9600, PA9/PA10 connected to the onboard USB to serial chip CH340 above)
3, ALIENTEK 2.8/3.5/4.3/7 inch TFTLCD module (via the GPIO driver, see the connection between lcd.h)
4, button KEY0 (PC5)/KEY_UP (PA0, also known WK_UP)
5, DAC (STM32 internal DAC channels 1 through PA4 output)
6, ADC (STM32 internal ADC1_CH1, connected PA1).
Experimental phenomena:
In this study, the key (KEY0/KEY_UP two buttons, or USMART) control channel STM32F1 internal DAC module 1 to the output voltage by the ADC1
Channel 1 of the DAC output voltage acquisition, display ADC acquired voltage value and the set value of the DAC output voltage is above the LCD module and other information. And can pass
Over usmart call Dac1_Set_Vol function to directly set the DAC output voltage.
keil5
硬件资源:
1,DS0(连接在PA8)
2,串口1(波特率:9600,PA9/PA10连接在板载USB转串口芯片CH340上面)
3,ALIENTEK 2.8/3.5/4.3/7寸TFTLCD模块(通过GPIO驱动,连接关系见lcd.h)
4,按键KEY0(PC5)/KEY_UP(PA0,也称之为WK_UP)
5,DAC(STM32内部DAC通道1,通过PA4输出)
6,ADC(STM32内部ADC1_CH1,连接在PA1).
实验现象:
本实验利用按键(KEY0/KEY_UP两个按键,或USMART)控制STM32F1内部DAC模块的通道1来输出电压,通过ADC1的
通道1采集DAC的输出电压,在LCD模块上面显示ADC获取到的电压值以及DAC的设定输出电压值等信息。同时可以通过usmart调用Dac1_Set_Vol函数,来直接设置DAC输出电压。-
Purpose:
STM32 learning to use internal DAC
Hardware resources:
1, DS0 (connected PA8)
2, 1 serial port (baud rate: 9600, PA9/PA10 connected to the onboard USB to serial chip CH340 above)
3, ALIENTEK 2.8/3.5/4.3/7 inch TFTLCD module (via the GPIO driver, see the connection between lcd.h)
4, button KEY0 (PC5)/KEY_UP (PA0, also known WK_UP)
5, DAC (STM32 internal DAC channels 1 through PA4 output)
6, ADC (STM32 internal ADC1_CH1, connected PA1).
Experimental phenomena:
In this study, the key (KEY0/KEY_UP two buttons, or USMART) control channel STM32F1 internal DAC module 1 to the output voltage by the ADC1
Channel 1 of the DAC output voltage acquisition, display ADC acquired voltage value and the set value of the DAC output voltage is above the LCD module and other information. And can pass
Over usmart call Dac1_Set_Vol function to directly set the DAC output voltage.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
STM32 DAC实验\CORE
.............\....\core_cm3.c
.............\....\core_cm3.h
.............\....\startup_stm32f10x_hd.s
.............\....\startup_stm32f10x_md.s
.............\HARDWARE
.............\........\ADC
.............\........\...\adc.c
.............\........\...\adc.h
.............\........\DAC
.............\........\...\dac.c
.............\........\...\dac.h
.............\........\KEY
.............\........\...\key.c
.............\........\...\key.h
.............\........\...\led.c
.............\........\...\led.h
.............\........\LCD
.............\........\...\FONT.H
.............\........\...\lcd.c
.............\........\...\lcd.h
.............\........\LED
.............\........\...\led.c
.............\........\...\led.h
.............\keilkilll.bat
.............\OBJ
.............\...\adc.crf
.............\...\adc.d
.............\...\adc.o
.............\...\core_cm3.crf
.............\...\core_cm3.d
.............\...\core_cm3.o
.............\...\DAC.axf
.............\...\DAC.build_log.htm
.............\...\dac.crf
.............\...\dac.d
.............\...\DAC.hex
.............\...\DAC.htm
.............\...\DAC.lnp
.............\...\dac.o
.............\...\DAC.sct
.............\...\DAC_Target 1.dep
.............\...\delay.crf
.............\...\delay.d
.............\...\delay.o
.............\...\key.crf
.............\...\key.d
.............\...\key.o
.............\...\lcd.crf
.............\...\lcd.d
.............\...\lcd.o
.............\...\led.crf
.............\...\led.d
.............\...\led.o
.............\...\main.crf
.............\...\main.d
.............\...\main.o
.............\...\misc.crf
.............\...\misc.d
.............\...\misc.o
.............\...\startup_stm32f10x_hd.d
.............\...\startup_stm32f10x_hd.o
.............\...\stm32f10x_adc.crf
.............\...\stm32f10x_adc.d
.............\...\stm32f10x_adc.o
.............\...\stm32f10x_dac.crf
.............\...\stm32f10x_dac.d
.............\...\stm32f10x_dac.o
.............\...\stm32f10x_gpio.crf
.............\...\stm32f10x_gpio.d
.............\...\stm32f10x_gpio.o
.............\...\stm32f10x_it.crf
.............\...\stm32f10x_it.d
.............\...\stm32f10x_it.o
.............\...\stm32f10x_rcc.crf
.............\...\stm32f10x_rcc.d
.............\...\stm32f10x_rcc.o
.............\...\stm32f10x_usart.crf
.............\...\stm32f10x_usart.d
.............\...\stm32f10x_usart.o
.............\...\sys.crf
.............\...\sys.d
.............\...\sys.o
.............\...\system_stm32f10x.crf
.............\...\system_stm32f10x.d
.............\...\system_stm32f10x.o
.............\...\usart.crf
.............\...\usart.d
.............\...\usart.o
.............\README.TXT
.............\STM32F10x_FWLib
.............\...............\inc
.............\...............\...\misc.h
.............\...............\...\stm32f10x_adc.h
.............\...............\...\stm32f10x_bkp.h
.............\...............\...\stm32f10x_can.h
.............\...............\...\stm32f10x_cec.h
.............\...............\...\stm32f10x_crc.h
.............\...............\...\stm32f10x_dac.h
.............\...............\...\stm32f10x_dbgmcu.h