The OP
Published on 2017-11-3 16:44
Only look at the author
This post is from Analogue and Mixed Signal
Latest reply
For the second question, I downloaded the code you mentioned from the official website, but I still didn't understand it. The official code configured once before initialization and before entering the while loop. 1. ADS1220_MUX_AIN3_AIN2. The comment is // Configure ADS1220 for first measurement. Then configured RTD again. 2. ADS1220_MUX_AIN3_AIN2. The comment is Configure ADS1220 for first RTD measurement. After comparing, the two configurations are the same, so the first one should be omitted. Then start a conversion in the while loop, read the result of the last configuration conversion, and then configure RTD. 3. ADS1220_MUX_AIN2_AIN3. This time, AIN+ and AIN- are opposite to the last time. The last conversion result 2 is saved in RTDtemperature. Start the conversion of the third configuration of RTD. Read the result of the third configuration conversion. Configure TC. 4. ADS1220_MUX_AIN0_AIN1. Add the second result of RTD to the first result and divide it by 2. The comment is // now averaging RTD Results means to find the average, but if the input polarity of the two sampling results is opposite, the sum of the results should theoretically be zero I don’t quite understand this. Calculate the RTD temperature through the RTD result. Calculate the cold-end compensation code through the RTD temperature. Start the 4th configuration conversion. Read the 4th result. Divide the 4th result by 2. Configure TC 5. ADS1220_MUX_AIN1_AIN0 (opposite to the previous polarity). Start the conversion. Read the result after the 5th configuration conversion. Divide the 5th result by 2. Subtract the 2 results because the 2 results have opposite polarities. Dividing by 2 and then subtracting should give the average of the 2 results. Add the TC result and the cold-end compensation code. Get the TC (thermocouple) temperature value through the compensated TC result. Read the internal temperature sensor of ADS1220…………………………
Details
Published on 2017-11-3 19:55
| ||
|
||
littleshrimp
Currently offline
|
2
Published on 2017-11-3 19:40
Only look at the author
This post is from Analogue and Mixed Signal
| |
Personal signature虾扯蛋,蛋扯虾,虾扯蛋扯虾
|
||
|
3
Published on 2017-11-3 19:45
Only look at the author
| |
|
|
|
littleshrimp
Currently offline
|
4
Published on 2017-11-3 19:55
Only look at the author
This post is from Analogue and Mixed Signal
| |
Personal signature虾扯蛋,蛋扯虾,虾扯蛋扯虾
|
||
|
This post is from Analogue and Mixed Signal
| ||
|
||
|
This post is from Analogue and Mixed Signal
| ||
|
||
|
EEWorld Datasheet Technical Support
EEWorld
subscription
account
EEWorld
service
account
Automotive
development
circle
About Us Customer Service Contact Information Datasheet Sitemap LatestNews
Room 1530, Zhongguancun MOOC Times Building, Block B, 18 Zhongguancun Street, Haidian District, Beijing 100190, China Tel:(010)82350740 Postcode:100190