S32K344 Temperature Sensor

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K344 Temperature Sensor

Jump to solution
4,809 Views
liyongfeng
Contributor III

The IC temperature value was obtained from the ADC0-19 channel and calculated using the code shown in the figure below. However, the temperature value fluctuates severely. What is the reason for this? How to solve it?

liyongfeng_0-1716949961443.pngliyongfeng_1-1716949971424.png

liyongfeng_2-1716949984899.pngliyongfeng_3-1716949992560.png

 

0 Kudos
Reply
1 Solution
4,719 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@liyongfeng

RTD 2.0.0 and test result, very stable.

Senlent_0-1717145585169.png

 

View solution in original post

0 Kudos
Reply
9 Replies
4,761 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@liyongfeng

We have provided you with API functions to calculate temperature sensor conversions

please test the function below:

Adc_Sar_Ip_TempSenseCalculateTemp();

Senlent_0-1717059943934.png

 

0 Kudos
Reply
4,748 Views
liyongfeng
Contributor III

I used this API, but there was no improvement. The temperature value is still jumping

liyongfeng_0-1717136726828.png

liyongfeng_1-1717136763905.png

liyongfeng_3-1717137131849.png

According to parameter TS-ACC2, Is it allowed for temperature fluctuations to occur within the range of ±10 ℃?

liyongfeng_2-1717136798694.png

 

0 Kudos
Reply
4,745 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@liyongfeng

Could you please provided your project and i will help you to check it agian.

The temperature sensor will have errors, but there will not be such a large fluctuation

0 Kudos
Reply
4,741 Views
liyongfeng
Contributor III

Because this is the project code, we cannot provide it to you. Can you provide me with a good demo of S32K344?

0 Kudos
Reply
4,739 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@liyongfeng

no problem, so which version the RTD you're using?

0 Kudos
Reply
4,734 Views
liyongfeng
Contributor III

Is there any other way to send my code to you? 

0 Kudos
Reply
4,720 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@liyongfeng

RTD 2.0.0 and test result, very stable.

Senlent_0-1717145585169.png

 

0 Kudos
Reply
4,728 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@liyongfeng

you can sent me a private message.

 

 

0 Kudos
Reply
4,737 Views
liyongfeng
Contributor III
RTD_4.4_2.0.0_D2203
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1876707%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K344%20Temperature%20Sensor%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1876707%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThe%20IC%20temperature%20value%20was%20obtained%20from%20the%20ADC0-19%20channel%20and%20calculated%20using%20the%20code%20shown%20in%20the%20figure%20below.%20However%2C%20the%20temperature%20value%20fluctuates%20severely.%20What%20is%20the%20reason%20for%20this%3F%20How%20to%20solve%20it%3F%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22liyongfeng_0-1716949961443.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22liyongfeng_0-1716949961443.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F281254iAC4845EE7F2B843A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22liyongfeng_0-1716949961443.png%22%20alt%3D%22liyongfeng_0-1716949961443.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22liyongfeng_1-1716949971424.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22liyongfeng_1-1716949971424.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F281255iCB5C6820AB56F900%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22liyongfeng_1-1716949971424.png%22%20alt%3D%22liyongfeng_1-1716949971424.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22liyongfeng_2-1716949984899.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22liyongfeng_2-1716949984899.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F281256i7F1D4998B16C2177%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22liyongfeng_2-1716949984899.png%22%20alt%3D%22liyongfeng_2-1716949984899.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22liyongfeng_3-1716949992560.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22liyongfeng_3-1716949992560.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F281257i6E77B3C911B72863%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22liyongfeng_3-1716949992560.png%22%20alt%3D%22liyongfeng_3-1716949992560.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1878830%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32K344%20Temperature%20Sensor%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1878830%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CA%20href%3D%22mailto%3AHi%40liyongfeng%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EHi%40liyongfeng%3C%2FA%3E%3C%2FP%3E%0A%3CP%3ERTD%202.0.0%20and%20test%20result%2C%20very%20stable.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Senlent_0-1717145585169.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Senlent_0-1717145585169.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F281923i79824DCE307463D5%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Senlent_0-1717145585169.png%22%20alt%3D%22Senlent_0-1717145585169.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1878772%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32K344%20Temperature%20Sensor%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1878772%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CA%20href%3D%22mailto%3AHi%40liyongfeng%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EHi%40liyongfeng%3C%2FA%3E%3C%2FP%3E%0A%3CP%3Eyou%20can%20sent%20me%20a%20private%20message.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1878748%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32K344%20Temperature%20Sensor%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1878748%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EIs%20there%20any%20other%20way%20to%20send%20my%20code%20to%20you%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1878728%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32K344%20Temperature%20Sensor%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1878728%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CA%20href%3D%22mailto%3AHi%40liyongfeng%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EHi%40liyongfeng%3C%2FA%3E%3C%2FP%3E%0A%3CP%3Eno%20problem%2C%20so%20which%20version%20the%20RTD%20you're%20using%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1878721%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32K344%20Temperature%20Sensor%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1878721%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EBecause%20this%20is%20the%20project%20code%2C%20we%20cannot%20provide%20it%20to%20you.%20Can%20you%20provide%20me%20with%20a%20good%20demo%20of%20S32K344%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1878680%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32K344%20Temperature%20Sensor%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1878680%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CA%20href%3D%22mailto%3AHi%40liyongfeng%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EHi%40liyongfeng%3C%2FA%3E%3C%2FP%3E%0A%3CP%3ECould%20you%20please%20provided%20your%20project%20and%20i%20will%20help%20you%20to%20check%20it%20agian.%3C%2FP%3E%0A%3CP%3EThe%20temperature%20sensor%20will%20have%20errors%2C%20but%20there%20will%20not%20be%20such%20a%20large%20fluctuation%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1878673%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32K344%20Temperature%20Sensor%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1878673%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20used%20this%20API%2C%20but%20there%20was%20no%20improvement.%20The%20temperature%20value%20is%20still%20jumping%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22liyongfeng_0-1717136726828.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22liyongfeng_0-1717136726828.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F281873iD931339657676FA2%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22liyongfeng_0-1717136726828.png%22%20alt%3D%22liyongfeng_0-1717136726828.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22liyongfeng_1-1717136763905.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22liyongfeng_1-1717136763905.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F281874iED96497F138BEB25%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22liyongfeng_1-1717136763905.png%22%20alt%3D%22liyongfeng_1-1717136763905.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22liyongfeng_3-1717137131849.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22liyongfeng_3-1717137131849.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F281877iA4AA71BA70DC858D%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22liyongfeng_3-1717137131849.png%22%20alt%3D%22liyongfeng_3-1717137131849.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EAccording%20to%20parameter%20TS-ACC2%2C%20Is%20it%20allowed%20for%20temperature%20fluctuations%20to%20occur%20within%20the%20range%20of%20%C2%B110%20%E2%84%83%3F%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22liyongfeng_2-1717136798694.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22liyongfeng_2-1717136798694.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F281875i0139170783585706%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22liyongfeng_2-1717136798694.png%22%20alt%3D%22liyongfeng_2-1717136798694.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1878053%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32K344%20Temperature%20Sensor%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1878053%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CA%20href%3D%22mailto%3AHi%40liyongfeng%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EHi%40liyongfeng%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EWe%20have%20provided%20you%20with%20API%20functions%20to%20calculate%20temperature%20sensor%20conversions%3C%2FP%3E%0A%3CP%3Eplease%20test%20the%20function%20below%3A%3C%2FP%3E%0A%3CP%3EAdc_Sar_Ip_TempSenseCalculateTemp()%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Senlent_0-1717059943934.png%22%20style%3D%22width%3A%20653px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Senlent_0-1717059943934.png%22%20style%3D%22width%3A%20653px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F281715iDC93E594167077C4%2Fimage-dimensions%2F653x516%3Fv%3Dv2%22%20width%3D%22653%22%20height%3D%22516%22%20role%3D%22button%22%20title%3D%22Senlent_0-1717059943934.png%22%20alt%3D%22Senlent_0-1717059943934.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E