Maxim MAXQ7665 Quick Start Manual

Microcontroller evaluation kit

Advertisement

Quick Links

Maxim
>
App Notes
>
AUTOMOTIVE
Keywords:
MAXQ, MAXQ7665
APPLICATION NOTE 4100
MAXQ7665 Evaluation Kit Quick Start
Guide
Abstract: This application note is a Quick Start Guide. It explains how to install and configure the IAR Embedded
Workbench®. In addition, it supplies a brief guide to compile, link, and debug several example projects included in the
MAXQ7665 microcontroller EV kit. A troubleshooting section is provided to determine the status of the EV kit.
Introduction
The
MAXQ7665
Microcontroller Evaluation (EV) Kit contains a serial-to-JTAG interface for programming and debug. The
IAR Embedded Workbench interfaces to the MAXQ7665 through JTAG and is used during debugging. This Quick Start
Guide supplements the EV kit data sheet, and documents the use of the IAR toolset.
IAR Workbench Overview
The IAR Embedded Workbench is an integrated development environment for the
MAXQ® microcontrollers. The IAR toolset includes a text editor, a C compiler, serial download, and a powerful debugger.
IAR Workbench Installation
Install the IAR Embedded Workbench on the PC from the
homepage. Then select Maxim/Dallas Semiconductor from the "Please select chip manufacturer" drop-down box and click
the OK button. A new page appears with hyperlinks. Click on the "IAR Embedded Workbench for Maxim MAXQ" and
another page appears with a highlighted Download box. Select the "30-day evaluation version." A page for product
registration appears and must be completed to begin downloading the IAR Embedded Workbench for Maxim MAXQ. Once
downloaded, the evaluation version is valid for 30 days before you must purchase a permanent license.
The IAR toolset is now installed. The MAXQ7665's personality files included in the installation are:
a) Config Folder:
maxq7665_A64K.ddf
maxq7665_A128K.ddf
lnkmaxq7665_A64K.xcl
lnkmaxq7665_A128K.xcl
lnkmaxq7665_cbl_A64K.xcl
maxq7665.hex
maxq7665.sfr
b) Config/Devices Folder:
maxq7665_A64K.menu
maxq7665_A128K.menu
maxq7665_cbl_A64K.menu
IAR
website. Select the "Chip manufacturer" box on the IAR
MAXQ7665
microcontroller and other
Sep 27, 2007
Page 1 of 12

Advertisement

Table of Contents
loading

Summary of Contents for Maxim MAXQ7665

  • Page 1 Then select Maxim/Dallas Semiconductor from the "Please select chip manufacturer" drop-down box and click the OK button. A new page appears with hyperlinks. Click on the "IAR Embedded Workbench for Maxim MAXQ" and another page appears with a highlighted Download box. Select the "30-day evaluation version." A page for product registration appears and must be completed to begin downloading the IAR Embedded Workbench for Maxim MAXQ.
  • Page 2: Hardware Installation

    Include Folder iomaxq766x.h Copy the MAXQ7665 EV Kit folder from the src directory on the EV kit's Quick Start CD either to C:\Program Files\IAR Systems\Embedded Workbench 4.0 Evaluation Version\MAXQ\src in the default directory, or to the path where the IAR tools were installed.
  • Page 3 The JTAG serial port is the only option that might need to be set for the sample projects. If you select JTAG, the screen in Figure 3 will appear. In this example we used COM1 as the communication port from the PC to the MAXQ7665 EV kit. To use a different port, change the COM designation to the appropriate serial port.
  • Page 4 Figure 3. Communication between the IAR toolset and the MAXQ7665 is set up through the JTAG interface. To create new projects for the MAXQ7665 EV kit or the target application, some important options must be set. The optional linker and debugger configuration for the MAXQ7665 are set up using specific files.
  • Page 5 Figure 4. This screen lets you configure the linker options for a project. IAR Debugger Options To set the debugger options, select the Debugger category. Select the "Use device description file" under "Device description file" (Figure 5) and locate the maxq7665_A64K.ddf file in the config directory. Page 5 of 12...
  • Page 6: Sample Projects

    Sample Projects The EV kit's Quick Start CD contains several sample projects. Example code demonstrates the features of the MAXQ7665 and the EV kit. The sample projects are programs that can be compiled, linked, and run. The user can create a workspace and project, and then copy code sections from the sample projects to build an application.
  • Page 7: Voltage Monitors

    This project contains functions to configure the digital-to-analog converters (DACs) and to generate a continuous sine- wave output from each DAC. LED Demo The LED Demo project sets and clears the MAXQ7665's port bits that drive the LEDs. The result is a simple traffic signal emulation using the LEDs. Temp Conversion The MAXQ7665 has an internal temperature sensor and the EV kit has two external temperature-sensing devices.
  • Page 8: Basic Troubleshooting

    Basic Troubleshooting If you get an error message when trying to communicate with the MAXQ7665 EV kit, it will be necessary to close and reopen the IAR Embedded Workbench. If restarting IAR does not fix the problem, try removing the RS-232 cable from the EV kit and reset the EV kit by cycling the power.
  • Page 9 1 M[01,00] and Port 2 M[02,00] output registers whose POR values are 0xFF, which is also correct. If you do not get the register map shown in Figure 6 and instead get the register map in Figure 7, reset the MAXQ7665 by pressing and releasing SW10.
  • Page 10: Troubleshooting

    No Prompt If you cannot get a prompt back from the MAXQ7665 EV kit, disconnect the RS-232 cable from the EV kit and remove the DC power plug. Then reconnect the RS-232 cable and DC power plug. Repeat the procedure if necessary. Also make sure that the serial-port selection in the Options menu is correct for the port that you are using.
  • Page 11 Erase MAXQ7665 Flash The MTK interface can be used to erase the MAXQ7665 flash. The steps necessary for erasure are detailed below in Figure 9. Figure 9. Screen shows the steps to erase the MAXQ7665's flash memory. >I (Type I. Initialize the debug engine and press Enter.) (Debug engine replies.)
  • Page 12 Preview new application notes in your areas of interest as soon as they are published. Subscribe to EE-Mail - Application Notes for weekly updates. Related Parts QuickView MAXQ7665: AN4100, AN 4100, APP4100, Appnote4100, Appnote 4100 Copyright © by Maxim Integrated Products Additional legal notices: www.maxim-ic.com/legal Page 12 of 12...

Table of Contents