文件名称:KL25-CMP

  • 所属分类:
  • 其他嵌入式/单片机内容
  • 资源属性:
  • [C/C++] [源码]
  • 上传时间:
  • 2016-01-16
  • 文件大小:
  • 474kb
  • 下载次数:
  • 0次
  • 提 供 者:
  • wan****
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

1. 工程概述

(1)本工程为KL25微控制器无操作系统应用工程,CMP样例程序

(2)使用串口与外界通信,使用串口1,波特率为9600,1位停止位,无校验





2. 软件环境

(1)CodeWarrior v10.2/v10.3/v10.5



3. 硬件环境

(1)KL25 SD13-01 EVB板

(2)兰灯对应引脚为PTB9,红灯对应引脚为PTB19,绿灯对应引脚为PTB18

(3)串口发送引脚为PTE0,接收引脚为PTE1

(4)PTD1接正向通道PTC7,负向通道内部连接DAC,正向通道和负向通道比较



4. 实验现象

(1)程序启动时串口发送This is CMP Test!,同时灯闪烁

(2)该样例演示CMP正向通道与负向通道电压比较测试,无窗口模式/滤波模式。

内部6位DAC将0~60数字量转换成0~3V电压输入给负向通道,正向通道输入电压0或3.3V,

CMP比较两通道电压值,根据比较结果在串口输出提示。-1. project overview

(1) the project as KL25 microcontroller operating system free project, CMP sample program

(2) using serial communication with the outside world, using serial port 1, baud rate 9600, 1 stop bit, no parity





2. software environment

(1) CodeWarrior v10.2/v10.3/v10.5



3. hardware environment

(1) KL25 SD13-01 EVB

(2) blue light pin PTB9, red PIN is PTB19, corresponding to green light pin PTB18

(3) serial port PIN is sent to PTE0, and receive pins PTE1

(4) PTD1 forward channel PTC7, channel internal DAC, is to channel to channel and more



4. experimental results

(1) send This serial is CMP Test! when the program starts, and light is blinking

(2) the CMP are demonstrated by the sample channel compared with negative voltage test, windowless mode/filter modes.

Internal 6-bit DAC to convert the 0~60 digital 0~3V input voltage to negative to the channel, the forward channel 0 input voltage or 3.3V,

CMP compare two-channel voltage value, the result of the comp
(系统自动生成,下载前可以参看下载内容)

下载文件列表





KL25-CMP\.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\cmp\cmp.c

........\.......\...\cmp.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\cmp\cmp.args

........\.....\.......\...\cmp.d

........\.....\.......\...\cmp.o

........\.....\.......\...\cmp.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

........\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

........\Sources\includes.h

........\.......\isr.c

........\.......\isr.h

........\.......\main.c

........\.wComponents\light\light.c

........\............\.....\light.h

........\FLASH\Drivers\cmp

........\.....\.......\gpio

........\.....\.......\uart

........\.....\Project_Settings\Startup_Code

........\.....\SwComponents\light

........\Drivers\cmp

........\.......\gpio

........\.......\uart

........\FLASH\Common

........\.....\CPU

........\.....\Drivers

........\.....\Project_Settings

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org