summaryrefslogtreecommitdiff
path: root/pwm
diff options
context:
space:
mode:
authorTorsten Duwe <duwe@suse.de>2014-10-16 22:18:06 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2014-10-17 11:35:16 +0200
commit31fd2ff2f8c7ebf74511496967176ac7b0357cf6 (patch)
treeef981ed17b7cf148849a919594646d5e958a34c2 /pwm
parent84a41e9378c29e0150379b34508c9c88addf9a6e (diff)
downloadsigrok-dumps-31fd2ff2f8c7ebf74511496967176ac7b0357cf6.tar.gz
sigrok-dumps-31fd2ff2f8c7ebf74511496967176ac7b0357cf6.zip
Add a pwm dump.
Diffstat (limited to 'pwm')
-rw-r--r--pwm/alsa_test/README43
-rw-r--r--pwm/alsa_test/pwmtest.srbin0 -> 1277955 bytes
2 files changed, 43 insertions, 0 deletions
diff --git a/pwm/alsa_test/README b/pwm/alsa_test/README
new file mode 100644
index 0000000..a01555c
--- /dev/null
+++ b/pwm/alsa_test/README
@@ -0,0 +1,43 @@
+Hardware used
+=============
+* Saleae clone
+* Olimex AT Mega32U4 "T" board
+ https://www.olimex.com/Products/Duino/AVR/AVR-T32U4/
+
+For "high speed" operation, the T32U4 must be jumpered to run on 5V!
+
+Software
+========
+* avr-gcc & companions
+* ALSA
+* LUFA
+ http://www.fourwalledcubicle.com/LUFA.php
+ in particular, the ClassDriver/AudioOutput demo
+ LUFA-140302/Demos/Device/ClassDriver/AudioOutput/
+
+Adapted the Makefile:
+
+14c14
+< MCU = at90usb1287
+---
+> MCU = atmega32u4
+16,17c16,17
+< BOARD = USBKEY
+< F_CPU = 8000000
+---
+> BOARD = OLIMEXT32U4
+> F_CPU = 16000000
+
+[make; avrdude ...]
+
+Left channel on OC3A (pin32) -> Olimex "D5" -> probe 4.
+
+Run "aplay -D front:CARD=Demo,DEV=0 /usr/share/sounds/alsa/test.wav"
+while the Saleae records for 8 seconds. The result is pwmtest.sr.
+Probe 5 was unterminated, see the crosstalk.
+
+You can test the PWM decoder via CLI and extract the raw values:
+sigrok-cli -i pwmtest.sr -P pwm:pwm=4 -B pwm=raw > PWM.raw
+
+Add e.g. some .wav header using sox:
+sox -t raw -e unsigned -b 8 -r 64000 PWM.raw PWM.wav
diff --git a/pwm/alsa_test/pwmtest.sr b/pwm/alsa_test/pwmtest.sr
new file mode 100644
index 0000000..fd11dfb
--- /dev/null
+++ b/pwm/alsa_test/pwmtest.sr
Binary files differ