Test program running on MAX32625MBED. Control through USB Serial commands using a terminal emulator such as teraterm or putty.

Dependencies:   MaximTinyTester CmdLine MAX541 USBDevice

Revision:
58:2fea32db466b
Parent:
57:1c9da8e90737
Child:
59:47538bcf6cda
--- a/MAX11043/MAX11043.cpp	Thu Feb 13 22:52:57 2020 +0000
+++ b/MAX11043/MAX11043.cpp	Fri Feb 14 03:22:31 2020 +0000
@@ -83,6 +83,36 @@
 // OutputPin Description = End of Conversion Output. Active-Low End-of-Conversion Indicator. EOC asserts low to indicate that new data is ready.
 // OutputPin Function = Event
 //
+// SupplyPin Name = AVDD
+// SupplyPin Description = Analog Power-Supply Input. Bypass each AVDD with a nominal 1uF capacitor to AGND.
+// SupplyPin VinMax = 3.60
+// SupplyPin VinMin = 3.00
+// SupplyPin Function = Analog
+//
+// SupplyPin Name = AGND
+// SupplyPin Description = Analog Ground. Connect all AGND inputs together.
+// SupplyPin VinMax = 0
+// SupplyPin VinMin = 0
+// SupplyPin Function = Analog
+//
+// SupplyPin Name = DGND
+// SupplyPin Description = Digital Ground. Connect all DGND inputs together.
+// SupplyPin VinMax = 0
+// SupplyPin VinMin = 0
+// SupplyPin Function = Digital
+//
+// SupplyPin Name = DVDD
+// SupplyPin Description = Digital Power-Supply Input. Bypass each DVDD with a nominal 1uF capacitor to DGND.
+// SupplyPin VinMax = 3.60 (*TODO PENDING VERIFICATION*)
+// SupplyPin VinMin = 3.00 (*TODO PENDING VERIFICATION*)
+// SupplyPin Function = Digital
+//
+// SupplyPin Name = DVREG
+// SupplyPin Description = Regulated Digital Core Supply (from internal +2.5V regulator). Bypass DVREG to DGND with a 10uF capacitor.
+// SupplyPin VinMax = 2.50
+// SupplyPin VinMin = 2.50
+// SupplyPin Function = Digital
+//
 
 // CODE GENERATOR: class constructor definition
 MAX11043::MAX11043(SPI &spi, DigitalOut &cs_pin, // SPI interface
@@ -450,7 +480,7 @@
 
 // TODO1: CODE GENERATOR: extern function GPIOoutputSHDN alias SHDNoutputValue
 // CODE GENERATOR: extern function requirement MAX11043::SHDNoutputValue
-// Assert MAX11043 SHDN pin : High = _____, Low = _____.
+// Assert MAX11043 SHDN pin : High = Shut Down, Low = Normal Operation.
 //
 void MAX11043::SHDNoutputValue(int isLogicHigh)
 {
@@ -465,7 +495,7 @@
 
 // TODO1: CODE GENERATOR: extern function GPIOoutputCONVRUN alias CONVRUNoutputValue
 // CODE GENERATOR: extern function requirement MAX11043::CONVRUNoutputValue
-// Assert MAX11043 CONVRUN pin : High = _____, Low = _____.
+// Assert MAX11043 CONVRUN pin : High = start continuous conversions on all 4 channels, Low = Idle.
 //
 void MAX11043::CONVRUNoutputValue(int isLogicHigh)
 {
@@ -480,7 +510,7 @@
 
 // TODO1: CODE GENERATOR: extern function GPIOoutputDACSTEP alias DACSTEPoutputValue
 // CODE GENERATOR: extern function requirement MAX11043::DACSTEPoutputValue
-// Assert MAX11043 DACSTEP pin : High = _____, Low = _____.
+// Assert MAX11043 DACSTEP pin : High = Active, Low = Idle.
 //
 void MAX11043::DACSTEPoutputValue(int isLogicHigh)
 {
@@ -495,7 +525,7 @@
 
 // TODO1: CODE GENERATOR: extern function GPIOoutputUP_slash_DWNb alias UP_slash_DWNboutputValue
 // CODE GENERATOR: extern function requirement MAX11043::UP_slash_DWNboutputValue
-// Assert MAX11043 UP_slash_DWNb pin : High = _____, Low = _____.
+// Assert MAX11043 UP_slash_DWNb pin : High = Up, Low = Down.
 //
 void MAX11043::UP_slash_DWNboutputValue(int isLogicHigh)
 {
@@ -591,6 +621,24 @@
     // RegWrite(xxxxxxxxxxxxCMD_r000_0000_xxxx_xxdd_PD, PD_00_Normal);
     
     //----------------------------------------
+    // Active-High Shutdown Input. Drive high to shut down the MAX11043.
+    SHDNoutputValue(0); // SHDN Inactive
+    
+    //----------------------------------------
+    // Convert Run. Drive high to start continuous conversions on all 4 channels. The device is idle when
+    // CONVRUN is low.
+    CONVRUNoutputValue(0); // CONVRUN Idle
+    
+    //----------------------------------------
+    // DAC Step Input. Drive high to move the DAC output in the direction of UP/DWN on the next rising
+    // edge of the system clock.
+    DACSTEPoutputValue(0); // DACSTEP Idle
+    
+    //----------------------------------------
+    // DAC Step Direction Select. Drive high to step up, drive low to step down when DACSTEP is toggled.
+    UP_slash_DWNboutputValue(0); // UP/DWN# Down
+    
+    //----------------------------------------
     // success
     return 1;
 }