Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mode bits incorrect for trigger modes and powerdown #8

Open
sages opened this issue Aug 9, 2024 · 0 comments
Open

mode bits incorrect for trigger modes and powerdown #8

sages opened this issue Aug 9, 2024 · 0 comments

Comments

@sages
Copy link

sages commented Aug 9, 2024

Mode selection requires multiple calls to configure mode. Individual bit manipulation of mode register precludes selecting specific modes unless multiple calls made to change mode bits.
In trigger mode to actually power down you need to call setShuntMeasDisable as well as setModePowerDown to enter power down mode.
similar on recovery from power down mode to trigger mode requires calling setShuntMeasEnable, setBusMeasEnable, setModeTriggered then a suitable delay to allow all of the triggered conversion to finalise.

Would be infinitely simpler to enumerate all seven mode and just select the required mode with one function call.

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

No branches or pull requests

1 participant