MARC4 4-bit Microcontrollers. Emulator Installation Description. How to Install the MARC4 Software Development System.

Similar documents
8-bit RISC Microcontroller. Application Note. AVR182: Zero Cross Detector

8-bit Microcontroller. Application Note. AVR222: 8-point Moving Average Filter

AVR030: Getting Started with IAR Embedded Workbench for Atmel AVR. 8-bit Microcontrollers. Application Note. Features.

AT91 ARM Thumb Microcontrollers. Application Note. Interfacing a PC Card to an AT91RM9200-DK. Introduction. Hardware Interface

AT89C5131A Starter Kit... Software User Guide

AVR305: Half Duplex Compact Software UART. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

How to Calculate the Capacitor of the Reset Input of a C51 Microcontroller 80C51. Application Note. Microcontrollers. Introduction

AVR106: C functions for reading and writing to Flash memory. 8-bit Microcontrollers. Application Note. Features. Introduction

8-bit RISC Microcontroller. Application Note. AVR236: CRC Check of Program Memory

Application Note. C51 Bootloaders. C51 General Information about Bootloader and In System Programming. Overview. Abreviations

Quick Start Guide. CAN Microcontrollers. ATADAPCAN01 - STK501 CAN Extension. Requirements

8-bit Microcontroller. Application Note. AVR415: RC5 IR Remote Control Transmitter. Features. Introduction. Figure 1.

Tag Tuning/RFID. Application Note. Tag Tuning. Introduction. Antenna Equivalent Circuit

8-bit Microcontroller. Application Note. AVR461: Quick Start Guide for the Embedded Internet Toolkit. Introduction. System Requirements

8-bit Microcontroller. Application Note. AVR105: Power Efficient High Endurance Parameter Storage in Flash Memory

AVR317: Using the Master SPI Mode of the USART module. 8-bit Microcontrollers. Application Note. Features. Introduction

8-bit Microcontroller. Application Note. AVR400: Low Cost A/D Converter

AVR245: Code Lock with 4x4 Keypad and I2C LCD. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR319: Using the USI module for SPI communication. 8-bit Microcontrollers. Application Note. Features. Introduction

8-bit Microcontroller. Application Note. AVR314: DTMF Generator

AVR034: Mixing C and Assembly Code with IAR Embedded Workbench for AVR. 8-bit Microcontroller. Application Note. Features.

General Porting Considerations. Memory EEPROM XRAM

AT91 ARM Thumb Microcontrollers. AT91SAM CAN Bootloader. AT91SAM CAN Bootloader User Notes. 1. Description. 2. Key Features

8-bit Microcontroller. Application Note. AVR201: Using the AVR Hardware Multiplier

8-bit Microcontroller. Application. Note. AVR204: BCD Arithmetics. Features. Introduction. 16-bit Binary to 5-digit BCD Conversion bin2bcd16

AVR241: Direct driving of LCD display using general IO. 8-bit Microcontrollers. Application Note. Features. Introduction AVR

AVR134: Real Time Clock (RTC) using the Asynchronous Timer. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR32110: Using the AVR32 Timer/Counter. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

3-output Laser Driver for HD-DVD/ Blu-ray/DVD/ CD-ROM ATR0885. Preliminary. Summary

Application Note. Migrating from RS-232 to USB Bridge Specification USB Microcontrollers. Doc Control. References. Abbreviations

8-bit RISC Microcontroller. Application Note. AVR155: Accessing an I 2 C LCD Display using the AVR 2-wire Serial Interface

AVR1900: Getting started with ATxmega128A1 on STK bit Microcontrollers. Application Note. 1 Introduction

AVR32100: Using the AVR32 USART. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR120: Characterization and Calibration of the ADC on an AVR. 8-bit Microcontrollers. Application Note. Features. Introduction

8-bit. Application Note. Microcontrollers. AVR282: USB Firmware Upgrade for AT90USB

USB 2.0 Full-Speed Host/Function Processor AT43USB370. Summary. Features. Overview

AVR442: PC Fan Control using ATtiny13. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

USB Test Environment ATUSBTEST- SS7400. Summary

AVR033: Getting Started with the CodeVisionAVR C Compiler. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR1922: Xplain Board Controller Firmware. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

32-bit AVR UC3 Microcontrollers. 32-bit AtmelAVR Application Note. AVR32769: How to Compile the standalone AVR32 Software Framework in AVR32 Studio V2

ATF15xx Product Family Conversion. Application Note. ATF15xx Product Family Conversion. Introduction

Two-wire Automotive Serial EEPROM AT24C01A AT24C02 AT24C04 AT24C08 (1) AT24C16 (2)

AT86RF230 (2450 MHz band) Radio Transceiver... User Guide

Application Note. USB Mass Storage Device Implementation. USB Microcontrollers. References. Abbreviations. Supported Controllers

Using CryptoMemory in Full I 2 C Compliant Mode. Using CryptoMemory in Full I 2 C Compliant Mode AT88SC0104CA AT88SC0204CA AT88SC0404CA AT88SC0808CA

AVR32701: AVR32AP7 USB Performance. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

AT91 ARM Thumb Microcontrollers. Application Note. GNU-Based Software Development on AT91SAM Microcontrollers. 1. Introduction. 2.

Table of Contents. Section 1 Introduction Section 2 Getting Started Section 3 Hardware Description

2-wire Serial EEPROM AT24C1024. Advance Information

Application Note. 8-bit Microcontrollers. AVR280: USB Host CDC Demonstration. 1. Introduction

2-Wire Serial EEPROM AT24C32 AT24C64. 2-Wire, 32K Serial E 2 PROM. Features. Description. Pin Configurations. 32K (4096 x 8) 64K (8192 x 8)

AVR1318: Using the XMEGA built-in AES accelerator. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR1309: Using the XMEGA SPI. 8-bit Microcontrollers. Application Note. Features. 1 Introduction SCK MOSI MISO SS

How To Prevent Power Supply Corruption On An 8Bit Microcontroller From Overheating

Application Note. 8-bit Microcontrollers. AVR091: Replacing AT90S2313 by ATtiny2313. Features. Introduction

Two-wire Serial EEPROM AT24C1024 (1)

DIP Top View VCC A16 A15 A12 A7 A6 A5 A4 A3 A2 A1 A0 I/O0 I/O1 I/O2 GND A17 A14 A13 A8 A9 A11 A10 I/O7 I/O6 I/O5 I/O4 I/O3. PLCC Top View VCC A17

8-bit Microcontroller. Application Note. AVR410: RC5 IR Remote Control Receiver

8-bit Microcontroller. Application Note. AVR134: Real-Time Clock (RTC) using the Asynchronous Timer. Features. Theory of Operation.

Application Note. 8-bit Microcontrollers. AVR270: USB Mouse Demonstration

AVR1510: Xplain training - XMEGA USART. 8-bit Microcontrollers. Application Note. Prerequisites. 1 Introduction

AVR115: Data Logging with Atmel File System on ATmega32U4. Microcontrollers. Application Note. 1 Introduction. Atmel

Step Motor Controller. Application Note. AVR360: Step Motor Controller. Theory of Operation. Features. Introduction

AVR1600: Using the XMEGA Quadrature Decoder. 8-bit Microcontrollers. Application Note. Features. 1 Introduction. Sensors

Application Note. 8-bit Microcontrollers. AVR272: USB CDC Demonstration UART to USB Bridge

AVR353: Voltage Reference Calibration and Voltage ADC Usage. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AVR444: Sensorless control of 3-phase brushless DC motors. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

Application Note. 8-bit Microcontrollers. AVR293: USB Composite Device

Application Note. 8-bit Microcontrollers. AVR307: Half Duplex UART Using the USI Module

AVR2006: Design and characterization of the Radio Controller Board's 2.4GHz PCB Antenna. Application Note. Features.

How To Use An Atmel Atmel Avr32848 Demo For Android (32Bit) With A Microcontroller (32B) And An Android Accessory (32D) On A Microcontroller (32Gb) On An Android Phone Or

AVR32138: How to optimize the ADC usage on AT32UC3A0/1, AT32UC3A3 and AT32UC3B0/1 series. 32-bit Microcontrollers. Application Note.

AVR1301: Using the XMEGA DAC. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

AT91SAM ARM-based Flash MCU. Application Note

ATF1500AS Device Family. Application Note. In-System Programming of Atmel ATF1500AS Devices on the HP3070. Introduction.

AVR ONE!... Quick-start Guide. EVK Windows 32104B AVR ONE! 02/10

Atmel AVR4920: ASF - USB Device Stack - Compliance and Performance Figures. Atmel Microcontrollers. Application Note. Features.

Atmel AVR4903: ASF - USB Device HID Mouse Application. Atmel Microcontrollers. Application Note. Features. 1 Introduction

JTAG ICE.... User Guide

8-bit. Application Note. Microcontrollers. AVR273: USB Mass Storage Implementation. Features. 1. Introduction

STK 500, AVRISP, AVRISP

3-output Laser Driver for HD-DVD/ Blu-ray/DVD/ CD-ROM ATR0885. Preliminary. Summary. Features. Applications. 1. Description

APPLICATION NOTE. Atmel LF-RFID Kits Overview. Atmel LF-RFID Kit. LF-RFID Kit Introduction

AVR32788: AVR 32 How to use the SSC in I2S mode. 32-bit Microcontrollers. Application Note. Features. 1 Introduction

Atmel AVR4921: ASF - USB Device Stack Differences between ASF V1 and V2. 8-bit Atmel Microcontrollers. Application Note. Features.

AVR318: Dallas 1-Wire master. 8-bit Microcontrollers. Application Note. Features. Introduction

All-band AM/FM Receiver and Audio Amplifier IC U2510B

2-wire Serial EEPROM AT24C512

CodeWarrior Development Studio for Freescale S12(X) Microcontrollers Quick Start

APPLICATION NOTE. Atmel AT02985: User s Guide for USB-CAN Demo on SAM4E-EK. Atmel AVR 32-bit Microcontroller. Features. Description.

AVR287: USB Host HID and Mass Storage Demonstration. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

Application Note. 8-bit Microcontrollers. AVR435: BLDC/BLAC Motor Control Using a Sinus Modulated PWM Algorithm. 1. Features. 2.

256K (32K x 8) OTP EPROM AT27C256R 256K EPROM. Features. Description. Pin Configurations

AN104 I NTEGRATING KEIL 8051 TOOLS INTO THE SILICON LABS IDE. 1. Introduction. 2. Key Points. 3. Create a Project in the Silicon Labs IDE

_ v1.0. EVB-56x Evaluation & Development Kit for Motorola PowerPC MPC56x Microcontrollers USERS MANUAL. isystem, February /8.

UM0985 User manual. Developing your STM32VLDISCOVERY application using the IAR Embedded Workbench software. Introduction

SOFTWARE INSTALLATION INSTRUCTIONS

AVR2004: LC-Balun for AT86RF230. Application Note. Features. 1 Introduction

Transcription:

How to Install the MARC4 Software Development System Installation winidea Software Installation Atmel s emulator kit includes the emulator hardware, an Atmel CD-ROM with the emulator software from isystem (www.isystem.com) called winidea, a POD (i.e. board), cables, etc. This report describes how the software installation and the MARC4 settings are carried out. First, the installation of the software included in the kit must be done. If on the PC where the software needs to be installed, autorun mode is selected, the SETUP program starts automatically, otherwise, you have to start the program MSETUP.EE. MARC4 4-bit Microcontrollers Emulator Installation Description Installation of the winidea Update Please note that software updates are available from isystem, and that the update needs to be installed when the main software installation has been completed. To install the software Update winidea, start the.ee-file in the directory winidea on the Atmel CD. If the PC s operating system is Windows 95, it could be necessary to run the file W95ws2setup.EE. In the case of the operating systems Windows NT, Windows 2000 or Windows P, the user must have administrator privileges to successfully install the communication driver. Installation of a MARC4-specific Workspace The software development system from isystem is very flexible and can therefore be used for a broad range of microcontrollers. The user has to modify the settings according to the processor used in several menus of the software. To simplify the handling for the developer, the development system works with workspaces, where the windows and hardware settings are saved. A sample project is included on the Atmel CD. Please copy the contents from the directory qforth to a subdirectory called M4- appl were the development system is installed. In this sample project, all necessary settings for software development with the MARC4 are made. Rev.

Starting the Emulator Hardware 1. Connect the isystem emulator ic1000 with the enclosed cable (1:1) to the PC s parallel port (LPT). Note: ECP port types are not supported. Make sure to use a compatible or bi-directional mode port. Also ensure that no other device is attached to this port (like dongles, etc.). 2. The MARC4 POD must be connected to the emulator box with the three ribbon cables. The shortest and lowest cable must be connected to the outer connector on the POD, the longest and upper cable must be connected to the inner connector on the POD. 3. The Target Adapter Board (TAB) must be connected to the POD via the VG 96 connector. Take care that the VG 96 connector on the TAB is on the side of the MARC4 POD. On the other side of the Target Adapter Board, there is a VG 64 connector for the customer application board. 4. After connecting all boards in the way described, switch on the power of the emulator. During power-up, the red LED RUN of the ic1000 emulator and all LEDs on the POD will flash twice. When this is done, the TAB s power supply may be switched on if necessary. Note: This second power supply is only needed if the power consumption of the application board exceeds 130 ma. Software After successful installation of the hard- and software, the software can be started by selecting winidea App Group/winIDEA in the Program menu. 1. Select Tools -> Hardware Plug-IN -> isystem Development Tools. 2. Then, open the example with File/Open Workspace, change the directory to drive:\winidea\m4-appl\example and select the file worksp. 3. When this is done, select Hardware Configuration, and there, the menu item Hardware Type. A new window with the tabs Hardware Type, License and Communication appears. 4. In the tab Hardware Type, select under the headline Hardware the item ic1000 and under Debugging the item In-Circuit Emulation (see Figure 1 on page 3). 2 Emulator Installation

Emulator Installation Figure 1. Selected Emulator Hardware 5. Go to the tab Communication and select that port where the emulator is connected to the PC. 6. Clicking on the button Test will test the connection. A new window appears, which shows the status of the connection. Figure 2. Communication Test If the software was able to establish a connection to the emulator, the message Communication ok... appears. If an error message appears, check first if the right port has been selected. If the port setting is correct and the error message still appears, check the settings for the port in the Bios. The right setting is Standard or Normal. The software does not support the settings EPP and ECP. 3

If these settings are also correct and the error message still appears (Windows NT system), start the batchfile Install.bat in the subdirectory NTComDrv. The best way to do this is to first start a DOS-Box and then run the batchfile. Now, the messages during the batchfile execution can be read. To install this driver, it may be necessary to have administrator rights. 7. The tab License shows the serial number, which is needed for the registration. Fill out the enclosed registration form to get the Init String from isystem. This Init String must be entered in the License tab. Figure 3. Entering the Emulator License Starting a New Project Menu Item Project Files The easiest way to start a new project is to save an existing workspace to a new subdirectory by using the menu item Workspace save as. In this new subdirectory, the new source code will be placed. The new project can now be opened by clicking on Open Workspace. The new project, however, still contains the source code of the previous project. This old source code can be removed with the command Close. After having created a new file with New, the software can be written. Before the compilation can be used, some parameters in the menu Project have to be changed. In the lower part of the window, there is an area called Files in Group. Delete the old file with Remove. Set the path to the new subdirectory, and mark the new source code in the left part of the window and click on Add. Now, the name of the new source code is shown in Files in Group (see Figure 4 on page 5). 4 Emulator Installation

Emulator Installation Figure 4. Selected Project Files Menu Item Settings General Settings 1. In the input mask Parameter, change the name of the source code to the new source code. Do not change the compiler options. Example: filename.scr /ASSEMBLER /CRF /LIST /WARN /LOG /REP 2. The input mask Output file name must contain the name of the source code with the extension.hex. Figure 5. Compiler Settings 3. Set the Root directory to the subdirectory of the project. 4. The field Error Filter must display Atmel-M4. 5. Click on Advanced. 6. Set in the appearing window for Linker $(OUTPUTDIR)filename.rpt the new filename (see Figure 6). 7. The item Use default error file needs to be inactive. 5

Figure 6. Select Compiler Report File File Types Settings The tab File Types should be configured like Figure 7. Figure 7. File Type Settings Customize Settings The tab Customize should be configured like Figure 8. Figure 8. Customize Options 6 Emulator Installation

Emulator Installation Now, the settings for writing and compiling a new project are done. To work with the emulator, the files for the download have to be defined. These settings can be done by selecting the menu items Debug - Files for Download. The window that appears shows the old files from the previous project. These files have to be deleted and the new files must be entered. Figure 9. Define Download Files The files the emulator has to download are filename.ihf and filename.hll. If one of these files is chosen and the button Open is selected, a new window will be displayed, where the file type must be selected. The winidea software recognizes the file type automatically and the type is selected by default (see Figure 10 on page 8). The *.hll file is the type for Atmel-M4, the *.ihf file is the type for Intel Extended Hex. 7

Figure 10. Select Download File Type When the settings described up to now have been successfully completed, the workspace is ready to program and debug a new project. Clicking on make causes the source code to be compiled. The files will then be automatically downloaded to the emulator. 8 Emulator Installation

Emulator Installation Target Chip Selection 1. The selection of the right MARC4 target chip is done with the menu item Hardware. Figure 11. winidea - Overview 2. Select Hardware -> Emulation Options (see Figure 12) Figure 12. winidea - Hardware Menu A new window will be displayed (see Figure 13 on page 10), where the used CPU can be selected. 9

Figure 13. CPU Selection To select the right emulation options, refer to Table 1. Table 1. MARC4 Device Selection Target Device ATAR510, T48C510 ATAR080 ATAR090, ATAR890 ATAR092, ATAR892 ATAM893 ATAM894 ATAR862, T48C862 ATA6020N U9280M Emulator Selection M4xC510 M4xCx92 Special settings for the target chips are available after selecting CPU Setup. 10 Emulator Installation

Emulator Installation Figure 14. Advanced CPU Settings With the first download after power-on of the emulation hardware, the MARC4 core definition is loaded into the CPLD on the emulator POD. When selecting the option Use default, the standard default settings as given on the CD winidea is used. After modifying the MARC4 hardware, it may be necessary to use another definition file. This can be done by selecting Load from external file. The new core file must be placed in the same directory as the file winidea.exe. The MARC4 hardware version is defined by a specific letter following the part name. The right setting for the target chip used is shown in Table 2. Table 2. Emulator CPU Setup Target Chip Use Default Load from External File ATAR080 Version < G ATAR080 Version G ATARx90 Version < K ATARx90 Version K ATARx92 Version < Q ATARx92 Version Q ATAM893 Version < T ATAM893 Version T ATAM894 Version < R ATAM894 Version R ATA6020N Version < P ATA6020N Version P The core definition file, called C092.hex, must be placed in the same directory as the winidea.exe. It can also be downloaded from Atmel s website www.atmel.com. 11

Atmel Corporation 2325 Orchard Parkway San Jose, CA 95131, USA Tel: 1(408) 441-0311 Fax: 1(408) 487-2600 Regional Headquarters Europe Atmel Sarl Route des Arsenaux 41 Case Postale 80 CH-1705 Fribourg Switzerland Tel: (41) 26-426-5555 Fax: (41) 26-426-5500 Asia Room 1219 Chinachem Golden Plaza 77 Mody Road Tsimshatsui East Kowloon Hong Kong Tel: (852) 2721-9778 Fax: (852) 2722-1369 Japan 9F, Tonetsu Shinkawa Bldg. 1-24-8 Shinkawa Chuo-ku, Tokyo 104-0033 Japan Tel: (81) 3-3523-3551 Fax: (81) 3-3523-7581 Atmel Operations Memory 2325 Orchard Parkway San Jose, CA 95131, USA Tel: 1(408) 441-0311 Fax: 1(408) 436-4314 Microcontrollers 2325 Orchard Parkway San Jose, CA 95131, USA Tel: 1(408) 441-0311 Fax: 1(408) 436-4314 La Chantrerie BP 70602 44306 Nantes Cedex 3, France Tel: (33) 2-40-18-18-18 Fax: (33) 2-40-18-19-60 ASIC/ASSP/Smart Cards Zone Industrielle 13106 Rousset Cedex, France Tel: (33) 4-42-53-60-00 Fax: (33) 4-42-53-60-01 1150 East Cheyenne Mtn. Blvd. Colorado Springs, CO 80906, USA Tel: 1(719) 576-3300 Fax: 1(719) 540-1759 Scottish Enterprise Technology Park Maxwell Building East Kilbride G75 0QR, Scotland Tel: (44) 1355-803-000 Fax: (44) 1355-242-743 RF/Automotive Theresienstrasse 2 Postfach 3535 74025 Heilbronn, Germany Tel: (49) 71-31-67-0 Fax: (49) 71-31-67-2340 1150 East Cheyenne Mtn. Blvd. Colorado Springs, CO 80906, USA Tel: 1(719) 576-3300 Fax: 1(719) 540-1759 Biometrics/Imaging/Hi-Rel MPU/ High Speed Converters/RF Datacom Avenue de Rochepleine BP 123 38521 Saint-Egreve Cedex, France Tel: (33) 4-76-58-30-00 Fax: (33) 4-76-58-34-80 Literature Requests www.atmel.com/literature Disclaimer: Atmel Corporation makes no warranty for the use of its products, other than those expressly contained in the Company s standard warranty which is detailed in Atmel s Terms and Conditions located on the Company s web site. The Company assumes no responsibility for any errors which may appear in this document, reserves the right to change devices or specifications detailed herein at any time without notice, and does not make any commitment to update the information contained herein. No licenses to patents or other intellectual property of Atmel are granted by the Company in connection with the sale of Atmel products, expressly or by implication. Atmel s products are not authorized for use as critical components in life support devices or systems. Atmel Corporation 2004. All rights reserved. Atmel and combinations thereof are the registered trademarks of Atmel Corporation or its subsidiaries. Windows and Windows NT are the registered trademarks of Microsoft Corporation. winidea and isystem are the trademarks of isystem AG. Other terms and product names may be the trademarks of others. Printed on recycled paper.