This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dev:drumgizmo_in_a_box [2017/06/20 20:41] – suhr | dev:drumgizmo_in_a_box [2017/10/03 21:34] (current) – deva | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Drumgizmo in a box ====== | ====== Drumgizmo in a box ====== | ||
+ | * [[dev: | ||
* [[http:// | * [[http:// | ||
Line 25: | Line 26: | ||
multiplexer 16bit pr. channel to 2 bit per channel (ie. 2 channels per 32 bit sample) and write 20 channels in total this way where the 16 is the actual output and the last 4 are unused (but can be used for sync) | multiplexer 16bit pr. channel to 2 bit per channel (ie. 2 channels per 32 bit sample) and write 20 channels in total this way where the 16 is the actual output and the last 4 are unused (but can be used for sync) | ||
+ | |||
+ | ^^ Just set least signifiant bit to zero on all channels except last channel | ||
Line 41: | Line 44: | ||
Bring logic analyzer and rpi3 and probes | Bring logic analyzer and rpi3 and probes | ||
+ | |||
+ | ===Synchronisation between SPI/ALSA and FPGA=== | ||
+ | Each sample uses 1 bit as sync bit. | ||
+ | Channel 0 has the bit set to 1, the rest has it set to 0. | ||
+ | If the FPGA detects a drift, (pattern doesn' | ||
+ | While seeking for a new lock pattern, the output should be muted. When the lock pattern has been found again a number of samples should be processed before the output is unmuted again in order to make sure that we didn't simply find an audio pattern that matched the lock pattern (highly unlikely!) | ||
+ | |||
+ | CS on the SPI can be used as a reset mechanism, ie. CS high will reset the FPGA channel counter. | ||
+ | CS could be set high for each 1024 samples or similar, key-frame style. | ||
===Future ideas=== | ===Future ideas=== |