summaryrefslogtreecommitdiff
path: root/README
blob: b0d892b531458d0136101295309b5c616074e1e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Gate Array Learn

	apt install yosys fpga-icestorm nextpnr-ice40 verilator flashrom
	make
	doas make load

Pulse Density Modulation
	https://en.wikipedia.org/wiki/Pulse-code_modulation
	https://curiouser.cheshireeng.com/2015/01/21/pdm-in-attiny85-source-code/

Raspberry Pi UART
	Enable serial communication in raspi-config.

UART
	stty -F /dev/ttyUSB1 1000000 raw cs8
	hexdump -ve '1/1 "%u\n"' /dev/ttyUSB1 | pv > pcm.txt

	pv /dev/ttyUSB1 > pcm.raw
	hexdump -ve '1/1 "%u\n"' pcm.raw > pcm.txt
	play -r 48k -e unsigned-integer -b 8 -c 1 pcm.raw