| Electronic Components Datasheet Search |
|
AN4112 Datasheet(PDF) 12 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4112 Datasheet(HTML) 12 Page - STMicroelectronics |
|
12 / 17 page ![]() Capacitance measurement AN4112 12/17 Doc ID 023195 Rev 1 5 Capacitance measurement The ability to connect the COMP2 output to the input capture channels of the timers allows the capacitance value to be measured. The principle is based on measuring the charge time of a resistor-capacitor (RC) network as follows: ● the charge time is measured ● the charge resistor (R) is already known ● the unknown capacitance (C) can be computed Figure 9 shows the hardware connection of the RC network to an STM32F05xx device. Figure 9. RC network connection for capacitance measurement The capacitance measurement procedure consists of charging and discharging the capacitor through the resistor. The charge/discharge function follows an exponential curve. The charge function is given by Example 1. Example 1 where: ● VDD is the positive supply voltage ● t is the time ● T is the RC constant Charging and discharging the RC network is ensured by the timer output compare channel (TIMx OC) configured in PWM mode. The timer channel is connected to the resistor. The input voltage is connected to the COMP2 non-inverting input while the threshold is connected to the COMP2 inverting input. When the input voltage crosses the threshold, the COMP2 output switches to high level and a capture event occurs saving the counter value. Figure 10 shows the capacitance measurement. Input voltage V DD 1t T ⁄ – () exp – () = |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |