2135 views|3 replies

6366

Posts

4929

Resources
The OP
 

MSP430 MCU Development Record (9) [Copy link]




This content is originally created by EEWORLD forum user tiankai001. If you need to reprint or use it for commercial purposes, you must obtain the author's consent and indicate the source. Msp430 MCU Development Record (9) Phenomenon: AD conversion function debugging, the sampling and holding time is short, the measured voltage is 0, modify the program, add a delay before the register configuration is completed and the AD conversion starts, as the delay time increases, the measured voltage becomes higher and higher, after the delay reaches 700MS, the voltage is the power supply voltage. The sampling and holding time is changed to a longer time, no delay is added before the AD conversion, and the voltage is normal after the third voltage acquisition. Test: The AD conversion function was available in every product before, and it was normal. Only this time there was a problem, it must not be a problem with the AD conversion program, but there was a problem with the program before the AD conversion. Finally, it was found that when the port was initialized, this AD conversion channel was set to the output direction, which caused the values of the first few AD conversions to be incorrect. Verification: When the port is initialized, set the port corresponding to the AD conversion to input status. After repeated tests, the collected voltage value remains stable Remarks: The port corresponding to the AD conversion needs to be set as the input port in advance. If the port is set from output to input at the beginning of the AD conversion, an appropriate delay is required to obtain the correct voltage value.
This post is from Microcontroller MCU

Latest reply

You are so polite, thank you.  Details Published on 2018-12-18 11:02
 

2618

Posts

0

Resources
2
 
This section is short and easy to digest.
This post is from Microcontroller MCU

Comments

Thank you for your support and valuable suggestions.  Details Published on 2018-12-18 10:45
 
 

6366

Posts

4929

Resources
3
 
alan000345 posted on 2018-12-18 10:35 This section is short and easy to digest.
Thank you for your support and give me more valuable suggestions
This post is from Microcontroller MCU

Comments

You are very kind. Thank you.  Details Published on 2018-12-18 11:02
 
 
 

2618

Posts

0

Resources
4
 
tiankai001 posted on 2018-12-18 10:45 Thank you for your support and please give me more valuable suggestions
You are so polite, thank you.
This post is from Microcontroller MCU
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

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