Skip to content

Update daisy_patch_sm.cpp DacHandle::BufferState::DISABLED;#630

Merged
stephenhensley merged 1 commit intoelectro-smith:masterfrom
IC-Alchemy:patch-1
Apr 6, 2026
Merged

Update daisy_patch_sm.cpp DacHandle::BufferState::DISABLED;#630
stephenhensley merged 1 commit intoelectro-smith:masterfrom
IC-Alchemy:patch-1

Conversation

@IC-Alchemy
Copy link
Copy Markdown
Contributor

Specific to the Patch_SM, only changed one line of code.

DacHandle::BufferState::DISABLED;

Increases DAC output range to 0.0v - VREF
Quiet a few people believe that this cannot be done it seems.

image


Page 163
https://www.st.com/resource/en/datasheet/stm32h750ib.pdf

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
@stephenhensley
Copy link
Copy Markdown
Collaborator

Sorry for the near-two-year delay on getting to this.
This definitely results in something more similar to what a user would expect, and given the PatchSM has an output gain stage for the DAC outs, this makes total sense.

I took a few measurements for posterity:

DAC Output buffer ENABLED buffer DISABLED
min output 0x000 0.045V 0.009V
max output 0xfff 4.943V 4.980V

Thanks for the contribution!

@stephenhensley stephenhensley merged commit 3c65ea9 into electro-smith:master Apr 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants