beautypg.com

Analog essentials, Getting started guide, Modifying the project c code – Maxim Integrated Analog Essentials Getting Started Guide for LX9 and Nexys3 User Manual

Page 12

background image

Analog Essentials

Getting Started Guide

12

For LX9 and Nexys-3

The remaining sections of this document are intended to serve only as brief outlines of and
introductions to the steps necessary to modify the hardware and software for this project. Detailed
instructions on these procedures and the design tools are beyond the scope of this document.

Modifying the Project C Code

This section provides detailed information on changing the project source code, recompiling, and redownloading.

1.

Modifying the C code and recompiling

a.

To modify the C code, navigate in the Project Explorer to the maximPMOD.c file.

b.

Double-click on maximPMOD.c. This will open the file in the source code editor. The file maximPMOD.c

contains the main() function for the demonstration application. The main() function initializes several
board peripherals, then prints a menu to the USB UART on the host board. Each menu choice calls an
underlying menu function which allows functions of each peripheral module to be tested.