-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
M2kAnalogOut: ensure DAC starts at 0V after a stop
- This update ensures the `raw_enable` attribute is automatically set to `enabled` when the M2kAnalogOut class is instantiated and after a reset. - With raw_enable active, the output reflects the value set in the `raw` attribute. - During buffer operations involving DMA, the firmware temporarily disables `raw_enable` to allow proper DMA output. Once the DMA transaction completes, `raw_enable` is restored to its initial state, ensuring consistent behavior. - The change introduced in this commit sets `raw` to 0 and ensures `raw_enable` is set. This guarantees that, upon restart, the output begins at 0V, avoiding the use of old raw values or residual samples from the last sample hold state. Signed-off-by: Adrian Stanea <[email protected]>
- Loading branch information
1 parent
dc8220e
commit 336b683
Showing
3 changed files
with
90 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters