| Electronic Components Datasheet Search |
|
AN2979 Datasheet(PDF) 10 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2979 Datasheet(HTML) 10 Page - STMicroelectronics |
|
10 / 12 page ![]() Measurements and calibration AN2979 10/12 Doc ID 15651 Rev 1 The calibration is then performed by firware and the RC constant is updated. This constant is used in the charge equation. On the STM8L101-EVAL evaluation board, the COMP2 channel 4 (PD3) is connected to VDD via a resistor bridge. Figure 8. Evaluation board calibration schematic As VDD=3.3 V, PD3 is a fixed value equal to 0.4 V In the file “param.h” you need to define the “expected_value” equal to 0.4 ( this value needs to be updated if a different resistor bridge is used). The specific function “Calibration()” configures the COMP2 Channel 4 and compares the value measured on this channel with the expected value. This function then updates the RC constant that will be used afterwards. When the calibration is performed, the COMP2 configuration changes to use the Channel 3 (PD2). The following table lists a few measurement examples with a calibration performed at VDD=3.3 V, R=10 kΩ and C=100 nF. Table 2. Accuracy measurement when the calibration is performed Value to be measured (V) Measured value after conversion (V) Error (%) 0.25 0.233 6.8% 0.5 0.475 5% 0.8 0.792 1.25% 10.99 1% 1.2 1.211 0.92% 1.5 1.512 0.8% 1.75 1.784 1.9% |
|
|
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 |