查看: 3069|回复: 5

[其他] 大家可下载。 弄2天自己在nxp系列的悍马1788_定时器捕获例程

[复制链接]

该用户从未签到

3

主题

11

帖子

0

新手上路

Rank: 1

积分
39
最后登录
2016-12-30
发表于 2016-9-9 15:13:51 | 显示全部楼层 |阅读模式
1.该例程测试定时器的捕获输入模式
2.测试方法,
(1)下载程序
(2)把USB转串口线连接到J8,打开串口调试助手,设置端口号,设置波特率为115200
(3)用一根排线连接到J25的LED4接口,接在GND.
(4) 在排线连接GND的一端,不停的拔出与插入。串口调试助手会显示定时计数器的值
(5)以下为打印出来的信息。(实验现象:当发生捕获中断的时候,显示定时计数器的值)


********************************************************************************

Hello NXP Semiconductors

Timer Capture Example

         - MCU: LPC177x_8x

         - Core: ARM CORTEX-M3

         - UART Communication: 115200 bps

Use timer 0 to take a snapshot of the timer value when an input signal

on CAP0.0 transitions

********************************************************************************

Time capture: 0x00000001

Time capture: 0x00000001

Time capture: 0x00000001

Time capture: 0x00000001

Time capture: 0x00000001

Time capture: 0x00000001

Time capture: 0x00000001

Time capture: 0x00000001

Time capture: 0x00000002

Time capture: 0x00000002

Time capture: 0x00000002

Time capture: 0x00000002

Time capture: 0x00000002

Time capture: 0x00000002

Time capture: 0x00000002

Time capture: 0x00000002

Time capture: 0x00000003

Time capture: 0x00000003

Time capture: 0x00000003

Time capture: 0x00000003

Time capture: 0x00000003

Time capture: 0x00000003

Time capture: 0x00000003

Time capture: 0x00000003

Time capture: 0x00000003

Time capture: 0x00000003

Time capture: 0x00000003

Time capture: 0x00000003

Time capture: 0x00000003

Time capture: 0x00000003

Time capture: 0x00000003

Time capture: 0x00000003

Time capture: 0x00000003

Time capture: 0x00000003

Time capture: 0x00000003

Time capture: 0x00000003

Time capture: 0x00000003

Time capture: 0x00000003

Time capture: 0x00000003

Time capture: 0x00000003

Time capture: 0x00000003

Time capture: 0x00000003

Time capture: 0x00000003

Time capture: 0x00000003

Time capture: 0x00000003

Time capture: 0x00000003

Time capture: 0x00000003

Time capture: 0x00000003

Time capture: 0x00000003

Time capture: 0x00000003

Time capture: 0x00000003

Time capture: 0x00000003

Time capture: 0x00000003

Time capture: 0x00000003

Time capture: 0x00000003

Time capture: 0x00000003

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004

Time capture: 0x00000004





我知道答案 目前已有5人回答

【21】悍马1788_定时器捕获(20160408).rar

7.98 MB, 下载次数: 8, 下载积分: 威望 1

回复

使用道具 举报

  • TA的每日心情
    开心
    2018-7-23 21:04
  • 签到天数: 103 天

    连续签到: 1 天

    [LV.6]常住居民II

    228

    主题

    5379

    帖子

    0

    金牌会员

    Rank: 6Rank: 6

    积分
    16698
    最后登录
    1970-1-1
    发表于 2016-9-9 18:56:48 | 显示全部楼层
    多谢分享,没怎么看懂
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    3

    主题

    11

    帖子

    0

    新手上路

    Rank: 1

    积分
    39
    最后登录
    2016-12-30
     楼主| 发表于 2016-9-10 14:31:51 | 显示全部楼层
    lkl0305 发表于 2016-9-9 18:56
    多谢分享,没怎么看懂

    加我好友我教你
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    开心
    2016-12-14 16:02
  • 签到天数: 2 天

    连续签到: 1 天

    [LV.1]初来乍到

    7

    主题

    61

    帖子

    0

    中级会员

    Rank: 3Rank: 3

    积分
    203
    最后登录
    2017-7-18
    发表于 2017-5-27 09:02:58 | 显示全部楼层
    CC2530模块可定制方案 CC2530模块可定制方案 CC2530模块可定制方案
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    开心
    2016-12-14 16:02
  • 签到天数: 2 天

    连续签到: 1 天

    [LV.1]初来乍到

    7

    主题

    61

    帖子

    0

    中级会员

    Rank: 3Rank: 3

    积分
    203
    最后登录
    2017-7-18
    发表于 2017-6-23 09:41:56 | 显示全部楼层
    CC2530模块可定制方案 CC2530模块可定制方案 CC2530模块可定制方案
    回复 支持 反对

    使用道具 举报

  • TA的每日心情

    2021-1-28 20:09
  • 签到天数: 317 天

    连续签到: 1 天

    [LV.8]以坛为家I

    61

    主题

    1582

    帖子

    6

    金牌会员

    Rank: 6Rank: 6

    积分
    9271
    最后登录
    2022-5-12
    发表于 2017-6-23 10:01:05 | 显示全部楼层
    多谢分享,没怎么看懂
    好好
    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 注册/登录

    本版积分规则

    关闭

    站长推荐上一条 /3 下一条

    Archiver|手机版|小黑屋|恩智浦技术社区

    GMT+8, 2025-7-19 23:14 , Processed in 0.139515 second(s), 27 queries , MemCache On.

    Powered by Discuz! X3.4

    Copyright © 2001-2024, Tencent Cloud.

    快速回复 返回顶部 返回列表