2637 views|3 replies

29

Posts

0

Resources
The OP
 

About the multi-channel capture problem of MSP430F149. [Copy link]

In the 430f149 microcontroller, I set it to continuous mode, and capture both rising and falling edges. The program is as follows. I would like to ask, what does the red box mean? Why should I change the rising edge to the falling edge? If the falling edge is, I should change it to the rising edge? [img]file:///D:\Users\lenovo\AppData\Roaming\Tencent\Users\1206378426\QQ\WinTemp\RichOle\F([U6B)J7DNHPW]2S5M13[N.png[/img]

F([U6B)J7DNHPW]2S5M13[N.png (22.16 KB, downloads: 1)

F([U6B)J7DNHPW]2S5M13[N.png
This post is from Microcontroller MCU

Latest reply

It is possible that you want to capture a high-level pulse. By counting the rising edge and then the falling edge, the subtraction is the high pulse. (It is possible that you want to distinguish which is up and which is down). Can you send me a copy of the program? I am also working on ultrasound and want to use capture, but I don’t know much about clock configuration conversion. 704597517@qq.com My email  Details Published on 2019-5-21 17:27
 

6040

Posts

204

Resources
2
 
If your device only supports single edge interrupt, set it to a certain edge interrupt first, and then change the trigger type in the interrupt. For example, if 149 only supports single edge interrupt, set it to rising edge interrupt first, then you can capture the rising edge, and then change it to falling edge interrupt in the interrupt, then you can capture the next falling edge. If you don't change it this way, you can only capture the rising edge.
This post is from Microcontroller MCU
 
 

29

Posts

0

Resources
3
 
lcofjp posted on 2018-4-21 21:03 If your device only supports single edge trigger interrupt, set it to a certain edge interrupt first, and then change the trigger type in the interrupt. Suppose than...
Thank you very much for your answer. But F149 supports double edge capture, and its mode selects double edge capture. What is the intention of setting it like this in the interrupt?
This post is from Microcontroller MCU
 
 
 

1

Posts

0

Resources
4
 
It is possible that you want to capture a high-level pulse. By counting the rising edge and then the falling edge, the subtraction is the high pulse. (It is possible that you want to distinguish which is up and which is down). Can you send me a copy of the program? I am also working on ultrasound and want to use capture, but I don’t know much about clock configuration conversion. 704597517@qq.com My email
This post is from Microcontroller MCU
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

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