ATAVRAUTO User Guide

Similar documents
ATAVRAUTO User Guide

Section 1 ATAVRAUTOEK1 Getting Started

AT17 Series FPGA. Configuration Memory. Application Note. In-System Programming Circuits for AT17 Series Configurators with Atmel and Xilinx FPGAs

8051 Microcontrollers. Application Note. Migration from AT89C5131 & AT89C5131A-L to AT89C5131A-M

TSC695. Application Note. Annulled Cycle Management on the TSC695. References

AT17(A) Series FPGA Configuration Memory. Application Note

AT89ISP Programmer Cable Introduction AT89ISP Programmer Cable Parallel Port Settings Application Note AT89ISP Software AT89ISP Cable polarized

FPGA Configuration EEPROM Memory. Application Note. Programming Atmel s EEPROMs: AT17LV020(A) vs. AT17LV002(A) Introduction.

AT89C5131 Starter Kit... Software User Guide

MARC4. Application Note. Hints and Tips for Hard- and Software Developments with MARC4 Microcontrollers

AT17F Series. Application Note. Programming Circuits for AT17F Series Configurators with Xilinx FPGAs. 1. Introduction

AT89STK-09 Starter Kit for AT83C26... User Guide

System Designer. Programmable SLI AT94K/AT94S Series. Features. Description

Rad Hard FPGA. AT40KEL-DK Design Kit Content. Description. Kit Content. Reference Material. Support

8-bit Microcontroller. Application Note. AVR030: Getting Started with C for AVR

MP3 Player Reference Design Based on AT89C51SND1 Microcontroller... User Guide

CAN Microcontrollers. Application Note. Migrating from T89C51CC01 to AT89C51CC03. Feature Comparison

System Designer. Programmable SLI AT94K/AT94S Series. Features. Description

8-bit Microcontroller. Application Note. AVR031: Getting Started with ImageCraft C for AVR

AT91 ARM Thumb Microcontrollers. Application Note. AT91 Host Flash Loader. 1. Package Contents. 2. Definition of Terms. 3.

FPGA Configurator Programming Kit (Enhanced) ATDH2200E. Features. Description

8-bit RISC Microcontroller. Application Note. AVR 305: Half Duplex Compact Software UART

AVR32 UC3 Software Framework... User Manual

Migration From AT89C51SND1C to AT83C51SDN1C. Application Note. MP3 Microcontrollers

Application Note. Microcontrollers. Using Keil FlashMon Emulator with AT89C51CC01/03 AT89C51CC01/ Summary. 2. Background overview

8-bit Microcontroller. Application Note. AVR320: Software SPI Master

Interfacing the internal serial EEPROM

CAN, 80C51, AVR, Microcontroller. Application Note

Two-wire Serial EEPROM Smart Card Modules 128K (16,384 x 8) 256 (32,768 x 8) AT24C128SC AT24C256SC. Features. Description VCC NC

AT91 ARM Thumb Microcontrollers. Application Note. AT91M55800A Clock Switching Considerations using Advanced Power Management Controller.

Application Note Microcontrollers. C Flash Drivers for T89C51RC/RB/IC2 and AT89C51RC/RB/IC2 for Keil Compilers

Trusted Platform Module AT97SC3203S. SMBus Two-Wire Interface. Summary

hex file. The example described in this application note is written for the AT94K using the FPSLIC Starter Kit. Creating a New Project

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

Two-wire Serial EEPROM Smart Card Modules 1K (128 x 8) 2K (256 x 8) 4K (512 x 8) 8K (1024 x 8) 16K (2048 x 8)

Programmable SLI AT40K AT40KAL AT94K. Application Note. Implementing a Single-coefficient Multiplier

AT94K Series Field Programmable System Level Integrated Circuit. Application Note. FPSLIC Baud Rate Generator

2-Wire Serial EEPROM AT24C01. Features. Description. Pin Configurations. 1K (128 x 8)

AVR501: Replacing ATtiny15 with ATtiny25. 8-bit Microcontrollers. Application Note PRELIMINARY. Features. 1 Introduction

AT89STK-10 Starter Kit... Hardware User Guide

3-Wire Serial EEPROM AT93C46C

2-wire Serial EEPROM Smart Card Modules AT24C32SC AT24C64SC

8-bit Microcontroller. Application Note. AVR033: Getting Started with the CodeVisionAVR C Compiler

8-bit RISC Microcontroller. Application Note. AVR151: Setup And Use of The SPI

256 (32K x 8) High-speed Parallel EEPROM AT28HC256N. Features. Description. Pin Configurations

2-wire Serial EEPROM AT24C21. 2-Wire, 1K Serial EEPROM. Features. Description. Not Recommended for New Designs. Pin Configurations.

STK521. User Guide B AVR 01/12

DatasheetDirect.com. Visit to get your free datasheets. This datasheet has been downloaded by

32-bit Secure. AT91SC CT-USB Summary. Microcontrollers. Features

T89C5115 UART Bootloader

AT89C51CC03 UART Bootloader

80C51 MCUs T89C51AC2. Errata Sheet

T89C51AC2 UART Bootloader

SAM Boot Assistant (SAM-BA)... User Guide

AT89C51SND1 UART Bootloader

AVR based 125kHz RFID Evaluation Kit (Re)Programming Guide ATA2270-EK1. Overview. Fuse Settings: ISP Programming

CryptoRF EEPROM Memory 8 Kbits

64K (8K x 8) Parallel EEPROM with Page Write and Software Data Protection AT28C64B. Features. Description. Pin Configurations

256K (32K x 8) 5-volt Only Flash Memory AT29C256

256K (32K x 8) 5-volt Only Flash Memory AT29C256

Two-Wire Serial EEPROM AT24C164 (1)

1-megabit (64K x 16) 3-volt Only Flash Memory AT49BV1024A AT49LV1024A

8-bit Microcontroller. Application Note. AVR033: Getting Started with the CodeVisionAVR C Compiler

GemCore Serial Lite PRO AT83C21GC. Summary

ARM7TDMI - based Microcontroller AT91RM3400. Errata Sheet

64K (8K x 8) High Speed Parallel EEPROM with Page Write and Software Data Protection AT28HC64BF

Bluetooth General Information White Paper

AT91SAM-ICE... User Guide

AT17LV(A) Series FPGA Configuration Memory. Application Note. Programming Specification for AT17LV(A) Series FPGA Configuration Memories

2-wire Serial EEPROM AT24C1024. Features. Description. Pin Configurations. 1M (131,072 x 8)

2-megabit (256K x 8) 5-volt Only Flash Memory AT29C020

AT85DVK-07 Demonstration Firmware... User s Manual

DIP Top View VCC A12 A14 A13 A6 A5 A4 A3 A2 A1 A0 A8 A9 A11 A10 I/O7 I/O6 I/O0 I/O1 I/O2 I/O5 I/O4 I/O3 GND. TSOP Top View Type 1 A11 A9 A8 A13 A14

Preparations. Creating a New Project

4-megabit (512K x 8) 3-volt Only 256-byte Sector Flash Memory AT29LV040A

1-megabit (128K x 8) 5-volt Only Flash Memory AT29C010A

1-megabit (64K x 16) 3-volt Only Flash Memory AT49LV1024 AT49LV1025

AT17A Series FPGA Configuration EEPROM Memory. Application Note. FPGAs. AT17A Series Conversions from Altera FPGA Serial Configuration Memories

When is Data Susceptible to Corruption

T89C51CC01 CAN Bootloader

AVR32917: picopower Board getting started. 32-bit Microcontrollers. Application Note. Preliminary. Features. 1 Introduction

2-megabit (256K x 8) 3-volt Only Flash Memory AT29LV020

CryptoMemory 64 Kbit AT88SC6416C. Summary. Features. Table 1. Pin Configuration

AVR -based Bridge between Full-speed USB and Fast Serial Asynchronous Interfaces AT76C711

512K (64K x 8) 5-volt Only Flash Memory AT29C512

2-wire Serial EEPROM AT24C01A AT24C02 AT24C04 AT24C08 AT24C16

AT89C5122. Application Note. Preventing Windows XP from Displaying Unknown device Message at Startup

1-megabit (64K x 16) 5-volt Only Flash Memory AT49F1024 AT49F1025

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

2-wire Serial EEPROMs AT24C128 AT24C256

a clock signal and a bi-directional data signal (SCL, SDA)

512K (64K x 8) 5-volt Only Flash Memory AT49F512

1-megabit (128K x 8) 5-volt Only Flash Memory AT49F001A AT49F001AN AT49F001AT AT49F001ANT. Features. Description. Pin Configurations

Battery-Voltage. 4-megabit (512K x 8/ 256K x 16) Single 2.7-volt. Flash Memory AT49BV4096A AT49LV4096A

4-megabit (512K x 8) 5-volt Only 256-byte Sector Flash Memory AT29C040A

8-bit Microcontroller. Application Note. AVR032: Linker Command Files for the IAR ICCA90 Compiler

2-wire Serial EEPROM AT24C01A AT24C02 AT24C04 AT24C08 AT24C16. Features. Description. Pin Configurations. 1K (128 x 8) 2K (256 x 8) 4K (512 x 8)


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

UART. Embedded RISC Microcontroller Core Peripheral

Transcription:

ATAVRAUTO300... User Guide

Table of Contents Section 1 Introduction... 1-1 1.1 Overview...1-1 Section 2 Using the ATAVRAUTO300... 2-3 2.1 Overview...2-3 2.2 Power Supply...2-4 2.3 Oscillator Sources...2-4 2.4 On-board resources...2-4 2.5 In-System Programming...2-6 2.6 Debugging...2-10 Section 3 Technical Specifications... 3-11 Section 4 Technical Support... 4-12 Section 5 Complete Schematics... 5-13 ATAVRAUTO300 User Guide i

Section 1 Introduction Congratulations on your purchase of the ATAVRAUTO300 board. This board includes all necessary elements for designers to quickly develop code related to LIN communication implementing the ATmega88 and for prototyping and testing of new designs. 1.1 Overview This document describes the ATAVRAUTO300 dedicated to the ATmega88 AVR micro controller. This board is designed to allow an easy evaluation of the product using demonstration firmware. To increase its demonstrative capabilities, this stand alone board has numerous onboard resources (LIN, push buttons). Figure 1-1. ATAVRAUTO300 ATAVRAUTO300 User Guide 1-1

Introduction 1.2 ATAVRAUTO300 features The ATAVRAUTO300 provides the following features: ATmega88 QFN32 AVR Studio software interface (1), Power supply Regulated 5V From LIN connector (LIN network power supply) JTAG connector: for on-chip In Situ Programming (ISP) for on-chip debugging using JTAG ICE Serial interface: 1 LIN interface 1.3 and 2.0 compliant (Software library available on the Atmel website for LIN 1.3). On-board resources: 1 LIN transceiver with internal regulator Joystick (4 + 1 ways) System clock: Internal RC oscillator Dimension: 45 mm x 45 mm Notes: 1. The ATmega88 is supported by AVR Studio, version 4.12 or higher. For upto-date information on this and other AVR tool products, please consult our web site. The newest version of AVR Studio, AVR tools and this user guide can be found in the AVR section of the Atmel web site, http://www.atmel.com. 1-2 ATAVRAUTO300 User Guide

Section 2 Using the ATAVRAUTO300 2.1 Overview Figure 2-1. Board Overview ATmega88 LIN Transceiver Regulator LIN Connector ISP Connector Joystick Figure 2-2. Block Diagram 12 Vdc from LIN Power supply Joystick Net- LIN work Lin Transceiver ATmega88 ISP ISP & Debugger (AVR Studio) JTAG ISP (AVR Studio) ATAVRAUTO300 User Guide 2-3

Using the ATAVRAUTO300 2.2 Power Supply The on-board power supply circuitry is supplied through the LIN connector. 2.2.1 LIN powered The LIN connector power line is used to provide VBAT to the ATAVRAUTO300 LIN transceiver. A LIN network has to be connected to have your LIN interface working (Input supply from 8 up to 18V DC, see Figure 2-3 on page 5). 2.3 Oscillator Sources The ATAVRAUTO300 allows only one oscillator source: Internal RC oscillator 2.3.1 Internal RC oscillator Note: The Divide by 8 Fuse is configured by default. The first step in the demonstration application is to clear the prescaler to have the internal RC oscillator running at 8MHz: CLKPR = (1<<CLKPCE); //! Clear Prescaler CLKPR = 0; A LIN Slave node with a run-time oscillator calibration can be used with the internal RC oscillator. At ambient temperature and normal Vcc, the internal oscillator is precise enough to be compliant with LIN 1.3 and 2.0 specifications. For wider temperature and/or power ranges, a run-time calibration of the internal RC oscillator can be used as explained in the application note AVR140 ATmega48/88/168 family run-time calibration of the Internal RC oscillator available on the ATMEL website 2.4 On-board resources 2.4.1 LIN & Power supply The LIN screwed connector allows the user to select his own connector. Note: The LIN power supply input is reverse voltage protected. LIN transceiver control is realized by the microcontroller. Network management depends on the micro controller s ports configuration. 2-4 ATAVRAUTO300 User Guide

Using the ATAVRAUTO300 Table 2-1. LIN resources Function Port State Description LIN_NSLP PD2 Low LIN transceiver in Sleep mode High LIN transceiver in normal mode NRES_LIN PC6 Low Perform MCU reset when NISP Jumper is inserted High No Action Figure 2-3. LIN transceiver and power supply +VBat LIN GND Note: Note: The LIN transceiver under voltage protection can be disable by removing the jumper NISP. The NISP jumper has to be removed when programming. 2.4.2 Joystick The 4+1 ways joystick offers an easy user interface implementation for DC, BLCD, stepper motor and LED applications in the ATAVRAUTOEK1 Evaluation Kit. Pushing the push-button causes the corresponding pin if the micro controller is to be pulled low, while releasing (not pressed) causes a high state on the pin of the microcontroller. Figure 2-4. Joystick schematic ATAVRAUTO300 User Guide 2-5

Using the ATAVRAUTO300 2.4.3 LED The ATAVRAUTO300 includes one green LED implemented on one I/O pin. It is connected to the PortD Pin3 of the ATmega48/88/168. To turn On the LED, the corresponding port pin must drive a low level. To turn Off the LED, the corresponding port pin must drive a high level. Figure 2-5. LED schematic 2.4.4 BOOT An additional jumper (BOOT) has been added. This jumper is available for custom use. For example: the BOOT jumper can be used to switch from the application to the bootloader by firmware (Not implemented in the example) by reading pin 5 of PortD. Figure 2-6. BOOT Jumper 2.5 In-System Programming The ATmega88 can be programmed using specific SPI serial links. This sub section will explain how to connect the programmer. The Flash, EEPROM memory (and all Fuse and Lock Bit options ISP-programmable) can be programmed individually or with the sequential automatic programming option. * Note: Note: If debugwire fuse is enabled, AVR ISP can t be used. If debugwire fuse is disable, JTAGICE mkii have to be used in ISP mode to enable debugwire fuse. When programming, the NISP jumper has to be removed. 2-6 ATAVRAUTO300 User Guide

Using the ATAVRAUTO300 2.5.1 Using the ATAVRAUTO900 adaptor The AVR ISP programmer is a compact and easy-to-use In-System Programming tool for developing applications with ATmega88. Due to the small size, it is also an excellent tool for field upgrades of existing applications. It is powered by the ATAVRAUTO300 and an additional power supply is thus not required. The AVR ISP programming interface is integrated in AVR Studio. An additional adaptor has to be used to program the board using ISP or JTAG mode. The 10 pins connector is used for the JTAGICE mkii device and the 6 pins connector is used for the AVRISP device. To plug the ATAVRAUTO900 connector to the board, the arrow (on the adaptor) has to be in front of the point (on the board). Figure 2-7. ATAVRAUTO900 Connection. JTAGICE ISP The arrow has to be in front of the point Table 2-2. ICE Connector PIN Function 1 TCK 2 GND 3 TDO 4 VCC 5 TMS 6 NRES 7 VCC 8 NC 9 TDI 10 GND ATAVRAUTO300 User Guide 2-7

Using the ATAVRAUTO300 Table 2-3. ISP Connector PIN Function 1 MISO 2 VCC 3 SCK 4 MOSI 5 NRES 6 GND 2.5.2 Programming with AVR ISP Programmer The AVR ISP programmer is a compact and easy-to-use In-System Programming tool for developing applications with ATmega88. Due to its small size, it is also an excellent tool for field upgrades of existing applications. It is powered by the ATAVRAUTO300 and an additional power supply is thus not required. The AVR ISP programming interface is integrated in AVR Studio. To program the device using AVR ISP programmer, connect the AVR ISP to the adaptor (ATAVRAUTO900)and connect the adaptor to the connector of the ATAVRAUTO300. Figure 2-8. Programming with AVR ISP programmer using ATAVRAUTO900 AVR ISP Note: See AVR Studio on-line documentation for more information. 2.5.3 Programming with AVR JTAGICEmkII The ATmega48/88/168 can be programmed using specific JTAG link: 3-wire debug- WIRE interface. To use the AVR JTAGICEmkII with an ATAVRAUTO300 the ATAVRAUTO900 adaptor has to be used. Then the JTAG probe can be connected to the ATAVRAUTO300 as shown in the following Figure 2-9. To use the JTAGICEmkII in ISP mode the 3 jumpers SCK, MISO and MOSI of the adaptor (ATAVRAUTO900) should be connected. 2-8 ATAVRAUTO300 User Guide

Using the ATAVRAUTO300 Figure 2-9. JTAGICE mkii probe connecting through debugwire interface JTAGICE mkii Note: When the debugwire Enable (DWEN) Fuse is programmed and Lock bits are unprogrammed, the debugwire system within the target device is activated. RESET pin is configured as communication gateway between ATmega48/88/168 and JTAG. JTAGICE mkii must have control over it. Note: See AVR Studio on-line Help for information. ATAVRAUTO300 User Guide 2-9

Using the ATAVRAUTO300 2.6 Debugging 2.6.1 Debugging with AVR JTAGICEmkII The ATAVRAUTO300 can be used for debugging with JTAG ICE MK II. Connect the JTAG ICE mkii as shown in Figure 2-9 for debugging, please refer to AVR Studio Help information. 2-10 ATAVRAUTO300 User Guide

Section 3 Technical Specifications System Unit Physical Dimensions...L=45 x W=45 x H=8 mm Weight...14 g Operating Conditions Internal Voltage Supply...... 5.0V External Voltage Supply...7V -18V ATAVRAUTO300 User Guide 3-11

Section 4 Technical Support For Technical support, please contact avr@atmel.com. When requesting technical support, please include the following information: Which target AVR device is used (complete part number) Target voltage and speed Clock source and fuse setting of the AVR Programming method (ISP, JTAG or specific Boot-Loader) Hardware revisions of the AVR tools, found on the PCB Version number of AVR Studio. This can be found in the AVR Studio help menu. PC operating system and version/build PC processor type and speed A detailed description of the problem ATAVRAUTO300 User Guide 4-12

Section 5 Complete Schematics On the next pages, the following documents of ATAVRAUTO300 are shown: Complete schematics, Bill of materials, Assembly drawing. ATAVRAUTO300 User Guide 5-13

Complete Schematics Figure 5-1. ATAVRAUTO300 schematics ATAVRAUTO300 User Guide 5-14

Complete Schematics Figure 5-2. ATAVRAUTO300 bill of materials ATAVRAUTO300 User Guide 5-15

Complete Schematics Figure 5-3. ATAVRAUTO300 assembly drawing C2 C1 LIN U2 C4 C5 U1 D1 ICE&ISP C3 ATAVRAUTO300 V1.0 PM-06 R8 R3 DG JS1 R2 NISP R7 R5 R4 R1 R6 NRES BOOT LIN Joystick ATAVRAUTO300 User Guide 5-16

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. 2007 Atmel Corporation. All rights reserved. Atmel, logo and combinations thereof, Everywhere You Are, AVR, AVR Studio and others are registered trademarks or trademarks of Atmel Corporation or its subsidiaries. Windows and others are registered trademarks or trademarks of Microsoft Corporation in the US and/or other countries. Other terms and product names may be trademarks of others. Printed on recycled paper. /xm