Example MPC5777M TSENS Temperature Calculation GHS616

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

Example MPC5777M TSENS Temperature Calculation GHS616

Example MPC5777M TSENS Temperature Calculation GHS616

********************************************************************************
Detailed Description:

 Example shows MCU's temperature measurement with the help of TSENS.
 Calibration constants for TSENS0 are read from Test Flash and
 SARADC_B is set to measure Vbg and TSENS outputs.
 Calculated internal temperature can be displayed on the Terminal.

 EVB connection:

   Motherboard
   J14 - SCI_RX ON
   J13 - SCI_TX ON
   J25 - SCI_PWR ON
 
 See results on PC terminal (19200, 8N1, None). You should see following text
 (with different values for sure)

 TSENS - temperature measurement
 press any key to continue...

 TSENS's calibration constants read from Test Flash

 TSCA = 184
 TSCB = 21
 
 T = (232 + TSCA * 2^-6) * TSENS_code / VBG_code - (273 + TSCB * 2^-4) [degC]

 ----------------------------------------------------------------------------

 VBG_code   =  251
 TSENS_code =  339

 TSENS temp = 42.91 degC

 ------------------------------------------------------------------------------
 Test HW:  MPC5777M
 Maskset:  0N50N
 Target :  RAM, internal_FLASH
 Fsys:     600 MHz PLL1 with 40 MHz crystal reference
 Terminal: 19200baud, 8N1
********************************************************************************

Labels (1)
Attachments
%3CLINGO-SUB%20id%3D%22lingo-sub-1121827%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EExample%20MPC5777M%20TSENS%20Temperature%20Calculation%20GHS616%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1121827%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E********************************************************************************%3CBR%20%2F%3EDetailed%20Description%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%26nbsp%3BExample%20shows%20MCU's%20temperature%20measurement%20with%20the%20help%20of%20TSENS.%3CBR%20%2F%3E%26nbsp%3BCalibration%20constants%20for%20TSENS0%20are%20read%20from%20Test%20Flash%20and%20%3CBR%20%2F%3E%26nbsp%3BSARADC_B%20is%20set%20to%20measure%20Vbg%20and%20TSENS%20outputs.%3CBR%20%2F%3E%26nbsp%3BCalculated%20internal%20temperature%20can%20be%20displayed%20on%20the%20Terminal.%3CBR%20%2F%3E%3CBR%20%2F%3E%26nbsp%3BEVB%20connection%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%20Motherboard%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%20J14%20-%20SCI_RX%20ON%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%20J13%20-%20SCI_TX%20ON%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%20J25%20-%20SCI_PWR%20ON%3CBR%20%2F%3E%26nbsp%3B%3CBR%20%2F%3E%26nbsp%3BSee%20results%20on%20PC%20terminal%20(19200%2C%208N1%2C%20None).%20You%20should%20see%20following%20text%3CBR%20%2F%3E%26nbsp%3B(with%20different%20values%20for%20sure)%3CBR%20%2F%3E%3CBR%20%2F%3E%26nbsp%3B%3CSPAN%20style%3D%22color%3A%20%233366ff%3B%22%3ETSENS%20-%20temperature%20measurement%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20style%3D%22color%3A%20%233366ff%3B%22%3E%26nbsp%3Bpress%20any%20key%20to%20continue...%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%233366ff%3B%22%3E%26nbsp%3BTSENS's%20calibration%20constants%20read%20from%20Test%20Flash%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%233366ff%3B%22%3E%26nbsp%3BTSCA%20%3D%20184%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20style%3D%22color%3A%20%233366ff%3B%22%3E%26nbsp%3BTSCB%20%3D%2021%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20style%3D%22color%3A%20%233366ff%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20style%3D%22color%3A%20%233366ff%3B%22%3E%26nbsp%3BT%20%3D%20(232%20%2B%20TSCA%20*%202%5E-6)%20*%20TSENS_code%20%2F%20VBG_code%20-%20(273%20%2B%20TSCB%20*%202%5E-4)%20%5BdegC%5D%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%233366ff%3B%22%3E%26nbsp%3B----------------------------------------------------------------------------%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%233366ff%3B%22%3E%26nbsp%3BVBG_code%26nbsp%3B%26nbsp%3B%20%3D%26nbsp%3B%20251%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20style%3D%22color%3A%20%233366ff%3B%22%3E%26nbsp%3BTSENS_code%20%3D%26nbsp%3B%20339%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%233366ff%3B%22%3E%26nbsp%3BTSENS%20temp%20%3D%2042.91%20degC%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%26nbsp%3B------------------------------------------------------------------------------%3CBR%20%2F%3E%26nbsp%3BTest%20HW%3A%26nbsp%3B%20MPC5777M%3CBR%20%2F%3E%26nbsp%3BMaskset%3A%26nbsp%3B%200N50N%3CBR%20%2F%3E%26nbsp%3BTarget%20%3A%26nbsp%3B%20RAM%2C%20internal_FLASH%3CBR%20%2F%3E%26nbsp%3BFsys%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20600%20MHz%20PLL1%20with%2040%20MHz%20crystal%20reference%3CBR%20%2F%3E%26nbsp%3BTerminal%3A%2019200baud%2C%208N1%3CBR%20%2F%3E********************************************************************************%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1121827%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EGeneral%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
No ratings
Version history
Last update:
‎06-08-2017 05:50 AM
Updated by: