文件名称:KL25-ADC
- 所属分类:
- 其他嵌入式/单片机内容
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2016-01-16
- 文件大小:
- 477kb
- 下载次数:
- 0次
- 提 供 者:
- wan****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
飞思卡尔 KL25 ADC例程
1. 工程概述
(1)本工程为KL25微控制器无操作系统应用工程,ADC样例程序
(2)使用串口与外界通信,使用串口1,波特率为9600,1位停止位,无校验
2. 软件环境
(1)CodeWarrior v10.2/v10.3/10.5
3. 硬件环境
(1)KL25 SD13-01 EVB板
(2)兰灯对应引脚为PTB9,红灯对应引脚为PTB19,绿灯对应引脚为PTB18
(3)串口发送引脚为PTE0,接收引脚为PTE1
(4)ADC0通道14为引脚PTC0,连接外部电压0~3.3V
4. 实验现象
(1)程序启动时串口发送This is ADC Test!,同时灯闪烁
(2)红灯/蓝灯交替闪烁
(3)根据PTC0的输入电压,串口输出范围00_00 ~ 03_-KL25 ADC
1. 工程概述
(1)本工程为KL25微控制器无操作系统应用工程,ADC样例程序
(2)使用串口与外界通信,使用串口1,波特率为9600,1位停止位,无校验
2. 软件环境
(1)CodeWarrior v10.2/v10.3/10.5
3. 硬件环境
(1)KL25 SD13-01 EVB板
(2)兰灯对应引脚为PTB9,红灯对应引脚为PTB19,绿灯对应引脚为PTB18
(3)串口发送引脚为PTE0,接收引脚为PTE1
(4)ADC0通道14为引脚PTC0,连接外部电压0~3.3V
4. 实验现象
(1)程序启动时串口发送This is ADC Test!,同时灯闪烁
(2)红灯/蓝灯交替闪烁
(3)根据PTC0的输入电压,串口输出范围00_00 ~ 03_-KL25 ADC
(系统自动生成,下载前可以参看下载内容)
下载文件列表
KL25-ADC\.cproject
........\.cwGeneratedFileSetLog
........\.project
........\.settings\com.freescale.core.ide.cdt.toolchain.prefs
........\.........\com.freescale.core.ide.newprojectwizard.prefs
........\Common\common.c
........\......\common.h
........\.PU\MKL25Z4.h
........\...\sysinit.c
........\...\sysinit.h
........\...\vectors.c
........\...\vectors.h
........\Doc\Readme.txt
........\.rivers\adc\adc.c
........\.......\...\adc.h
........\.......\gpio\gpio.c
........\.......\....\gpio.h
........\.......\uart\uart.c
........\.......\....\uart.h
........\FLASH\Common\common.args
........\.....\......\common.d
........\.....\......\common.o
........\.....\......\common.o.lst
........\.....\......\subdir.mk
........\.....\.PU\subdir.mk
........\.....\...\sysinit.args
........\.....\...\sysinit.d
........\.....\...\sysinit.o
........\.....\...\sysinit.o.lst
........\.....\...\vectors.args
........\.....\...\vectors.d
........\.....\...\vectors.o
........\.....\...\vectors.o.lst
........\.....\Drivers\adc\adc.args
........\.....\.......\...\adc.d
........\.....\.......\...\adc.o
........\.....\.......\...\adc.o.lst
........\.....\.......\...\subdir.mk
........\.....\.......\gpio\gpio.args
........\.....\.......\....\gpio.d
........\.....\.......\....\gpio.o
........\.....\.......\....\gpio.o.lst
........\.....\.......\....\subdir.mk
........\.....\.......\uart\subdir.mk
........\.....\.......\....\uart.args
........\.....\.......\....\uart.d
........\.....\.......\....\uart.o
........\.....\.......\....\uart.o.lst
........\.....\KL25_UARTINT.args
........\.....\KL25_UARTINT.elf
........\.....\KL25_UARTINT.hex
........\.....\KL25_UARTINT.map
........\.....\makefile
........\.....\makefile.local
........\.....\objects.mk
........\.....\Project_Settings\Startup_Code\startup.args
........\.....\................\............\startup.d
........\.....\................\............\startup.o
........\.....\................\............\startup.o.lst
........\.....\................\............\subdir.mk
........\.....\Sources\isr.args
........\.....\.......\isr.d
........\.....\.......\isr.o
........\.....\.......\isr.o.lst
........\.....\.......\main.args
........\.....\.......\main.d
........\.....\.......\main.o
........\.....\.......\main.o.lst
........\.....\.......\subdir.mk
........\.....\sources.mk
........\.....\SwComponents\light\light.args
........\.....\............\.....\light.d
........\.....\............\.....\light.o
........\.....\............\.....\light.o.lst
........\.....\............\.....\subdir.mk
........\KL25_UARTINT_FLASH_USBDM.traceConfig
........\Project_Settings\Debugger\init_kinetis.tcl
........\................\........\KL25_UARTINT_FLASH_USBDM.launch
........\................\........\mass_erase_kinetis.tcl
........\................\........\MKL25Z128.mem
........\................\Linker_Files\intflash.ld
........\................\Startup_Code\startup.c
........\ReferencedRSESystems.xml
........\SaAnalysispointsManager.apconfig
........\.ources\includes.h
........\.......\isr.c
........\.......\isr.h
........\.......\main.c
........\.wComponents\light\light.c
........\............\.....\light.h
........\FLASH\Drivers\adc
........\.....\.......\gpio
........\.....\.......\uart
........\.....\Project_Settings\Startup_Code
........\.....\SwComponents\light
........\Drivers\adc
........\.......\gpio
........\.......\uart
........\FLASH\Common
........\.....\CPU