Other Parts Discussed in Thread: C2000WARE
Tool/software:
Hi Team,
From below picture, It means that F28035PAG don't have on chip temperature sensor?(64 PIN don't have A5)
But from the customer's test, some chips can read right temperature, but some chips can't.

Here is the configuration from customer, and they use external refer voltage 3V:
AdcRegs.ADCCTL1.bit.ADCBGPWD = 1; // Power ADC BG
AdcRegs.ADCCTL1.bit.ADCREFPWD = 1; // Power reference
AdcRegs.ADCCTL1.bit.ADCPWDN = 1; // Power ADC
AdcRegs.ADCCTL1.bit.ADCENABLE = 1; // Enable ADC
AdcRegs.ADCCTL1.bit.ADCREFSEL = 1; // Select external BG
AdcRegs.ADCSOC14CTL.bit.TRIGSEL = EPWM5_ADCSOCA;
AdcRegs.ADCCTL1.bit.TEMPCONV = 1; //Connect A5 - temp sensor
AdcRegs.ADCSOC14CTL.bit.CHSEL = 0x05; //Set SOC0 to sample A5
AdcRegs.ADCSOC14CTL.bit.ACQPS = ADC_SHCLK;
0℃ offset = 1750 * (3.3 / 3.0) = 1925 LSBs
slope = 5.56 * (3.3 / 3.0) = 6.12 LSBs
that is: 1 / 6.12 = 0.16 °C/LSB
Best Regards,
Zane