Skip to main content
Visitor II
December 8, 2023
Question

Enquiry about multichannel ADC for STM32F051R8T6 Board

  • December 8, 2023
  • 1 reply
  • 1158 views

i am facing issue in generating PWM using to ADC channel in STM32F051R8T6 board so i wanted to ask that does this particular board supports multichannel ADC

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    December 8, 2023

    Hello @ygjagtap and welcome to the ST Community :smiling_face_with_smiling_eyes:. 

    As mentioned in the RM0091 Part 13.3.6:

    There are up to 19 multiplexed channels:
    • 16 analog inputs from GPIO pins (ADC_INx)
    • 3 internal analog inputs (temperature sensor, internal reference voltage, VBAT channel)
    It is possible to convert a single channel or a sequence of channels.

    The sequence of the channels to be converted can be programmed in the ADC_CHSELR
    channel selection register: each analog input channel has a dedicated selection bit
    (CHSELx).

    Best Regards.

    STTwo-32

     

    ygjagtapAuthor
    Visitor II
    December 8, 2023

    Thankyou so much for your confirmation.

    Can you kindly help me in Decoding the problem I am facing to get output using below attached main.c file.

    I have initialized 2 ADC Channels and connected 2 potentiometer to each ADC respectively. But while rotating the potentiometer of ADC_Channel_5 both the values of PWM frequency changes and the other ADC Channel is not working at all. But I wanted the output as when I rotate the potentiometer of a particular ADC Channel the frequency of that particular channel should only change. Kindly can you help me with resolving the following issue.