aboutsummaryrefslogtreecommitdiffstats
path: root/notes
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2011-06-11 20:00:27 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2011-06-11 20:05:42 -0400
commit44d8556b6f165386f5b42fd25e00b8322b15da45 (patch)
treed150b94d8324addf44cdb2b7bd671471cd189bc0 /notes
parent8abe719099efe1ebbefc5bfb104951b001cc7515 (diff)
downloadlibrambutan-44d8556b6f165386f5b42fd25e00b8322b15da45.tar.gz
librambutan-44d8556b6f165386f5b42fd25e00b8322b15da45.zip
notes/dac.txt: Tidy up content.
Diffstat (limited to 'notes')
-rw-r--r--notes/dac.txt37
1 files changed, 19 insertions, 18 deletions
diff --git a/notes/dac.txt b/notes/dac.txt
index e6c9b7b..3292936 100644
--- a/notes/dac.txt
+++ b/notes/dac.txt
@@ -1,15 +1,16 @@
-
-DAC notes (for maple native and other "high density" STM32 devices)
+DAC
-------------------------------------------------------------------------------
-There is an ST application note for the DACs; it provides a lot of context but
-doesn't help setup the peripheral very much.
-For the first code iteration we'll just use 12-bit right-aligned single writes,
-so use DAC_DHR12Rx
+There is an ST application note for the DACs; it provides a lot of
+context but doesn't help setup the peripheral very much.
+
+For the first code iteration we'll just use 12-bit right-aligned
+single writes, or DAC_DHR12Rx.
-Once data is loaded into the digital registers, there are a number of possible
-triggers to start conversion to analog output: external interrupts, software
-control, and timer events. We'll just use software triggering for now.
+Once data is loaded into the digital registers, there are a number of
+possible triggers to start conversion to analog output: external
+interrupts, software control, and timer events. We'll just use
+software triggering for now.
There is (obviously) DMA support for DAC output.
@@ -33,14 +34,14 @@ time, as follows:
(10) Same triangle
(11) Different triangle
-Buffering will be enabled by default.
+Buffering is enabled by default.
-HOWTOs
+Triangle Wave HOWTO
-------------------------------------------------------------------------------
In order to generate a full-amplitude triangle wave:
- - Make the following settings in dac->CR, for the DAC channel you
+ - Make the following settings in DAC_BASE->CR, for the DAC channel you
want: set MAMP to 1011 (amplitude 4095), WAVE to 10 (triangle),
TSEL to 111 (software trigger), TEN to 1 (trigger enabled), and
EN to 1 (chanel enabled).
@@ -57,10 +58,10 @@ or external line 9, by making appropriate settings to TSEL.
TODO
-------------------------------------------------------------------------------
-- sine wave demo using Timer interrupts
-- wirish implementation
-- documentation
-- higher performance modes?
-- signal quality testing
-- DMA output
+- Sine wave demo (using timer interrupts?)
+- Wirish implementation
+- Official docs
+- Higher performance modes?
+- Signal quality testing
+- DMA output