1563 views|0 replies

3836

Posts

19

Resources
The OP
 

MSP430 G2553 Launchpad to implement capacitance measurement [Copy link]

I. Basic Principles As shown in the figure above, the general steps are: 1) GPIO charges capacitor C to Vcc through resistor R; 2) The GPIO outputs 0, capacitor C discharges through R, and the Timer starts timing and CA+ is turned on; 3) When the capacitor voltage is discharged to the reference voltage (here is 0.25Vcc), the level changes at the comparator CA+ output; 4) The interrupt program captures this change, and uses the capture mode of the Timer to obtain the time at that moment, and finally calculates the capacitance value through the above equation. In the figure above, it is recommended to use a 1% precision resistor for R to improve the test accuracy. III. State Transition Diagram

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