From 9f584857a77cf80d7726ae920897f8f5ed184c90 Mon Sep 17 00:00:00 2001 From: IC-Alchemy <153705720+IC-Alchemy@users.noreply.github.com> Date: Thu, 16 May 2024 21:58:40 -0600 Subject: [PATCH] Update daisy_patch_sm.cpp Removed redundant internal DAC buffer. Increases DAC range by around 0.4 Volts Allows for the full 0.0v - 3.3v range. "With internal buffer on, the min DAC_OUT is 0.2V and max DAC_OUT is VDDA-0.2V" Page 163 https://www.st.com/resource/en/datasheet/stm32h750ib.pdf --- src/daisy_patch_sm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/daisy_patch_sm.cpp b/src/daisy_patch_sm.cpp index f56b8eca9..cfcbf0438 100644 --- a/src/daisy_patch_sm.cpp +++ b/src/daisy_patch_sm.cpp @@ -181,7 +181,7 @@ namespace patch_sm dac_config.bitdepth = DacHandle::BitDepth:: BITS_12; /**< Sets the output value to 0-4095 */ dac_config.chn = DacHandle::Channel::BOTH; - dac_config.buff_state = DacHandle::BufferState::ENABLED; + dac_config.buff_state = DacHandle::BufferState::DISABLED; // Internal buffer disabled on Patch_SM dac_config.target_samplerate = 48000; dac_.Init(dac_config); } @@ -546,4 +546,4 @@ namespace patch_sm } // namespace patch_sm -} // namespace daisy \ No newline at end of file +} // namespace daisy