基于k60的超声波测距程序,可以应用于飞思卡尔。请大家广泛下载
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2030 2010-10-28 03:30 landzo K60超声波测距uildconfig files128KB_Pflash.icf
文件 2206 2010-11-12 03:41 landzo K60超声波测距uildconfig files128KB_Pflash_128KB_Dflash.icf
文件 2035 2012-02-28 15:33 landzo K60超声波测距uildconfig files128KB_Ram.icf
文件 2030 2010-10-28 03:30 landzo K60超声波测距uildconfig files256KB_Pflash.icf
文件 2214 2012-03-01 20:12 landzo K60超声波测距uildconfig files256KB_Pflash_256KB_Dflash.icf
文件 2024 2010-10-28 03:30 landzo K60超声波测距uildconfig files32KB_Ram.icf
文件 2041 2012-03-01 18:46 landzo K60超声波测距uildconfig files512KB_Pflash.icf
文件 2217 2010-11-12 03:41 landzo K60超声波测距uildconfig files64KB_Pflash_64KB_Dflash.icf
文件 2024 2010-10-28 03:30 landzo K60超声波测距uildconfig files64KB_Ram.icf
文件 3463 2012-03-08 21:04 landzo K60超声波测距uildconfig filesfire_RAM_K60N512.icf
文件 3441 2012-03-08 21:04 landzo K60超声波测距uildconfig filesfire_ROM_K60N512.icf
文件 669 2012-10-13 20:50 landzo K60超声波测距uildiar.h
文件 16406 2015-05-13 17:39 landzo K60超声波测距uildSmartCar_demoDebugExeSmartCar.hex
文件 182344 2015-05-13 17:39 landzo K60超声波测距uildSmartCar_demoDebugExeSmartCar.out
文件 25200 2015-05-13 17:39 landzo K60超声波测距uildSmartCar_demoDebugObjadc.o
文件 1255233 2015-05-13 16:26 landzo K60超声波测距uildSmartCar_demoDebugObjadc.pbi
文件 13597 2015-05-13 16:26 landzo K60超声波测距uildSmartCar_demoDebugObjadc.pbi.cout
文件 11672 2015-05-13 17:39 landzo K60超声波测距uildSmartCar_demoDebugObjalloc.o
文件 1235046 2015-05-13 16:26 landzo K60超声波测距uildSmartCar_demoDebugObjalloc.pbi
文件 13594 2015-05-13 16:26 landzo K60超声波测距uildSmartCar_demoDebugObjalloc.pbi.cout
文件 17124 2015-05-13 17:39 landzo K60超声波测距uildSmartCar_demoDebugObjarm_cm4.o
文件 1233169 2015-05-13 16:26 landzo K60超声波测距uildSmartCar_demoDebugObjarm_cm4.pbi
文件 13593 2015-05-13 16:26 landzo K60超声波测距uildSmartCar_demoDebugObjarm_cm4.pbi.cout
文件 8480 2015-05-13 17:39 landzo K60超声波测距uildSmartCar_demoDebugObjassert.o
文件 1231122 2015-05-13 16:26 landzo K60超声波测距uildSmartCar_demoDebugObjassert.pbi
文件 13595 2015-05-13 16:26 landzo K60超声波测距uildSmartCar_demoDebugObjassert.pbi.cout
文件 4248 2015-05-13 17:39 landzo K60超声波测距uildSmartCar_demoDebugObjAT24C02.o
文件 558 2015-05-13 16:26 landzo K60超声波测距uildSmartCar_demoDebugObjAT24C02.pbi
文件 13605 2015-05-13 16:26 landzo K60超声波测距uildSmartCar_demoDebugObjAT24C02.pbi.cout
文件 1748 2015-05-13 17:39 landzo K60超声波测距uildSmartCar_demoDebugObjcrt0.o
............此处省略287个文件信息
/******************** (C) COPYRIGHT 2011 蓝宙电子工作室 ********************
* 文件名 :isr.c
* 描述 :中断处理例程
*
* 实验平台 :野火kinetis开发板
* 库版本 :
* 嵌入系统 :
*
* 作者 :蓝宙电子工作室
* 淘宝店 :http://landzo.taobao.com/
**********************************************************************************/
#include “common.h“
#include “include.h“
/*************************************************************************
* 蓝宙电子工作室
*
* 函数名称:POORTA_IRQHandler
* 功能说明:端口A中断服务函数
* 参数说明:无
* 函数返回:无
* 修改时间:2015-1-10 已测试
* 备 注:
*************************************************************************/
extern u32 Ultrasonic_usUltrasonic_Flag;
void PORTA_IRQHandler(void)
{
/********************************PTA8中断******************************/
if(PORTA_ISFR & 0x0100)
{
Ultrasonic_us=0;
while(PTA8_IN==1)
{
Ultrasonic_us++;
Ultrasonic_Delay(1);
if(Ultrasonic_us>20000) //超出测试距离清0
{
Ultrasonic_us=0;
Ultrasonic_Flag=1;
break;
}
}
Ultrasonic_Flag=0;
PORTA_ISFR |= 0x0100;
}
/*************************************************************************************/
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2030 2010-10-28 03:30 landzo K60超声波测距uildconfig files128KB_Pflash.icf
文件 2206 2010-11-12 03:41 landzo K60超声波测距uildconfig files128KB_Pflash_128KB_Dflash.icf
文件 2035 2012-02-28 15:33 landzo K60超声波测距uildconfig files128KB_Ram.icf
文件 2030 2010-10-28 03:30 landzo K60超声波测距uildconfig files256KB_Pflash.icf
文件 2214 2012-03-01 20:12 landzo K60超声波测距uildconfig files256KB_Pflash_256KB_Dflash.icf
文件 2024 2010-10-28 03:30 landzo K60超声波测距uildconfig files32KB_Ram.icf
文件 2041 2012-03-01 18:46 landzo K60超声波测距uildconfig files512KB_Pflash.icf
文件 2217 2010-11-12 03:41 landzo K60超声波测距uildconfig files64KB_Pflash_64KB_Dflash.icf
文件 2024 2010-10-28 03:30 landzo K60超声波测距uildconfig files64KB_Ram.icf
文件 3463 2012-03-08 21:04 landzo K60超声波测距uildconfig filesfire_RAM_K60N512.icf
文件 3441 2012-03-08 21:04 landzo K60超声波测距uildconfig filesfire_ROM_K60N512.icf
文件 669 2012-10-13 20:50 landzo K60超声波测距uildiar.h
文件 16406 2015-05-13 17:39 landzo K60超声波测距uildSmartCar_demoDebugExeSmartCar.hex
文件 182344 2015-05-13 17:39 landzo K60超声波测距uildSmartCar_demoDebugExeSmartCar.out
文件 25200 2015-05-13 17:39 landzo K60超声波测距uildSmartCar_demoDebugObjadc.o
文件 1255233 2015-05-13 16:26 landzo K60超声波测距uildSmartCar_demoDebugObjadc.pbi
文件 13597 2015-05-13 16:26 landzo K60超声波测距uildSmartCar_demoDebugObjadc.pbi.cout
文件 11672 2015-05-13 17:39 landzo K60超声波测距uildSmartCar_demoDebugObjalloc.o
文件 1235046 2015-05-13 16:26 landzo K60超声波测距uildSmartCar_demoDebugObjalloc.pbi
文件 13594 2015-05-13 16:26 landzo K60超声波测距uildSmartCar_demoDebugObjalloc.pbi.cout
文件 17124 2015-05-13 17:39 landzo K60超声波测距uildSmartCar_demoDebugObjarm_cm4.o
文件 1233169 2015-05-13 16:26 landzo K60超声波测距uildSmartCar_demoDebugObjarm_cm4.pbi
文件 13593 2015-05-13 16:26 landzo K60超声波测距uildSmartCar_demoDebugObjarm_cm4.pbi.cout
文件 8480 2015-05-13 17:39 landzo K60超声波测距uildSmartCar_demoDebugObjassert.o
文件 1231122 2015-05-13 16:26 landzo K60超声波测距uildSmartCar_demoDebugObjassert.pbi
文件 13595 2015-05-13 16:26 landzo K60超声波测距uildSmartCar_demoDebugObjassert.pbi.cout
文件 4248 2015-05-13 17:39 landzo K60超声波测距uildSmartCar_demoDebugObjAT24C02.o
文件 558 2015-05-13 16:26 landzo K60超声波测距uildSmartCar_demoDebugObjAT24C02.pbi
文件 13605 2015-05-13 16:26 landzo K60超声波测距uildSmartCar_demoDebugObjAT24C02.pbi.cout
文件 1748 2015-05-13 17:39 landzo K60超声波测距uildSmartCar_demoDebugObjcrt0.o
............此处省略287个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)