Skip to content

Commit 3c65ea9

Browse files
authored
Update daisy_patch_sm.cpp (#630)
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
1 parent 2e3bd16 commit 3c65ea9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/daisy_patch_sm.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ namespace patch_sm
181181
dac_config.bitdepth = DacHandle::BitDepth::
182182
BITS_12; /**< Sets the output value to 0-4095 */
183183
dac_config.chn = DacHandle::Channel::BOTH;
184-
dac_config.buff_state = DacHandle::BufferState::ENABLED;
184+
dac_config.buff_state = DacHandle::BufferState::DISABLED; // Internal buffer disabled on Patch_SM
185185
dac_config.target_samplerate = 48000;
186186
dac_.Init(dac_config);
187187
}
@@ -535,4 +535,4 @@ namespace patch_sm
535535

536536
} // namespace patch_sm
537537

538-
} // namespace daisy
538+
} // namespace daisy

0 commit comments

Comments
 (0)