cancel
Showing results for 
Search instead for 
Did you mean: 

STM3210C-Eval BNC channel11 analog input

Eduard Furlender
Associate II
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.

1 REPLY 1
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.