stm32f4: adc-dac-printf example
This is the same behaviour as the f1 and l1 examples of this code, making it easier to test changes to unification of the adc code.
This commit is contained in:
17
examples/stm32/f4/stm32f4-discovery/adc-dac-printf/README
Normal file
17
examples/stm32/f4/stm32f4-discovery/adc-dac-printf/README
Normal file
@@ -0,0 +1,17 @@
|
||||
Console on PA2 (tx only) 115200@8n1
|
||||
|
||||
* Prints the ADC value on PA0 (adc channel 0) on the console
|
||||
* Echos half that ADC value out to DAC channel 2 on PA5
|
||||
* Prints the ADC value of PA1 (adc channel 1) to the console.
|
||||
|
||||
Recommended wiring:
|
||||
* pot or any resistor ladder to PA0
|
||||
* jumper from PA5 to PA1
|
||||
|
||||
example output:
|
||||
...
|
||||
tick: 228: adc0= 3950, target adc1=1975, adc1=1979
|
||||
tick: 229: adc0= 3949, target adc1=1974, adc1=1978
|
||||
tick: 230: adc0= 3950, target adc1=1975, adc1=1979
|
||||
tick: 231: adc0= 3949, target adc1=1974, adc1=1978
|
||||
...
|
||||
Reference in New Issue
Block a user