testhal ADC STM32H743 example improvement
Posted: Mon Jun 15, 2020 4:16 pm
I was testing the ADC of the STM32H743, and found a few things that could improved in the testhal example.
1. ADC1_IN0 is tied to PA9_C, a dedicated analog pin not available on the nucleo board. To sample PA0 instead replace IN0 by IN16 in .
2. It would be very useful to spit out the ADC values to USART3, so the ADC can actually be tested.
3. Visual feedback of the ADC value could also be a simple way to test, let the pulse-width of the blink depend on the read ADC value.
Attached are the patches for these three points.
1. ADC1_IN0 is tied to PA9_C, a dedicated analog pin not available on the nucleo board. To sample PA0 instead replace IN0 by IN16 in .
2. It would be very useful to spit out the ADC values to USART3, so the ADC can actually be tested.
3. Visual feedback of the ADC value could also be a simple way to test, let the pulse-width of the blink depend on the read ADC value.
Attached are the patches for these three points.