Test program running on MAX32625MBED. Control through USB Serial commands using a terminal emulator such as teraterm or putty.
Dependencies: MaximTinyTester CmdLine MAX5171 MAX541 USBDevice
Diff: main.cpp
- Revision:
- 10:53a0cf1bb69b
- Parent:
- 9:b09c02ca59db
- Child:
- 11:48aefcaa1d29
--- a/main.cpp Fri Jun 21 10:53:18 2019 +0000 +++ b/main.cpp Fri Jun 21 11:27:36 2019 +0000 @@ -2801,6 +2801,7 @@ SelfTest_print_Vref(cmdLine); //~ cmdLine.serial().printf("\r\n"); // + tinyTester.blink_time_msec = 20; // quickly speed through the software verification // tinyTester.FunctionCall_Expect replaces SelfTest_DACCodeOfVoltage_Expect tinyTester.FunctionCall_Expect("MAX5715.DACCodeOfVoltage", fn_MAX5715_DACCodeOfVoltage, 10.0, 0x0FFF); // overrange FS tinyTester.FunctionCall_Expect("MAX5715.DACCodeOfVoltage", fn_MAX5715_DACCodeOfVoltage, 4.0950, 0x0FFF); @@ -3009,6 +3010,7 @@ // // Device Testing: DAC commands, verify using on-board ADC inputs // + tinyTester.blink_time_msec = 75; cmdLine.serial().printf("\r\n MAX5715.Init()"); g_MAX5715_device.Init(); // @@ -3111,6 +3113,7 @@ // // Device Testing: ADC commands, verify with on-board ADC and SPI framing // + tinyTester.blink_time_msec = 75; // MAX11131 SelfTest: MAX11131 SPI connections (Power Supply and GND, SCLK, MOSI, MISO, CS) cmdLine.serial().printf("\r\n"); cmdLine.serial().printf( @@ -3452,6 +3455,7 @@ tinyTester.err_threshold = (g_MAX5171_device.VRef / 16383); // 14-bit DAC FS // // tinyTester.FunctionCall_Expect replaces SelfTest_DACCodeOfVoltage_Expect + tinyTester.blink_time_msec = 20; // quickly speed through the software verification tinyTester.FunctionCall_Expect("MAX5171.DACCodeOfVoltage", fn_MAX5171_DACCodeOfVoltage, 2.499847412109375, 0x3FFF); tinyTester.FunctionCall_Expect("MAX5171.DACCodeOfVoltage", fn_MAX5171_DACCodeOfVoltage, 2.49969482421875, 0x3FFE); tinyTester.FunctionCall_Expect("MAX5171.DACCodeOfVoltage", fn_MAX5171_DACCodeOfVoltage, 2.499542236328125, 0x3FFD); @@ -3485,6 +3489,7 @@ // // Device Testing: DAC commands, verify using on-board ADC inputs // + tinyTester.blink_time_msec = 75; cmdLine.serial().printf("\r\n MAX5171.Init()"); g_MAX5171_device.Init(); //