mbedded reations SP Duo Users Manual

Similar documents
Introducing AVR Dragon

ET-BASE AVR ATmega64/128

STK User Guide

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

AC-PG-USBASP USBASP AVR Programmer

AVRprog. programmer by MikroElektronika

[F/T] [5] [KHz] [AMP] [3] [V] 4 ) To set DC offset to -2.5V press the following keys [OFS] [+/-] [2] [.] [5] [V]

SPI and JTAG In-System Programming (ISP) guidelines for the Atmel ATmega AVR FLASH Microcontroller Family

TURBO PROGRAMMER USB, MMC, SIM DEVELOPMENT KIT

EvB 5.1 v5 User s Guide

User s Manual of Board Microcontroller ET-MEGA2560-ADK ET-MEGA2560-ADK

The Programming Interface

The Atmel-ICE Debugger

Mobius 3 Circuit Board Programming Instructions

Designing VM2 Application Boards

Programming Device Manual Booklet AVR Prog USB v2

USER GUIDE EDBG. Description

JTAG ICE.... User Guide

AVR Prog USB v3 MK II Eco Manual

APPLICATION NOTE. AVR042: AVR Hardware Design Considerations. AVR 8-bit Microcontrollers. Features. Description

In-System Programmer USER MANUAL RN-ISP-UM RN-WIFLYCR-UM

PolyBot Board. User's Guide V1.11 9/20/08

Figure 1. 8-Bit USB Debug Adapter

Arduino ADK Back. For information on using the board with the Android OS, see Google's ADK documentation.

WIZ-Embedded WebServer User s Manual (Ver. 1.0)

The Atmel-ICE Debugger

AVR151: Setup and Use of the SPI. Introduction. Features. Atmel AVR 8-bit Microcontroller APPLICATION NOTE

USBSPYDER08 Discovery Kit for Freescale MC9RS08KA, MC9S08QD and MC9S08QG Microcontrollers User s Manual

User Manual. AS-Interface Programmer

MasterBlaster Serial/USB Communications Cable User Guide

Using the Agilent 3070 Tester for In-System Programming in Altera CPLDs

Arduino Due Back. Warning: Unlike other Arduino boards, the Arduino Due board runs at 3.3V. The maximum. Overview

The following is a summary of the key features of the ARM Injector:

Yun Shield User Manual VERSION: 1.0. Yun Shield User Manual 1 / 22.

ARDUINO SEVERINO SERIAL SINGLE SIDED VERSION 3 S3v3 (REVISION 2) USER MANUAL

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

WICE-SPI Hardware Operation Manual

Atmel AT32UC3A3256 microcontroller 64MBit SDRAM Analog input (to ADC) Temperature sensor RC filter

AVR Butterfly Training. Atmel Norway, AVR Applications Group

APPLICATION NOTE. AT07175: SAM-BA Bootloader for SAM D21. Atmel SAM D21. Introduction. Features

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

2.0 Command and Data Handling Subsystem

Lab Experiment 1: The LPC 2148 Education Board

JTAG-HS2 Programming Cable for Xilinx FPGAs. Overview. Revised January 22, 2015 This manual applies to the HTAG-HS2 rev. A

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

USB - FPGA MODULE (PRELIMINARY)

AVR Prog User Guide. Section 3

BitBlaster Serial Download Cable

ISP Engineering Kit Model 300

Data Sheet. Adaptive Design ltd. Arduino Dual L6470 Stepper Motor Shield V th November L6470 Stepper Motor Shield

MARTECH SPI Tools. MARTECH SPI Tools User Manual v1.0. User Manual

AVR-ISP-MK2 programmer USER S MANUAL Revision I, October 2013 Designed by OLIMEX Ltd, 2012

DSO138 oscilloscope program upgrade method

Introduction. Getting familiar with chipkit Pi

Quick Installation. A Series of Intelligent Bar Code Reader with NeuroFuzzy Decoding. Quick Installation

Microcontroller Based Low Cost Portable PC Mouse and Keyboard Tester

Computer Automation Techniques. Arthur Carroll

How to setup a serial Bluetooth adapter Master Guide

STK 500, AVRISP, AVRISP

PRODUCTIVITY THROUGH INNOVATION 600 CONTROL DIRECT DRIVE TECHNICAL/OPERATION MANUAL

BIT COMMANDER. Serial RS232 / RS485 to Ethernet Converter

PCS0100en Persy Control Services B.V. Netherlands

Bluetooth UART/RS232 Module

SPI Flash Programming and Hardware Interfacing Using ispvm System

SSI-USB. Flexible Embedded Platform. Brief English Version

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

M68EVB908QL4 Development Board for Motorola MC68HC908QL4

FG , 08501K, 08502K, 08503, 08503K, 08504K

The care and feeding of Pythons at the Redmond Zoo. (Using Micro Python and pyboard with Windows)

SP8 Programmers 硕 飞 科 技. User's Guide. TEL: FAX: WEB:

Single 2.5V - 3.6V or 2.7V - 3.6V supply Atmel RapidS serial interface: 66MHz maximum clock frequency. SPI compatible modes 0 and 3

Programming Flash Microcontrollers through the Controller Area Network (CAN) Interface

M CORE 14-PIN ENHANCED BACKGROUND DEBUG INTERFACE (14EBDI) USER S MANUAL

8-Bit Flash Microcontroller for Smart Cards. AT89SCXXXXA Summary. Features. Description. Complete datasheet available under NDA

In-System Programmability

JTAGICE3. Introduction. Programmers and Debuggers USER GUIDE

MX PIC24F Educational Module User Manual

RS-232 Communications Using BobCAD-CAM. RS-232 Introduction

Android Controlled Based Interface

FREQUENTLY ASKED QUESTIONS (FAQs) 123Scan 2 Scanner Configuration Utility 19 April 2011

Chapter 13. PIC Family Microcontroller

USER GUIDE. ZigBit USB Stick User Guide. Introduction

PCAN-MicroMod Universal I/O Module with CAN Interface. User Manual. Document version ( )

FlowKit in-circuit debug system

Introduction the Serial Communications Huang Sections 9.2, 10.2 SCI Block User Guide SPI Block User Guide

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

FREQUENTLY ASKED QUESTIONS (FAQs) 123Scan 2 Scanner Configuration Utility

In-System Programming Design TM. Guidelines for ispjtag Devices. Introduction. Device-specific Connections. isplsi 1000EA Family.

AVR042: AVR Hardware Design Considerations. Introduction. Features. 8-bit AVR Microcontroller APPLICATION NOTE

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

8-bit RISC Microcontroller. Application Note. AVR910: In-System Programming

Atmel Norway XMEGA Introduction

The Quadcopter Controller

AT15007: Differences between ATmega328/P and ATmega328PB. Introduction. Features. Atmel AVR 8-bit Microcontrollers APPLICATION NOTE

CAN bus board. EB018

MaxQ Development Tools Guide

Vicon Flash Upgrade Software

POCKET SCOPE 2. The idea 2. Design criteria 3

SKP16C62P Tutorial 1 Software Development Process using HEW. Renesas Technology America Inc.

Opgui and OpenProg user s guide. v.1.2

Transcription:

mbedded reations SP Duo Users Manual

2 Copyright Embedded Creations - 2004

Table of Contents SP Duo User Manual Introduction...4 Features...5 Getting Started...7 Requirements...7 Supported Programming Software...8 Hardware Description...9 LED Status...9 Cable Pinouts...9 Power...10 Signals...11 Programming...13 SPI Programming...13 JTAG Programming...14 Programming Software...15 Troubleshooting...17 Appendix 1: Fuse Programming...19 3

Introduction The SP Duo is an In-System Programmer for Atmel AVR micro controllers. The SP Duo is unique with its ability to program though both the normal SPI programming interface and the newer JTAG interface supported by the latest AVRs. The SP Duo communicates with the PC using the STK500 programming protocol created by Atmel, and is compatible with programming software that supports Atmel's STK500 board or AVRISP programmer.

Features SP Duo User Manual Two programming interfaces: SPI + JTAG Fast programming with JTAG Fast programming with auto-adapting SPI clock STK500 compatible programmer - compatible with existing PC software and IDEs that support the STK500 protocol Supports all AVR devices using SPI or JTAG programming Supports all In-system-programming functions: programming + readback of Flash, EEPROM, Fuses, Lockbits, and oscillator calibration bytes Programmer is firmware-upgradeable to support future AVR devices RS-232 interface Draws power from target, no external power supply needed 5

Introduction Supported AVR Devices using SPI ATmega8 ATmega8515 ATmega8535 ATmega16 ATmega162 ATmega32 ATmega169 ATmega64 ATmega128 ATmega161 ATmega163 ATmega323 ATmega103 AT90S1200 AT90S2323 AT90S2343 AT90S2313 AT90S4433 AT90S8515 AT90S8535 AT90S2333 AT90S4414 AT90S4434 ATtiny12 ATtiny15 ATtiny26 ATtiny22 ATtiny13 ATtiny2313 Supported AVR Devices using JTAG ATmega16 ATmega162 ATmega32 ATmega169 ATmega64 ATmega128 ATmega323 *Note: all low-voltage counterparts are supported, e.g. ATmega8L, or AT90LS8535, but are omitted from the list for clarity Future AVR devices will be supported when they are released. If this requires a firmware upgrade of the programmer, it will be made available on the SP Duo website. 6

Getting Started SP Duo User Manual Requirements Target Requirements Target voltage 3.0V-5.5V Minimum target clock speed: 250kHz (only for SPI programming) Minimum target clock speed for AT90S1200: 1MHz System Requirements 115,200 baud RS-232 COM Port (USB to RS232 adapters are supported) 7

Getting Started Supported Programming Software AVR Studio 3.x AVR Studio 4.x STK500.exe (installed with AVR Studio) Imagecraft AVR Compiler Codevision AVR Compiler ChipBlasterAVR AVRDUDE http://www.atmel.com http://www.imagecraft.com http://www.hpinfotech.ro/ http://savannah.nongnu.org/projects/avrdude/ http://winavr.sourceforge.net/ 8

Hardware Description SP Duo User Manual LED Status LED Color Solid Green Pulsing green and red Intermittent Blinking Red Solid Red (while running update software) Status Programmer powered and Idle Connected to target, target in programming mode Bootloader fail, use update software to reprogram Currently reprogramming Cable Pinouts Only one connector should be connected to your target board at a time. The SP Duo auto-detects which connector is currently used. SPI JTAG MOSI N/C RESET SCK MISO VCC GND GND GND GND TCK TDO TMS N/C GND VCC RESET N/C GND Top view of programming connectors The square pin is pin 1 (red conductor on the cable) TDI 9

Hardware Description SPI JTAG Signal Pin # Signal Pin # VCC 2 VCC 4 GND 4, 6, 8, 10 GND 2, 10 RESET 5 RESET 6 SCK 7 TCK 1 MISO 9 TDO 3 MOSI 1 TDI 9 TMS 5 Power The SP Duo requires a voltage supply from the target of 3.0V to 5.5V. The maximum current draw from the target is under 50mA at 5.5V. The target board s power must be turned off when connecting or disconnecting the SP Duo. Hot-Swapping the programmer while the target board s power is on may damage the programmer. 10

Signals Common Vcc Gnd Reset SP Duo User Manual Power supply to the programmer and the target micro controller, must be between 3.0-5.5V Ground reference Connect directly to target reset pin (optional when using JTAG). The reset pin on the target must be pulled up to Vcc by a minimum 4.7k ohm resistor. VCC SP DUO >4.7k TARGET RESET RESET SPI SCK MISO MOSI Reset connection clock signal, from programmer data signal, from target data signal, from programmer 11

Hardware Description JTAG TCK clock signal, from programmer TMS control signal, from programmer TDI data signal, from programmer TDO data signal, from target LOAD TARGET SP DUO Series resistors used on shared programming pins The programming pins on the target micro controller can be connected to other parts of the system as general I/O lines, as long as the system does not interfere with the programmer s signals during programming. Series resistors can be used to separate the load from the programming lines. The programmer should be connected to the target micro controller directly without any series resistors. 12

Programming SP Duo User Manual SPI Programming When SPI programming, the target needs to be supplied with a clock source, either connected to the external XTAL pins, or with an internal oscillator. The SP Duo supports target clock speeds of 250kHz and above (1MHz and above for the AT90S1200). If the target clock speed is lower than the minimum, entering program mode will fail. The SCK clock signal used for programming is sampled by the target AVR, and must be at least twice as slow as the target s clock speed for programming to work. The SP Duo is able to detect the fastest SCK speed the target can support to program the target as quickly as possible. Especially when programming devices with large Flash, the speed difference between programming a target with a fast clock and a target with a slower clock can be seen. Targets at 8MHz and above are all clocked at the same SCK speed. To program using the SPI interface, the target s SPIEN fuse needs to be programmed. New AVRs supporting SPI programming come from the factory with this fuse programmed. If this fuse is mistakenly cleared, it will need to be reprogrammed using either Parallel Programming (using the STK500 programmer from Atmel), or JTAG if the device supports 13

Programming it. When programming the target s fuses, take care to ensure the fuse values are correct. (See Appendix 1) JTAG Programming The SP Duo does not support JTAG programming in a chain of devices. The SP Duo must be connected to the target AVR directly, and not to any other JTAG devices. There is no minimum target clock frequency for JTAG programming. Programming will succeed even with the target clock stopped completely. To program using the JTAG Interface, the JTAGEN fuse needs to be programmed. New AVRs supporting JTAG come from the factory with this fuse programmed. If this fuse is mistakenly cleared, it will need to be reprogrammed either using SPI programming, or Parallel Programming (using the STK500 programmer from Atmel). When programming the target s fuses, take care to ensure the fuse values are correct. (See Appendix 1) The reset line only needs to be connected to the target micro controller in certain cases. The target AVR can disable the JTAG pins in firmware by setting the JTD bit in the MCUCSR register. If your target's 14

SP Duo User Manual firmware sets this bit, the SP Duo must be able to reset the target to enable the JTAG pins during programming. When programming the EEPROM through JTAG, bits are only cleared, never set. The chip must be erased to reset the EEPROM bits to all 1's before programming. If the EESAVE fuse is programmed (EEPROM memory is preserved through the chip erase cycle), the EEPROM will not be reset during a chip erase. To reset the EEPROM before programming, clear the EESAVE fuse, erase the chip, and reprogram the EESAVE fuse. Programming Software This section is intended to list any special notes on using programming software with the SP Duo. Please refer to the individual programming software s documentation for detailed instructions on its use. AVR Studio 4.x and 3.x If a firmware version message appears when opening the programming window, ignore and press cancel. Under the Board tab, writing an oscillator value to the programmer fails. This feature is not needed with the SP Duo s auto-adapting SPI clock. 15

Programming The upgrade feature is not supported, upgrade software will be available on the SP Duo website when new firmware is released. The "Serial programming downloading (SPI) Enabled" fuse cannot be changed, even when programming using JTAG. You must use other software to change this bit. STK500.EXE This command-line program is found in the \stk500 directory where AVR Studio was installed. Writing an oscillator value to the programmer fails, this feature is not needed with the SP Duo s auto-adapting SPI clock. Imagecraft AVR Compiler Choose STK-500 from the list of programmers under programming options. Codevision AVR Compiler and ChipBlasterAVR Choose STK-500 from the list of programmers. AVRDUDE Use the stk500 programmer type. 16

Troubleshooting The LED is off: Power not supplied to target SP Duo User Manual Verify VCC pin is supplied with 3.0V-5.5V from target Can t enter programming mode on target: Incorrect pinout SPIEN/JTAGEN fuse cleared Reset pin used as general I/O Not enough power Target has no clock (SPI only) Programming pins are heavily loaded Verify pinout Program fuse using Parallel Programming Clear fuse using Parallel Programming Verify the target can supply enough power to the programmer Verify the target is clocked at 250kHz minimum (1MHz minimum for AT90S1200) Use series resistors to separate load from shared programming pins 17

Troubleshooting Software can t communicate with programmer: COM port is in use Verify the COM port is not being used by software To test communication with the programmer, a terminal program can be used. Open the COM port the SP Duo is attached to at 115,200 baud, 8- N-1. Type Ctrl-V into the terminal window, and the programmer will reply SP Duo vx.x if communication is correct. 18

Appendix 1: Fuse Programming SP Duo User Manual It is easy to get confused when programming fuses, because a programmed fuse is a logical 0, and a cleared fuse is a logical 1. The easiest way to program fuses is using Atmel s AVR Studio software, which has a GUI where individual fuse settings can be selected with check boxes - a checked box represents the fuse is programmed. The options can be visually reviewed before programming. The other programming software represent the fuses with hexadecimal values, and more care must be taken by the user to ensure the correct fuse settings are being programmed. Programming the wrong fuse values can prevent you from programming again. The most important fuses to avoid setting to the wrong value are: Programming enable fuses (SPIEN for SPI, and JTAGEN for JTAG) Clock source if you change your clock from internal oscillator to external oscillator and you do not have one, you will not be able to use SPI Reset Disable if the reset line is set as a general I/O pin, SPI programming will not work 19