Altair Embed - STM32G070RB ADC Configuration.

User: "Prakash S"
Altair Community Member
Updated by Prakash S

Dear All,

Greetings,

I am using the Altair Embed tool for developing the model-based motor control software for the microcontroller "STM32G070RB". Currently, I am facing difficulty in configuring ADC and Looking for support to solve it.

 Below I have mentioned the list of actions that I have done.

Step 1: STM32 Config.

image 

Step 2: PWM config to generate a trigger to ADC.

image

Step 3: ADC Config.

image

Step 4: 

image

image

After compiling it, the ADC value shows it as 0.346 irrespective of the voltage applied between (0-3.3V).

Kindly help me to solve this issue.

 

Thanks & Regards,

Prakash S.

 

Find more posts tagged with