cancel
Showing results for 
Search instead for 
Did you mean: 

Temperature sensor on ADC2

camille
Associate II
Posted on December 27, 2011 at 17:34

Hi everybody.

I've just a little question : does anyone knows if the internal temperature sensor of an STM32F107 can be read with ADC2. In the reference manual it's written ''The temperature sensor is internally connected to the ADCx_IN16 input channel'' but on figure 39 Vsense and Vref are clearly connected to ADC1.

However I'm trying to use ADC2 to read internal temperature sensor value but I just get very very low values (0x01...0x07) while with ADC1 values are Ok.

Thanks a lot.

Robin.
2 REPLIES 2
raptorhal2
Lead
Posted on December 28, 2011 at 16:06

Other sections in the reference manual are more specific. RM0008 Rev 13 Section 11.3.3 says:

''Note: The sensor and VREFINT are only available on the master ADC1 peripheral.''

Figure 29 shows the temp sensor and VRef going to ADC1, but only IN_0 to IN_15 go to ADC2.

Cheers, Hal

camille
Associate II
Posted on December 28, 2011 at 21:55

Ok thank you very much. Next time i'll read more carefully all the paragraph 😉

Regards.

Robin