Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: MAX5719BOB_20bit_DAC MAX5719BOB_FunctionGen MAX5719BOB_Serial_Tester
Diff: MAX5719.cpp
- Revision:
- 3:fd0441f1a4ce
- Parent:
- 2:6ffccf9a34d0
--- a/MAX5719.cpp Tue Jun 08 04:11:28 2021 -0700
+++ b/MAX5719.cpp Sat Jun 12 01:34:21 2021 -0700
@@ -378,6 +378,33 @@
// @test group CODE_LOAD tinyTester.AnalogIn0_Read_Expect_voltageV(2.048000)
// @test group CODE_LOAD tinyTester.AnalogIn1_Read_Report_voltageV(); // remove unwanted loading on AIN0
// //
+// //
+// @test group CODE_LOAD_2V5 // Verify function CODE_LOAD vs platform AIN0 analog input (enabled by default) (no run on button)
+// @test group CODE_LOAD_2V5 tinyTester.err_threshold = 0.150
+// @test group CODE_LOAD_2V5 tinyTester.print("0x09c400 = 2.500V")
+// @test group CODE_LOAD_2V5 CODE_LOAD(0x09c400) // 2.500V
+// @test group CODE_LOAD_2V5 tinyTester.Wait_Output_Settling()
+// @test group CODE_LOAD_2V5 tinyTester.AnalogIn0_Read_Expect_voltageV(2.500000)
+// @test group CODE_LOAD_2V5 tinyTester.AnalogIn1_Read_Report_voltageV(); // remove unwanted loading on AIN0
+// //
+// //
+// @test group CODE_LOAD_3V0 // Verify function CODE_LOAD vs platform AIN0 analog input (enabled by default) (no run on button)
+// @test group CODE_LOAD_3V0 tinyTester.err_threshold = 0.200
+// @test group CODE_LOAD_3V0 tinyTester.print("0x0bb800 = 3.000V")
+// @test group CODE_LOAD_3V0 CODE_LOAD(0x0bb800) // 3.000V
+// @test group CODE_LOAD_3V0 tinyTester.Wait_Output_Settling()
+// @test group CODE_LOAD_3V0 tinyTester.AnalogIn0_Read_Expect_voltageV(3.000000)
+// @test group CODE_LOAD_3V0 tinyTester.AnalogIn1_Read_Report_voltageV(); // remove unwanted loading on AIN0
+// //
+// //
+// @test group CODE_LOAD_4V1 // Verify function CODE_LOAD vs platform AIN0 analog input (enabled by default) (no run on button)
+// @test group CODE_LOAD_4V1 tinyTester.err_threshold = 0.750
+// @test group CODE_LOAD_4V1 tinyTester.print("0x0fffff = 4.095V")
+// @test group CODE_LOAD_4V1 CODE_LOAD(0x0fffff) // 4.095V
+// @test group CODE_LOAD_4V1 tinyTester.Wait_Output_Settling()
+// @test group CODE_LOAD_4V1 tinyTester.AnalogIn0_Read_Expect_voltageV(4.095000)
+// @test group CODE_LOAD_4V1 tinyTester.AnalogIn1_Read_Report_voltageV(); // remove unwanted loading on AIN0
+// //
//
//
void MAX5719::Init(void)
@@ -396,7 +423,7 @@
// @param[in] voltage = physical voltage in Volts
// @return raw 20-bit MAX5719 code (right justified).
//
-// @test group DACCodeOfVoltage // Verify function DACCodeOfVoltage (enabled by default)
+// @test group DACCodeOfVoltage // Verify function DACCodeOfVoltage (enabled by default) (no run on button)
// @test group DACCodeOfVoltage tinyTester.blink_time_msec = 20 // quickly speed through the software verification
// @test group DACCodeOfVoltage tinyTester.print("VRef = 4.096 MAX5719 20-bit LSB = 0.000004V = 3.90625uV")
// @test group DACCodeOfVoltage VRef = 4.096
MAX5719BOB