2066 views|0 replies

3836

Posts

19

Resources
The OP
 

How to use 430f149 to detect the length of a pulse? How to implement the program? [Copy link]

Now I want to detect a 2-second pulse, but I don't know how to implement it in the program. Please help me. 1. Turn on the system clock and the timer. Let's assume that TimerA is used. 2. Configure a capture mode, rising edge capture. 3. In the interrupt service program, if the rising edge arrives, record the reading, and change the rising edge to the falling edge trigger. 3. Determine whether the falling edge arrives and record the reading. 4. Subtract the two, and the reading is the pulse width.
This post is from Microcontroller MCU
 

Guess Your Favourite
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list