APPLICATION NOTE 6555

How to Interface the MAX11301WING PIXI 20-Port, Mixed-Signal I/O with the MAX32630FTHR


Abstract: This quick start guide explains how to interface the MAX11301WING with the MAX32630FTHR. A demo program is used to show a working program using the two devices.

Introduction

The MAX11301WING is a rapid development prototyping board designed for quick integration with other Maxim Feather and Wing evaluation boards. The MAX11301 PIXI™ is a highly configurable mixed signal IC that provides versatility to any application. This quick start guide explains how to configure the MAX11301 PIXI programmable IC to read a potentiometer's wiper position using two digital-to-analog converters (DACs) and one analog-to-digital converter (ADC). The internal DACs are configured for ±5V output range, and connecting a potentiometer between the two DAC outputs with the center wiper connected to an internal ADC allows sensing over the entire voltage range. When paired with a MAX32630FTHR microcontroller platform, the MAX11301WING ADC conversions can be read and converted into a voltage value. If connected to a PC, the unprocessed and converted data can be printed to a serial terminal.

Follow the below steps to set up the MAX11301WING with the MAX32630FTHR+MAX32620PICO platform using the MAX11301WING_Demo program software.

Figure 1 shows the hardware schematic for the MAX11301WING demo program.

Hardware schematic of the MAX11301WING demo. Figure 1. Hardware schematic of the MAX11301WING demo.

Required Equipment
  • Computer with two USB ports
  • MAX32630FTHR microcontroller
  • Any Mbed® programmer, MAX32625PICO recommended
  • MAX11301WING PIXI 20-port I/O
  • 10kΩ potentiometer
  • Three cables that can connect the MAX11301WING to a potentiometer
  • One fine-pitch, 10-pin ribbon cable, included with the MAX32630FTHR
  • Two USB cables to connect the MAX32625PICO and MAX32630FTHR to a computer
Hardware Assembly
  1. Connect the MAX32625PICO to the MAX32630FTHR using the 10-pin ribbon cable used for programming and communication. The 10-pin header on the MAX32630FTHR and MAX32625PICO boards have a mating groove and can only connect in the proper orientation.
  2. Ensure jumpers J1 and J2 are installed on the MAX11301WING to connect the -7.5V rail to AVSSIO and the +7.5V rail to AVDDIO of the PIXI.
  3. Stack the MAX11301WING on top of the MAX32630FTHR. The MAX11301WING form factor has 16 pins on one side of the board and 12 pins on the other. Make sure the 16-pin header (H1) and 12-pin header (H3) align on each board when stacking. Figure 2 shows the MAX11301WING stacking on the MAX32630FTHR.

    Displays stacking the MAX11301WING on top of the MAX32630FTHR. Figure 2. Displays stacking the MAX11301WING on top of the MAX32630FTHR.

  4. Connect the potentiometer between PORT0 and PORT1 of the MAX11301WING, located on header H2, pins 1 and 4. Figure 3 displays the H2 header pinout and highlights the desired ports with a red box.

    Header H2 pinout with the desired ports highlights with red boxes. Figure 3. Header H2 pinout with the desired ports highlights with red boxes.

  5. Connect the potentiometer wiper to PORT9 of the MAX11301WING, located on header H2, pin 28. Reference Figure 3 for a pinout of the H2 header with PORT9 highlighted with a red box.
  6. Connect the MAX32625PICO and MAX32630FTHR to a PC using the USB cables. The green and blue LEDs on the MAX11301WING should turn on, indicating that the board has power.

Software Configuration

  1. Go to os.mbed.com and log in. If you do not have an account, create one.
  2. After signing in, navigate to the MAX32630FTHR Mbed landing page by clicking the following link: os.mbed.com/platforms/MAX32630FTHR. On the right-hand side, click the Add to your Mbed compiler button to add the MAX32630FTHR as a target microcontroller board to your compiler. Figure 4 highlights the Add to your Mbed compiler button with a red box on the MAX32630FTHR landing page.

    Highlights the Add to your Mbed Compiler button in a red box on the MAX32630FTHR Mbed landing page. Figure 4. Highlights the Add to your Mbed Compiler button in a red box on the MAX32630FTHR Mbed landing page.

  3. Install the Windows® OS driver for Mbed microcontrollers by scrolling down the MAX32630FTHR Mbed landing page to reach the PC Configuration section; follow the installation instructions. Figure 5 displays the PC Configuration section.

    Displays PC Configuration section of the MAX32630FTHR Mbed landing page. Figure 5. Displays PC Configuration section of the MAX32630FTHR Mbed landing page.

  4. Import the MAX11301WING_Demo program at Maxim-Integrated/MAX11301WING_Demo into the compiler's program work space by clicking the Import to Compiler button on the right-hand side. Figure 6 highlights the import button on the MAX11301WING_Demo repository page with a red box. This automatically opens the Mbed compiler in a new window. When this window opens, select Import to import the program.

    Highlights the Import into Compiler button with a red box on the MAX11301WING_Demo repository. Figure 6. Highlights the Import into Compiler button with a red box on the MAX11301WING_Demo repository.

  5. In the compiler window, select the MAX11301WING_Demo program in your program work space. In the upper right corner, the target microcontroller is displayed. Confirm the MAX32630FTHR is the target microcontroller. Figure 7 highlights the location of the target microcontroller on the compiler webpage with a red box. If the MAX32630FTHR is not selected, click this area to select a target microcontroller. Once clicked, the selection window appears; select MAX32630FTHR.

    Highlights the target microcontroller selection area of the Mbed compiler window. Figure 7. Highlights the target microcontroller selection area of the Mbed compiler window.

  6. With the MAX11301WING_Demo program selected in the program work space, click the Compile button in the command banner at the top of the screen. Figure 8 highlights the Compile button. This initiates the download of the program's binary file.

    Highlights the Compile command button in the Mbed compiler with a red box. Figure 8. Highlights the Compile command button in the Mbed compiler with a red box.

  7. The MAX32625PICO board appears as a USB drive with the name DAPLINK in your native file navigation program. Figure 9 highlights the DAPLINK drive with a red box. Program the MAX32630FTHR by dragging the binary file onto the DAPLINK drive. Red LEDs flash on the MAX32625PICO until programming is complete. This typically takes a few seconds.

    Drag the binary file onto the DAPLINK drive to program the microcontroller. Figure 9. Drag the binary file onto the DAPLINK drive to program the microcontroller.

  8. Install the serial terminal program Tera Term by visiting this link and following the installation instructions: https://osdn.net/projects/ttssh2/releases/.
  9. Open Tera Term and select the Serial radio button and the Mbed device from the pull-down menu, as shown in Figure 9. The Mbed device could be on a different COM port than what is shown in Figure 10. Click OK.

    Tera Term opening window. Select the Serial radio button and the mbed Serial Port from the drop-down menu. Figure 10. Tera Term opening window. Select the Serial radio button and the mbed Serial Port from the drop-down menu.

  10. Set the baud rate to 115200bps by navigating to Setup/Serial Port. This opens a new configuration window. Select 115200 in the Baud rate pull-down menu, as shown in Figure 11.

    Displays 115200bps baud rate selected in Tera Term. Figure 11. Displays 115200bps baud rate selected in Tera Term.

  11. Press the reset (SW1) button on the MAX32630FTHR, as displayed in Figure 12.

    The reset button is SW1 on the MAX32630FTHR. Figure 12. The reset button is SW1 on the MAX32630FTHR.

  12. Data should begin streaming to the serial terminal, as shown in Figure 13.
  13. Serial output of the MAX11301WING_Demo program. Figure 13. Serial output of the MAX11301WING_Demo program.

This completes the integration and set up of the MAX11301WING with the MAX32630FTHR. Please continue to use this quick start as an example for making your own applications using the MAX11301 PIXI. Maxim has several Wing evaluation boards to enable rapid development of entire systems. Check out Maxim's Feather and Wing solutions for your next project!