# Problem with multi channel adc

#### Mousivandhossein

Joined Dec 8, 2020
26
Hi,

I want to use channel 3 and the internal temperature sensor of stm32f051.
I read the reference manual of the micro and I tried to use it, but unfortunately, my code does not work.

Thanks and Best Regards,
The code:
main:
#include <stm32f0xx.h>

char i=0;
int volt;
int dam,temp;

int main()
{
for(int j=0;j<200000;j++)j=j;            //delay

while(1)
{
for (i=0; i < 2; i++)
{
}
}