Skip to main content
Eduard Furlender
Associate II
January 8, 2018
Question

STM3210C-Eval BNC channel11 analog input

  • January 8, 2018
  • 1 reply
  • 583 views
Posted on January 08, 2018 at 09:51

Hello, I am looking for example of how to get analog data from BNC (channel11) instead of potentiometer in STM3210C-Eval board. I used the peripheral library example ADC1 DMA as a base. I understand that PC.04 (GPIO_Pin_4) should be replaced by PA.07 (GPIO_Pin_7) in GPIO_Configuration function and GPIOA should be replaced by GPIOC in GPIO_Init function call. Is this correct? Any suggestion? Thanks in advance.

    This topic has been closed for replies.

    1 reply

    Bogdan Golab
    Lead
    January 8, 2018
    Posted on January 08, 2018 at 10:09

    In such cases I  generate CubeMX driver skeleton for two cases (before and after the change) to see what is affected (what changes). This way I can quickly assess what to do - normally I generate new skeleton for the project but in this case you probably do not have ico file.

    Yes, GPIOC needs the clock to be enabled as the PC04 is clocked in this part of MCU.