2016-01-26 02:47 AM
Hi everyone -
In the datasheet for the STM32F070, the table that lists temperature sensor calibration registers (section 3.10.1, table 3) only gives the details of TS_CAL1 (the 30deg c calibration value). The RM approriate to this processor (RM0360) includes an example that references a 110 deg c calibration value TS_CAL2 (at address 0x1FFFF7C2). The 0x1/0x2/0x8 series datasheets (RM0091) include both calibration registers in the same place.I've double checked latest docs by following from st.com so I don't think I've googled an out of date version of the data sheet.Can someone confirm with certainty that its reasonable to use the 0x1 datasheets and the 0x0 reference manual's appendix example for the TS_CAL2 value, i.e. this is an error in the 0x0 datasheet, or do the 070 series parts in fact not have the second calibration value - which seems not very useful - and its the reference manuals that are wrong.Thanks, Daniel #stm32-temperature-stmf0x0-stmf02016-01-26 04:15 AM
The ''value line'' 'F030/F070 variants are not tested as thoroughly as their ''full-fledged higher-cost'' counterparts, thus the high-temperature value is missing.
The code is included probably as a copy-paste from the ''full-fledged'' UM. JW2016-01-26 04:59 AM
Cool, thank you for responding.
Daniel2016-01-27 02:50 AM
Hi daniel,
I confirm that this is an error in RM0360 snippet as explained by jan.So there is no TS_CAL2 in STM32F030x4/6/8/C and STM32F070x6/B.The temperature computation code example will be fixed in next version of RM0360.-Mayla-To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2016-06-19 06:33 AM
Hi,
I have the same issue. As far as I can see, RM0360 has not been updated yet (it still includes both TS_CAL1 and TS_CAL2). Can you provide example how an absolute temperature can be calculated with only TS_CAL1? How can I obtain the slope value, i.e. how many ADC units to take per degree C without TS_CAL2? Thanks. Kind Regards, Lukasz Nowak2016-06-19 07:09 AM
I don't think the parts get the same level of testing.
I would recommend that you run your board/part over a temperature profiles, at the voltage it normally runs at, and develop a slope from that.