Skip to content

Conversation

@bjarki-andreasen
Copy link
Contributor

Add test suite which uses GPIO loopback to produce a "very low" and "very high" voltage at the positive input of the comparator using the output of a GPIO. The negative input is set to a voltage between the high and low output voltages of the GPIO using whichever internal reference is available to the comparator.

@bjarki-andreasen bjarki-andreasen force-pushed the comp-gpio-test-suite branch 2 times, most recently from 77d087c to 90231fd Compare October 17, 2024 08:29
bjarki-andreasen added a commit to bjarki-andreasen/sdk-zephyr that referenced this pull request Oct 17, 2024
Add test suite which uses GPIO loopback to produce a "very low" and
"very high" voltage at the positive input of the comparator using the
output of a GPIO. The negative input is set to a voltage between the
high and low output voltages of the GPIO using whichever internal
reference is available to the comparator.

Upstream PR: zephyrproject-rtos/zephyr#79724

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
fabiobaltieri
fabiobaltieri previously approved these changes Oct 17, 2024
Add test suite which uses GPIO loopback to produce a "very low" and
"very high" voltage at the positive input of the comparator using the
output of a GPIO. The negative input is set to a voltage between the
high and low output voltages of the GPIO using whichever internal
reference is available to the comparator.

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
@bjarki-andreasen
Copy link
Contributor Author

forgot to remove the last PDK file :)

bjarki-andreasen added a commit to bjarki-andreasen/sdk-zephyr that referenced this pull request Oct 18, 2024
Add test suite which uses GPIO loopback to produce a "very low" and
"very high" voltage at the positive input of the comparator using the
output of a GPIO. The negative input is set to a voltage between the
high and low output voltages of the GPIO using whichever internal
reference is available to the comparator.

Upstream PR: zephyrproject-rtos/zephyr#79724

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
bjarki-andreasen added a commit to bjarki-andreasen/sdk-zephyr that referenced this pull request Oct 21, 2024
Add test suite which uses GPIO loopback to produce a "very low" and
"very high" voltage at the positive input of the comparator using the
output of a GPIO. The negative input is set to a voltage between the
high and low output voltages of the GPIO using whichever internal
reference is available to the comparator.

Upstream PR: zephyrproject-rtos/zephyr#79724

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
bjarki-andreasen added a commit to bjarki-andreasen/sdk-zephyr that referenced this pull request Oct 21, 2024
Add test suite which uses GPIO loopback to produce a "very low" and
"very high" voltage at the positive input of the comparator using the
output of a GPIO. The negative input is set to a voltage between the
high and low output voltages of the GPIO using whichever internal
reference is available to the comparator.

Upstream PR: zephyrproject-rtos/zephyr#79724

Signed-off-by: Bjarki Arge Andreasen <[email protected]>
@henrikbrixandersen
Copy link
Member

Wouldn't it be better to use a DAC output?

@bjarki-andreasen
Copy link
Contributor Author

Wouldn't it be better to use a DAC output?

It would be cool :) but it would require fixtures with two DACs and loop back to the differential comparator inputs, which is not exactly common :) I went with this simpler GPIO loopback based one to be as portable as possible :)

@MaureenHelm MaureenHelm merged commit 3272db8 into zephyrproject-rtos:main Oct 21, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants