资源简介
同时采集STM8单片机3个ADC通道的数据,通过串口将采集到的数据发送出去,并在串口助手上显示采集的数据波形。

代码片段和文件信息
#include “iostm8s103F3.h“
#include “main.h“
#include “uart.h“
#include “stdio.h“
#include “adc.h“
void SysClkInit( void )
{
CLK_SWR = 0xe1; //HSI为主时钟源 16MHz CPU时钟频率
CLK_CKDIVR = 0x00; //CPU时钟0分频,系统时钟0分频
}
void main( void )
{
__asm( “sim“ ); //禁止中断
SysClkInit();
ADC_GPIO_Init();
ADC_CH_Init( 2 );
Uart1_Init( 9600 );
__asm( “rim“ ); //开启中断
while( 1 )
{
Vol_ave_ch2();
Vol_ave_ch3();
Vol_ave_ch4();
printf(“%d%d%d\r\n“input_cur_valout_cur_valinput_vol_val);
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-01-16 16:17 STM8单片机3通道ADC数据采集及波形显示\
文件 206818 2019-01-16 16:16 STM8单片机3通道ADC数据采集及波形显示\3组ADC数据波形.jpg
目录 0 2019-01-16 16:17 STM8单片机3通道ADC数据采集及波形显示\SerialChart\
文件 379 2019-01-16 14:52 STM8单片机3通道ADC数据采集及波形显示\SerialChart\config.scc
文件 219605 2014-07-17 20:12 STM8单片机3通道ADC数据采集及波形显示\SerialChart\ConfigurationFileSyntax .pdf
文件 43008 2009-06-23 01:42 STM8单片机3通道ADC数据采集及波形显示\SerialChart\libgcc_s_dw2-1.dll
文件 11362 2009-01-10 17:32 STM8单片机3通道ADC数据采集及波形显示\SerialChart\mingwm10.dll
文件 2537472 2010-11-26 03:16 STM8单片机3通道ADC数据采集及波形显示\SerialChart\QtCore4.dll
文件 9814016 2010-09-13 08:30 STM8单片机3通道ADC数据采集及波形显示\SerialChart\QtGui4.dll
文件 4225 2012-07-19 15:18 STM8单片机3通道ADC数据采集及波形显示\SerialChart\serial chart.txt
文件 250880 2011-08-14 04:48 STM8单片机3通道ADC数据采集及波形显示\SerialChart\SerialChart.exe
文件 432 2019-01-16 15:20 STM8单片机3通道ADC数据采集及波形显示\SerialChart\说明.txt
目录 0 2019-01-16 16:09 STM8单片机3通道ADC数据采集及波形显示\STM8_adc_wave_show\
文件 2397 2018-05-15 14:52 STM8单片机3通道ADC数据采集及波形显示\STM8_adc_wave_show\BuildLog.log
目录 0 2019-01-16 15:57 STM8单片机3通道ADC数据采集及波形显示\STM8_adc_wave_show\Debug\
目录 0 2019-01-16 16:15 STM8单片机3通道ADC数据采集及波形显示\STM8_adc_wave_show\Debug\Exe\
文件 8989 2019-01-16 16:15 STM8单片机3通道ADC数据采集及波形显示\STM8_adc_wave_show\Debug\Exe\power_soft.hex
文件 65364 2019-01-16 16:15 STM8单片机3通道ADC数据采集及波形显示\STM8_adc_wave_show\Debug\Exe\power_soft.out
目录 0 2019-01-16 16:15 STM8单片机3通道ADC数据采集及波形显示\STM8_adc_wave_show\Debug\List\
文件 23129 2019-01-16 16:15 STM8单片机3通道ADC数据采集及波形显示\STM8_adc_wave_show\Debug\List\power_soft.map
目录 0 2019-01-16 16:15 STM8单片机3通道ADC数据采集及波形显示\STM8_adc_wave_show\Debug\Obj\
文件 34522 2019-01-16 16:15 STM8单片机3通道ADC数据采集及波形显示\STM8_adc_wave_show\Debug\Obj\adc.o
文件 262798 2019-01-16 16:15 STM8单片机3通道ADC数据采集及波形显示\STM8_adc_wave_show\Debug\Obj\adc.pbi
文件 11749 2019-01-16 16:15 STM8单片机3通道ADC数据采集及波形显示\STM8_adc_wave_show\Debug\Obj\adc.pbi.xcl
文件 8247 2019-01-16 16:15 STM8单片机3通道ADC数据采集及波形显示\STM8_adc_wave_show\Debug\Obj\main.o
文件 257679 2019-01-16 16:15 STM8单片机3通道ADC数据采集及波形显示\STM8_adc_wave_show\Debug\Obj\main.pbi
文件 11741 2019-01-16 16:15 STM8单片机3通道ADC数据采集及波形显示\STM8_adc_wave_show\Debug\Obj\main.pbi.xcl
文件 265328 2019-01-16 16:15 STM8单片机3通道ADC数据采集及波形显示\STM8_adc_wave_show\Debug\Obj\power_soft.pbd
文件 265328 2019-01-16 16:15 STM8单片机3通道ADC数据采集及波形显示\STM8_adc_wave_show\Debug\Obj\power_soft.pbd.browse
文件 208 2019-01-16 16:15 STM8单片机3通道ADC数据采集及波形显示\STM8_adc_wave_show\Debug\Obj\power_soft.pbd.linf
文件 21142 2019-01-16 16:15 STM8单片机3通道ADC数据采集及波形显示\STM8_adc_wave_show\Debug\Obj\uart.o
............此处省略32个文件信息
相关资源
- 单片机和adc0809数字电压表
- 单片机、ADC0808809设计简易数字电压表
- 数据采集系统——ADC0808的应用,单片
- ADC0809数字电压表 LCD1602显示 汇编程序
- 数字电压表(源程序 protues仿真)
- stm32通过DMA方式采集ADC数据
- 意法半导体STM全系列微控制器STM32ST
- STM8S SX1278 项目和源代码
- broadcom phy BCM5482S datasheet(开发用)
- ADC0808工作时序图
- STM8S003 红外遥控
- STM8S例程,基于IAR下的STM8S例程
- bcm5482 datasheet
- broadcom 802.11g 网络适配器驱动程序 v
- STM32F103VCT6TR - High-density performance lin
- AT89C51+ADC0808 PROTEUS仿真
- ADC0832ADC0809DAC0832三种芯片程序,c程序
- 数据采集系统——ADC0808的应用
- 基于STM8的HT1621B显示驱动程序
- STM8驱动HT1621B
- 超声处理原位反应合成Al2O3/ADC12复合材
- STM32AD采集DA还原
- 以单片机AT89S52、光电脉宽调制器芯片
- ADC0808 数字电压表仿真+C程序
- AppleBluetoothBroadcomInstaller 滚轮
- STM8L中文参考手册1-4全
- STM8L_MPU6500_DMP_震动唤醒
- BMS检测代码-12路-串联
- cs1237手册
- arduino主机,stm8从机。I2C测试 。每次
评论
共有 条评论