2018-01-08 12:51 AM
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.
2018-01-08 01:09 AM
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.