I need help to read data from temperature sensor of STM32F103C8. The datasheet show: The temperature sensor is internally connected to the ADC12_IN16 input channel.
However, when I write:
Code: Select all
ADC_Set_Input_Channel(_ADC_CHANNEL_16)
ADC1_Init()
adc_result = ADC1_Get_Sample(16)
But _ADC_CHANNEL_0......_ADC_CHANNEL_9 no such error.
How I can read temperature sensor (this data will send via the UART to PC)?