S32K358 measuring internal junction temperature

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

S32K358 measuring internal junction temperature

Jump to solution
1,252 Views
YAlex
Contributor I

I am attempting to measure junction temperature on an S32K358 mcu following this thread:
https://community.nxp.com/t5/S32K/Internal-Temperature-sensor/td-p/1688673

The problem I am having is that the measured temperature seems to have different units than expected.  Based on available documentation, it appears I should be measuring temperature in degrees C.  However, at room temperature I'm measuring on the order of 225 instead of 22.  


I have run the initialization of the ADC per the examples.  I run the calibration, then enable the temp sensor.  

The collection routine is as follows: 

YAlex_0-1757358194697.png

I convert from fixed precision to degrees C as follows:

YAlex_1-1757358316662.png

Based on this, should I expect to red temperature in units of degrees C? 

 

0 Kudos
Reply
1 Solution
1,230 Views
_Leo_
NXP TechSupport
NXP TechSupport

Thank you for your interest in our products and for contributing to our community.

Please refer to the following knowledge base post:

https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K344-TempSenser-S32DS36-RTD600-500-400-p...

I hope this information is helpful.

View solution in original post

2 Replies
1,231 Views
_Leo_
NXP TechSupport
NXP TechSupport

Thank you for your interest in our products and for contributing to our community.

Please refer to the following knowledge base post:

https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K344-TempSenser-S32DS36-RTD600-500-400-p...

I hope this information is helpful.

1,175 Views
YAlex
Contributor I

Thank you 

To add some context, I am using the S32K3X8-EVB

J23 by default is in the 1-2 position, which selects 5V on VREFH, and I was using 53 (3.3V) for TempSense Voltage Supply.  


0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2165397%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K358%20measuring%20internal%20junction%20temperature%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2165397%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20am%20attempting%20to%20measure%20junction%20temperature%20on%20an%20S32K358%20mcu%20following%20this%20thread%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2FInternal-Temperature-sensor%2Ftd-p%2F1688673%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2FInternal-Temperature-sensor%2Ftd-p%2F1688673%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20problem%20I%20am%20having%20is%20that%20the%20measured%20temperature%20seems%20to%20have%20different%20units%20than%20expected.%26nbsp%3B%20Based%20on%20available%20documentation%2C%20it%20appears%20I%20should%20be%20measuring%20temperature%20in%20degrees%20C.%26nbsp%3B%20However%2C%20at%20room%20temperature%20I'm%20measuring%20on%20the%20order%20of%20225%20instead%20of%2022.%26nbsp%3B%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EI%20have%20run%20the%20initialization%20of%20the%20ADC%20per%20the%20examples.%26nbsp%3B%20I%20run%20the%20calibration%2C%20then%20enable%20the%20temp%20sensor.%26nbsp%3B%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20collection%20routine%20is%20as%20follows%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22YAlex_0-1757358194697.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22YAlex_0-1757358194697.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F355962i63B607F7A3A6D05A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22YAlex_0-1757358194697.png%22%20alt%3D%22YAlex_0-1757358194697.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI%20convert%20from%20fixed%20precision%20to%20degrees%20C%20as%20follows%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22YAlex_1-1757358316662.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22YAlex_1-1757358316662.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F355963iDDEC5D16C4955863%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22YAlex_1-1757358316662.png%22%20alt%3D%22YAlex_1-1757358316662.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EBased%20on%20this%2C%20should%20I%20expect%20to%20red%20temperature%20in%20units%20of%20degrees%20C%3F%26nbsp%3B%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2166168%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K358%20measuring%20internal%20junction%20temperature%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2166168%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThank%20you%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3ETo%20add%20some%20context%2C%20I%20am%20using%20the%20S32K3X8-EVB%3CBR%20%2F%3E%3CBR%20%2F%3EJ23%20by%20default%20is%20in%20the%201-2%20position%2C%20which%20selects%205V%20on%20VREFH%2C%20and%20I%20was%20using%2053%20(3.3V)%20for%20TempSense%20Voltage%20Supply.%26nbsp%3B%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2165469%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K358%20measuring%20internal%20junction%20temperature%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2165469%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThank%20you%20for%20your%20interest%20in%20our%20products%20and%20for%20contributing%20to%20our%20community.%3C%2FP%3E%0A%3CP%3EPlease%20refer%20to%20the%20following%20knowledge%20base%20post%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K-Knowledge-Base%2FExample-S32K344-TempSenser-S32DS36-RTD600-500-400-p24%2Fta-p%2F2136187%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K-Knowledge-Base%2FExample-S32K344-TempSenser-S32DS36-RTD600-500-400-p24%2Fta-p%2F2136187%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EI%20hope%20this%20information%20is%20helpful.%3C%2FP%3E%3C%2FLINGO-BODY%3E