aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32/f1/stm32vl-discovery/adc-dac-printf/README
diff options
context:
space:
mode:
authorPiotr Esden-Tempski2013-02-18 14:07:00 -0800
committerPiotr Esden-Tempski2013-02-18 14:07:00 -0800
commitf980f197ca17c324089f8650fee9df081e5502e6 (patch)
tree0fd2476cd3fe73261b26f953d55b88ac4ced92d3 /examples/stm32/f1/stm32vl-discovery/adc-dac-printf/README
parent9095f58fa3c167a8646a0f9abd5461115e53e2de (diff)
parent13dedaafc1be28ced50b6a5426f4b87a8a6dc61b (diff)
Merge pull request #81 "[examples f1] ADC+DAC very basic example"
Merge remote-tracking branch 'karlp/pr_f1_adc_dac'
Diffstat (limited to 'examples/stm32/f1/stm32vl-discovery/adc-dac-printf/README')
-rw-r--r--examples/stm32/f1/stm32vl-discovery/adc-dac-printf/README17
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/stm32/f1/stm32vl-discovery/adc-dac-printf/README b/examples/stm32/f1/stm32vl-discovery/adc-dac-printf/README
new file mode 100644
index 0000000..796cba2
--- /dev/null
+++ b/examples/stm32/f1/stm32vl-discovery/adc-dac-printf/README
@@ -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
+...