From 7fcb323c0657b16180aac255f5868474c50997bc Mon Sep 17 00:00:00 2001 From: UnavailableDev <69792062+UnavailableDev@users.noreply.github.com> Date: Mon, 13 Feb 2023 11:07:50 +0100 Subject: Research - FPGA audio generation --- assets/audioPWM.svg | 340 ++++++++++++++++++++++++++++++++++++++++++++++++++++ docs/research.md | 12 ++ 2 files changed, 352 insertions(+) create mode 100644 assets/audioPWM.svg diff --git a/assets/audioPWM.svg b/assets/audioPWM.svg new file mode 100644 index 0000000..3b43a0b --- /dev/null +++ b/assets/audioPWM.svg @@ -0,0 +1,340 @@ + + + + + + + + + image/svg+xml + + + + + + + + + + + + V + B + + + + B (T), V (V) + 1.5 + 1.0 + 0.5 + 0 + -0.5 + -1.0 + -1.5 + 0 + 5 + 10 + 15 + 20 + + (ms) + + + + + + + + + + + + + + + diff --git a/docs/research.md b/docs/research.md index 9b87324..37ce31c 100644 --- a/docs/research.md +++ b/docs/research.md @@ -334,3 +334,15 @@ Pulse-code modulation uses pre-sampled data to generate sounds. This causes a lo ## FPGA Circuit +In order to create an audio signal using the FPGA we can use PWM to emulate an analog signal on an output. This makes it so that in theory any signal that would have been produceable with a sound chip can also be made with the FPGA. + +![Audio signal with PWM](../assets/audioPWM.svg) + +This figure shows an example signal (in blue), created by the FPGA. and the corosponding analog signal (in red). + +It is usefull to generate a few different types of signals like: +- triangle waves +- square waves +- sine waves +- sawtooth waves +- random noise \ No newline at end of file -- cgit v1.2.3