2018-04-25 12:05 PM
Hello,
I want to know if there is any way to reallocate a sensor configured on a pin from STM32F091VCx to another pin.
I have a wind direction sensor that originally was digital and had all the measurement, treatment and sending configuration but right now I needed to change it and it is analogic. However the pin that it was connected (PD0) does not have an ADC builted in so I must change the pin to one that does have the ADC. So, I want to know if there is any document or something like that I can use to 'give me a north' without need to rebuild all the project because it was from third partner and I'm kinda lost.
By the way, I'm using the IAR 7.70.1, generating a blank project with the STM32CubeMX and copy all the third-partner firmware files to the SRC folder and add on the IAR.
#embedded-firmware #hal-adc #adc-configuration2018-04-26 9:18 AM
Hi
vlqueiroz93
,You have to refer to the pinout table in
to know the ADC pins and select the suitable one to be configured in your case.As you are already generating a blank project with STM32CubeMX, you can also use it to configure an ADC channel and select the suitable pin for your application.
-Amel
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.