forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/psoc6/hw_ext/adc.py: Generalized without pin info.
Signed-off-by: enriquezgarc <enriquezgarcia.external@infineon.com>
- Loading branch information
1 parent
0604f14
commit 0baeda1
Showing
2 changed files
with
18 additions
and
50 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,8 @@ | ||
Invalid ADC Pin | ||
|
||
<ADC Pin=81, ADCBlock_id=0, sampling_time_ns=1000> | ||
|
||
ADCBlock.connect(channel): <ADC Pin=83, ADCBlock_id=0, sampling_time_ns=1000> | ||
ADCBlock.deinit(): ADCBlock(0, bits=12) | ||
ADCBlock.connect(source): <ADC Pin=83, ADCBlock_id=0, sampling_time_ns=1000> | ||
ADCBlock.deinit(): ADCBlock(0, bits=12) | ||
ADCBlock.connect(channel,source) <ADC Pin=83, ADCBlock_id=0, sampling_time_ns=1000> | ||
|
||
<ADC Pin=80, ADCBlock_id=0, sampling_time_ns=1000> | ||
|
||
Expected voltage - 0 (uV) on pin P10_1 is approx same as obtained voltage(uV): True | ||
|
||
Expected voltage - 0 (raw) on pin P10_1 is approx same as obtained voltage(raw): True | ||
|
||
Expected voltage - 1650000 (uV) on pin P10_3 is approx same as obtained voltage(uV): True | ||
|
||
Expected voltage - 16385 (raw) on pin P10_3 is approx same as obtained voltage(raw): True | ||
|
||
Expected voltage - 3300000 (uV) on pin P10_0 is approx same as obtained voltage(uV): True | ||
|
||
Expected voltage - 32767 (raw) on pin P10_0 is approx same as obtained voltage(raw): True | ||
|
||
<ADC Pin=81, ADCBlock_id=0, sampling_time_ns=1000> | ||
<ADC Pin=83, ADCBlock_id=0, sampling_time_ns=1000> | ||
<ADC Pin=80, ADCBlock_id=0, sampling_time_ns=1000> | ||
Expected voltage - 0 (uV) is approx same as obtained voltage(uV): True | ||
Expected voltage - 0 (raw) is approx same as obtained voltage(raw): True | ||
Expected voltage - 1650000 (uV) is approx same as obtained voltage(uV): True | ||
Expected voltage - 16385 (raw) is approx same as obtained voltage(raw): True | ||
Expected voltage - 3300000 (uV) is approx same as obtained voltage(uV): True | ||
Expected voltage - 32767 (raw) is approx same as obtained voltage(raw): True |