This section provides a simple workflow for how to use the Device Configurator.

  1. Open the Device Configurator as applicable to your environment; that is, in stand-alone operation in Keil µVision or as part of a ModusToolbox™ application.

  2. Enable a desired peripheral on the

    Peripherals

    tab by clicking the enable check box. Notice the

    Parameters pane

    becomes populated with fields.



  3. Notice also that a new task may appear in the

    Notice List

    pane.

    See

    Icons

    for descriptions of the various icons displayed in the Device Configurator.

  4. Double-click on a task to jump to the parameter that needs to be addressed.



  5. Select appropriate

    Parameter values

    and the task should be removed from the Notice List.

  6. When all tasks have been completed, select the

    Code Preview pane

    to see a preview of the code that will be generated upon saving.



  7. Use the

    Resources tabs

    to enable and configure other resources as needed in the same manner as peripherals.

  8. Save the *.

    modus

    file to generate source code.

    The Device Configurator generates code into a "GeneratedSource" directory in your Eclipse IDE application, or in the same location you saved the *.

    modus

    file for non-Eclipse IDE applications. That directory contains the necessary source (.c) and header (.h) files that use the relevant driver APIs to configure the hardware. Application code then uses this code to configure the system.

  9. Use the appropriate API in your application code.