Example MPC5777C TSENS Temperature calculation GHS614

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

Example MPC5777C TSENS Temperature calculation GHS614

Example MPC5777C TSENS Temperature calculation GHS614

********************************************************************************

* Detailed Description:

*

* Example shows MCU's temperature measurement with the help of TSENS.

* Calibartion constants for TSENS0/TSENS1 are read from Test flash and

* eQADC is set to measure Vbg and TSENS outputs. eQADC calibration is also done.

* Calculated internal temperature can be displayed on the Terminal.

*

* See results on PC terminal (19200, 8N1, None). You should see following text

* (with different values for sure)

*

*    TSENS0/TSENS1 temperature measurement

*     press any key to continue...

*

*    Calibration constants read from TSENS registers

*

*    TSENS0                           TSENS1

*

*    TSCA_0 = 207                     TSCA_1 = 148

*    TSCB_0 = 7                       TSCB_1 = 19

*

*    T = (232 + TSCA * 2^-6) * TSENS_CODE_T / VBG_CODE_T - (273 + TSCB * 2^-4) [degC]

*

*    VBG_CODE_T   =  997

*    TSENS0_CODE_T = 1325             TSENS1_CODE_T = 1332

*

*    TSENS0 temp = 39.19 degC         TSENS1 temp = 38.86 degC

*

* ------------------------------------------------------------------------------

* Test HW:         MPC5777C-512DS Rev.A + MPC57xx MOTHER BOARD Rev.C

* MCU:             PPC5777CMM03 2N45H CTZZS1521A

* Fsys:            PLL1 = core_clk = 264MHz, PLL0 = 192MHz

* Debugger:        Lauterbach Trace32

* Target:          internal_FLASH

* Terminal:        19200-8-no parity-1 stop bit-no flow control on eSCI_A

*                  use USB connector (J21) on minimodule

* EVB connection:  ETPUA30 (PortP P23-15) --> USER_LED_1 (P7-1)

*                  ETPUA31 (PortP P23-14) --> USER_LED_2 (P7-2)

*

********************************************************************************

Labels (1)
Attachments
No ratings
Version history
Last update:
‎02-25-2016 07:19 AM
Updated by: