AVRminiV3.1 Manual. 1. AVRminiV3.1 Overview. 2. AVRminiV3.1 Features and Specifications Standard Features: 2.2. Optional Features:

Similar documents
STK User Guide

AVR 40 Pin Rapid Robot controller board

Hardware Manual. Crumb128. Rapid Prototyping Module with the Atmega128 AVR Microcontroller

STK User Guide

Atmel AVR datasheet. Matrix Multimedia Atmel AVR Board EB Contents

ATmega48/88/168 Development Board

Mega128-DEVelopment Board Progressive Resources LLC 4105 Vincennes Road Indianapolis, IN (317) (317) FAX

ET-BASE AVR ATmega64/128

3.3V regulator. JA H-bridge. Doc: page 1 of 7

Table of Contents TABLE OF CONTENTS...1

AVR Intermediate Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

ET-BASE AVR (ATmega8535)

MegaAVR-DEVelopment Board Progressive Resources LLC 4105 Vincennes Road Indianapolis, IN (317) (317) FAX

ATMega128 Rapid Robot Controller Board [RKI-1148]

ARDUINO MEGA 2560 REV3 Code: A000067

M32 Development Board

Figure 1-1 ISPAVRU1 application

Arduino Uno. Arduino Uno R3 Front. Arduino Uno R2 Front

8051 Intermidiate Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

Table Of Contents TABLE OF CONTENTS...1

Supplement for module D061 incl. ATMega128 Prozessor

STK200 Starter Kit User Guide May 2004

Mega128-Net Mega128-Net Mega128 AVR Boot Loader Mega128-Net

ARDUINO UNO REV3 SMD Code: A The board everybody gets started with, based on the ATmega328 (SMD).

ARDUINO MEGA ADK REV3 Code: A000069

Various power connectors. 3.3V regulator. 64K Flash (Internal) 2K EEPROM (Internal) 4K SRAM (Internal) JA Mem Adr/ Data. Doc: page 1 of 9

Pre-Lab: Part 1 Using The Development Environment. Purpose: Minimum Parts Required: References: Handouts:

UISP, Mote Programming, and Mote Fuse Help Guide version UISP, Mote Programming, and Mote Fuse HELP GUIDE

Volume 1 Hardware Manual

General-Purpose Microcontroller Module 12a Hardware Reference Release 1.4a (October 11, 2017)

PB-MC-AVR28 28 Pin AVR Full Size Development Board

HAND HELD PROGRAMMER QUICK START GUIDE

Revision: 05/05/ E Main Suite D Pullman, WA (509) Voice and Fax. Various power connectors. 3.3V regulator

Getting Started with STK200 Dragon

AVR-P20 development board Users Manual

CONTENTS BIGAVR2 KEY FEATURES 4 CONNECTING THE SYSTEM 5 INTRODUCTION 6

ARDUINO UNO REV3 Code: A000066

AVR Prog-S. Programmer for AVR microcontrollers. User Manual

AVR-P development board Users Manual

Arduino ADK Rev.3 Board A000069

U4DIL. AVR USB Module. Rev. 1.1 Documentation Rev. 19. Reusch Elektronik Reusch Elektronik, Dipl.-Ing. (FH) Rainer Reusch

Programming Microcontroller Assembly and C

Breeze Board. Type B. User Manual.

QUASAR PROJECT KIT # ATMEL AVR PROGRAMMER

Section 1 Introduction

EvB 4.3 v4 User s Guide

State-of-the Art Evaluation Module for 8, 20 & 40-pin Microcontrollers PRODUCT GUIDE. (Version 2.00)

2 in 1. BigAVR User s Manual AVR. MikroElektronika. Software and Hardware solutions for Embedded World

ZL10AVR. Versatile Evaluation Board for AVR Microcontrollers

Shack Clock kit. U3S Rev 2 PCB 1. Introduction

U6DIL. AVR USB Module. Rev. 1.1 Documentation Rev. 18. Reusch Elektronik Reusch Elektronik, Dipl.-Ing. (FH) Rainer Reusch

EXL x240 Graphic LCD Smart Module 3,8 SHORT FORM TECHNICAL SPECIFICATIONS. Via di Corticella, Bologna, Italy

Robosoft Systems in association with JNCE presents. Swarm Robotics

PB-MC-AVR28 28 Pin AVR Full Size Development Board

Doc: page 1 of 8

Arduino Diecimila Pinouts 697B B8D-A50A-61944C26074F

Breeze Board. Type A. User Manual.

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

keyestudio Keyestudio MEGA 2560 R3 Board

SBAT90USB162 Atmel. SBAT90USB162 Development Board User s Manual

STK521. User Guide B AVR 01/12

Sierra Radio Systems. HamStack. Project Board Reference Manual V1.0

8051 Basic Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

This manual provides information for the final user application developer on how to use SPC57S-Discovery microcontroller evaluation board.

Supplement for module D041 incl. ATMega8 Prozessor

Wireless Sensor Networks. FireFly 2.2 Datasheet

U2DIL. AVR USB Module. Rev. 1.1 Documentation Rev. 37. Reusch Elektronik Reusch Elektronik, Dipl.-Ing. (FH) Rainer Reusch

Exclusive 2.5 GHz Frequency Counter

BB-303 Manual Baseboard for TMCM-303

CMS-8GP32. A Motorola MC68HC908GP32 Microcontroller Board. xiom anufacturing

AVR Development Tools. Shenzhen April 2005

HAND HELD PROGRAMMER QUICK START GUIDE

Figure 1. JTAGAVRU1 application The JTAGAVRU1 is supported by AVR Studio. Updated versions of AVR Studio is found on

Sierra Radio Systems. Digital Compass. Reference Manual. Version 1.0

Combined Serial and Parallel Programming System for Atmel AVR Microcontrollers AVR2-ST GETTING STARTED

PART 1 : MR-162. PART 2 : CPU Board. PART 3 : Software Tools. PART 4 : Compile and Download. 1. Introduction 2. Features

Goal: We want to build an autonomous vehicle (robot)

DBAT90USB162 Atmel. DBAT90USB162 Enhanced Development Board User s Manual

The Atmel ATmega328P Microcontroller

Basic Express, BasicX, BX-01, BX-24 and BX-35 are trademarks of NetMedia, Inc.

AVR- M16 development board Users Manual

HAND HELD PROGRAMMER QUICK START GUIDE

Zippy AVR Programmer. Zippy Programmer Features. Lomae Pty Ltd PO BOX 1297 Baulkham Hills, NSW,1755 ACN

Omega MP. Multi-Programming Shield for Atmel Microcontrollers. User Manual

Keywords Digital IC tester, Microcontroller AT89S52

Shack Clock kit PCB Revision: QCU Rev 1 or QCU Rev 3

Freeduino USB 1.0. Arduino Compatible Development Board Starter Guide. 1. Overview

ARDUINO MICRO WITHOUT HEADERS Code: A000093

Adafruit Metro Mini. Created by lady ada. Last updated on :12:28 PM UTC

DIY KIT 123. ATMEL 89xxxx PROGRAMMER

Rhino Robot Control Board [RKI-1550]

MINI DEVELOPMENT BOARD AVR USERS GUIDE ATMEGA32. make your own intelligent embedded world...

MAVRIC-IIB Mega AVR Integrated Controller II Revision B Technical Manual

ATMega128_v2 A plug-on processor board.

AVR-Ready1. Additional Board. Manual. MikroElektronika

AVR Hand Held Programmer

APP-IV ATmega Development Kit 2004 by AWC

The Atmel ATmega168A Microcontroller

Omega-328 SB. Rapid Prototyping tool with Shield Base for Atmel AtmegaXX8 Microcontrollers. User Manual

AVR Peripheral Board. Campus Component Pvt. Ltd.

Transcription:

AVRminiV3. Manual. AVRminiV3. Overview The AVRminiV3. board is a low-cost versatile development board for Atmel AVR processors. The AVRminiV3. supports all AVR processors in 40-pin and 64-pin packages except the Atmega69. This means that the AVRmini board can be used to experiment with and develop hardware and code for more than 5 different AVR processors (about 65% of the total AVR product line). The AVRmini board offers enough built-in debugging hardware and configuration jumpers to make it useful for development, yet it is simple and small enough to use as an application board within many products or devices. The AVRmini is highly compatible with Atmel's own AVR development board, the STK500. I/O port header and ISP header pinouts are the same between the AVRmini and the STK500. The compatibility helps speed the transition from the STK500 to the AVRmini.. AVRminiV3. Features and Specifications.. Standard Features: Socket for analog-pinout 40-pin AVR processors (Atmega63, Atmega6, etc) Socket for digital-pinout 40-pin AVR processors (AT90S855, Atmega6, etc) Solder pads for 64-QFP AVR processors (Atmega8, Atmega64, Atmega03) Switching 5V power supply (5V 0.5A max output, up to 0VDC input, ~90% efficient) AVR ports A,B,C,D,E,F available through 0-pin headers (Port headers match pin-out used by STK500) AVR ports A,B,C,D protected by 00Ω series resistors Bypass/testing headers for port A,B,C,D series resistors Header for HD44780-type character LCDs (with on-board contrast adjust, -8V to 5V) ISP header (connects to STK500 or AVRISP for programming) CPU crystal (standard HC49U crystal socket or surface-mount crystal) Two configurable DB-9 serial port connectors (one DB-9 may be used as a PonyProg-style programming interface) 4 user pushbuttons + 4 user LEDs Reset Pushbutton Power LED and Power Switch Power jack for Wall-brick AC adapter Board Size 3"x4".. Optional Features: Up to 5KByte external SRAM memory and 74HC573 address latch Real-time clock crystal (3.768KHz) Bridge rectifier on power input

o Advantage: allows board to use any AC adaptor brick 7V-30V regardless of connector polarity o Disadvantage: input voltage must be at least 7V instead of 5V Screw-terminal power input (instead of AC adapter style power jack) 3. Board Reference 3.. Connectors PB5 P.MOSI PE0 RXD PD0 RXD PD 4 PB6 P.MISO PE TXD PD TXD PD3 PROG /SERIAL POWER INPUT SERIAL AUX0 AUX AUX RESET AREF AVCC XTAL XTAL PC PC0 PC PC3 PC4 PC5 PC6 PC7 PB0 PB PB PB3 PB4 PB5 PB6 PB7 PORTB PD0 PD PD PD3 PD4 PD5 PD6 PD7 PE0 PE PE PE3 PE4 PE5 PE6 PE7 PF0 PF PF PF3 PF4 PF5 PF6 PF7 A0 A A A3 A4 A5 A6 A7 LED0 LED LED LED3 SW4 SW5 SW6 SW7 VPBLED PA0 PA PA3 PA PA4 PA5 PA6 PA7 VLCD R/W D0 D D3 D6 E VTG RS D D4 D5 D7 VTG 56 MOSI VTG NC RESET SCK MISO PBLED PORTA HD44780 LCD ISP AUX PORTD PORTC PORTE PORTF ADDR[0:7] 3.. Power Supply and Power Input The AVRminiV3. board uses a high-efficiency switching regulator to produce a steady +5V to power the AVR processor and associated circuitry. Unregulated input power may be applied to the board s coaxial power jack located between the serial ports. Input power can be of any polarity, but must be 7-0VDC. Almost any typical DC wall block transformer in the 7-6V range is suitable for powering the AVRmini. The regulator will convert the input voltage to 5VDC with an efficiency of 80-90%. Unlike less-efficient linear regulators (e.g. 7805), the AVRmini power supply will stay

cool under the full range of input voltages and loads. Typical power consumption of the AVRmini including AVR processor is ~30mA, leaving ample current to drive user circuits. The regulated 5V power may be tapped at pins 9 & 0 of any I/O port connector. Regulator Input Voltage Polarity Any (when D0 is installed) Regulator Input Voltage 7-0VDC Regulator Output Voltage 5VDC +/- 0% Regulator Output Current 500mA max Current consumption of AVRmini (all on-board components) 00mA max @ 5V 30mA typ. @5V 3.3. Serial Ports The AVRminiV3. has two standard DB-9 connectors which can function as RS-3 serial ports. Both SERIAL and SERIAL are 3-wire serial ports with TxD, RxD, and signals active (pins, 3, and 5 respectively). After passing through the level-shifter IC U, the logic-level TxD and RxD data signals are available on the SER/ISP jumper block. From there, TxD and RxD may be connected to the AVR processor UART. See Section 4 for more information on how to route these signals. SERIAL is equipped with additional circuitry to allow direct in-system programming (ISP) of the processor using a special serial protocol on this port. Several publicly-available programs can generate this protocol, including PonyProg and uisp. The protocol involves non-standard use of the RS-3 serial control lines and may not work with USB-to-serial adapters*. * For reprogramming the processor using standard serial signaling (compatible with USB-to-serial adapters), a bootloader should be used. Your AVRminiV3. may have come preloaded with a bootloader program. See Section 5 for more information. 3.4. LED and Pushbutton Circuits The figure below shows how the four LEDs and pushbuttons on the AVRmini are connected. Both the LEDs and pushbuttons are active-low. Sending a logic low (0V) output to pins -4 of the PBLED header will cause LED0-3 to light, respectively. Pressing pushbuttons 4-7 will cause a logic low (0V) to be generated on pins 5-8 of the PBLED header, respectively. Note that the power and ground for the LED and pushbutton circuit is separate from the power and ground used by the rest of the AVRmini board. The LEDs and pushbuttons will not work unless power is applied to pins 9 & 0 of the PBLED header. +VPBLED +VPBLED LED0-3 LED RP 0K RP RP3 TO PBLED HEADER PINS -4 TO PBLED HEADER 80 ohm PINS 5-8 80 ohm SW4-7 PUSHBUTTON

4. Configuring the AVRminiV3. There are a number of configurable settings on the AVRminiV3. board. This section describes how these settings are made and shows some examples. 4.. Setting the Serial/ISP and SCK Jumpers ( & SCK) The Serial/ISP and SCK headers allow the user to configure how the AVR processor is connected to the following connectors: ISP (In-system Programming) Connector P the Programming/Serial Port # Connector P the Serial Port # Connector Since different AVR processors use different pins for serial port I/O and programming, the jumpers on the SER/ISP and SCK headers must be set correctly for the type of processor being used, and for the way the user intends to use it. NOTE: Incorrect jumper placement should not cause damage to the AVRmini board or the AVR processor, but may make programming of the processor or use of the serial ports impossible. Example SER/ISP and SCK Jumper Settings 4 4 4 4 40-pin AVR Processors (incl. Atmega63, mega33, mega6, mega3, AT90S855, AT90S8535, etc) ISP Connector enabled for programming via STK500/AVRISP SERIAL connected to AVR processor s UART (serial port) SERIAL connected for programming via PonyProg, UISP, etc. 64-pin AVR processors (incl. Atmega8, mega64, mega03) ISP Connector enabled for programming via STK500/AVRISP SERIAL connected to AVR processor s UART (nd serial port) SERIAL connected for programming via PonyProg, UISP, etc. **AVR processor s UART0 not accessible Note: This configuration requires the use of a -pin jumper cable like those provided with the STK500 kit. 64-pin AVR processors (incl. Atmega8, mega64, mega03) ISP Connector unusable SERIAL connected to AVR processor s UART0 SERIAL connected to AVR processor s UART **Programming port not accessible Note: Because this configuration offers two serial ports at the expense of no programming port, it is recommended that a bootloader program be used on the processor to allow programming through one of the serial ports. 64-pin AVR processors (incl. Atmega8, mega64, mega03) ISP Connector enabled for programming via STK500/AVRISP SERIAL connected for programming via PonyProg, UISP, etc. SERIAL also connected to AVR processor s UART SERIAL unused **AVR processor s UART0 not accessible

5. Programming the AVR processor on the AVRminiV3. This section discusses methods to load your code into the AVR processor on the AVRmini board. Note that in this case, programming refers to the act of loading the code into the processors FLASH memory, and not the writing of the code in the first place (such as in C or assembly). The term programming also can mean changing of certain AVR processor settings such as the Fuse Bits, Lock Bits, or reading and writing the on-chip EEPROM memory. Here we will focus on the loading of code. Once compiled or assembled, programs that are ready to be loaded into the AVR processor memory are usually in the form of a *.hex file. This *.hex file is equivalent to a PC *.exe file; it is a program that is ready to run. There are three distinct ways to load your *.hex file into the processor. 5.. Programming via the 0-pin ISP Port This is the most direct method of programming. To use this method, you will need one of an Atmel STK500 board, an Atmel AVRISP dongle, or a third-party ISP tool. In general, you will need to connect the programming tool/dongle to the AVRmini s 0-pin ISP port. Since this connector is easily reversed, pay special attention to the location of pin on the programming cable and match it to pin on the AVRmini board. Once connected, follow the instructions that came with the programming tool/dongle. For example, if using an STK500 board, you should follow this procedure:. Remove any processor from the STK500 board.. Use a 0-pin ribbon cable to connect the STK500 ISP0PIN port to the AVRmini ISP port. Take care to match pin to pin at both ends. 3. Check that the AVRmini SER/ISP jumpers are set to allow ISP programming. 4. Connect a serial cable from your computer to the STK500 RS3 CTRL port. 5. Connect power to the STK500 and turn it on. The AVRmini will automatically draw power from the STK500. 6. Use Atmel s free AVR Studio software to operate the STK500 board. Use the software as though you were programming a processor located on the STK500 board. 5.. Programming via SERIAL This method is the same as regular ISP described above, except that the special ISP signals are generated by a non-standard use of an RS-3 serial port. The advantage is that no additional hardware, beyond the AVRmini and a serial cable, is required to accomplish programming. However, due to the specialized signaling involved, this method seldom works with USB-to-serial converter dongles; a built-in serial port is required. Follow this procedure:. Connect a serial cable from your computer to SERIAL.. Check that the AVRmini SER/ISP jumpers are set to allow SERIAL programming. 3. Connect power to the AVRmini and turn it on. 4. If using PonyProg software a. Select the serial port to use for programming (Setup menu). b. Do a Probe which should succeed. c. Perform a calibration if you haven t done so before (Setup menu). d. Select the appropriate AVR processor from the drop-down lists. e. Open your *.hex file.

f. Select Write Program (Flash) from the Command menu. 5. If using UISP software a. Consult the option help for USIP to determine the current format for arguments and commands. b. You will want to use the DASA programming protocol via a serial port. 5.3. Programming via SERIAL and a Bootloader This method is possibly the fastest and easiest, but requires a bootloader (a small piece of software) to be installed in your AVR processor. If a bootloader is not already loaded, you will need to use one of the other methods to install it initially. A bootloader is much like the BIOS of a PC, allowing the computer to boot from any available disk. In this case, the bootloader will allow you to supply your program via the serial port. The initial loading of a bootloader is beyond the scope of this document. From here on, it is assumed that your processor is already loaded with the STKLOAD bootloader. If you purchased your AVRmini after June, 004, your board was shipped with the bootloader preprogrammed. The STKLOAD bootloader emulates the serial programming protocol of an STK500 board. Using this bootloader, you can program your processor with any software meant for the STK500 (such as the freely-available easy-to-use Atmel AVR Studio). Follow this procedure for programming:. Connect a serial cable from your computer to the AVRmini SERIAL port.. Connect power to the AVRmini and turn it on. 3. Open the AVR Studio program 4. Press the RESET button on the AVRmini to activate the bootloader 5. Within 3 seconds of pressing reset, click the programmer icon in AVR Studio (small black AVR chip). 6. AVR Studio will attempt to detect the bootloader o If the programming window opens and the Log shows Detect failed, then return to step 4. o If the Log shows Detected STK500 then proceed. 7. Select your processor from the Device drop-down list. 8. Select your hex file in the FLASH window 9. Click Program 0. Watch the Log, and when programming has completed, you may close the programmer window if you wish.. Press RESET again. This time, do not click anything in AVR Studio for 3+ seconds. The bootloader will timeout and your program will begin running.. To load a new hex file, repeat from step 4. If you did not close the programmer window, you can skip steps 5-8.