AVR Download and Program Quick Start

Publisher:keiss2018Latest update time:2011-05-06 Keywords:AVR Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1. STK500 Download

Supported chips: Supports the full range of AVR chips. And supports future AVR new chips. In the actual production process, in many cases, the JTAG circuit is not retained because the JTAG circuit occupies the IO port, and not all chips support JTAG download, so it is important to use STK500 to download.

Operation method: Open AVR Studio software and follow the steps below.

STK500 Downloads

The difference between Connect and Auto Connect is that the device name and connection port will be prompted every time. Auto Connect will automatically use the last setting to improve operation efficiency. When using Connect, the following interface will pop up:

avr_studio_connection interface

Port is the hardware connection port. If you use the downloader on this site, the USB device will be simulated to com3 by default. If you are not sure, just select Auto. If you are not connected to STK500, JTAG, mkII and other devices, you can use Disconnected Mode to enter the viewing operation interface.

If you have connected as shown below, you can press Connect to connect: (Note: Connect JTAG when downloading with JTAG, and connect ISP when downloading with ISP. If the ordinary programmer is connected incorrectly, the chip may be burned or the program may be lost. The programmer of this war has a very strong protection function and there will be no such danger.)

Hardware connection diagram

After the connection is successful, enter the following interface:

Programming interface

Advanced Options

Wire capacity

Memory location

Memory lock bits (from top to bottom, one to one) Protection Type
lb mode lb2 lb1
1 1 1 Memory protection feature is not enabled
2 1 0 In parallel and SPI/JTAG serial programming modes further programming of flash and EEPROM is inhibited and the fuse bits are locked. (1)
3 0 0 Further programming and verification of flash and eeprom are prohibited in parallel and spi/jtag serial programming modes, and the lock bits and fuse bits are locked (1)
blb0 mode blbo2 blb01
1 1 1 spm and lpm have no restrictions on access to application areas
2 1 0 Do not allow spm to write to the application area
3 0 0 The spm instruction is not allowed to write to the application area, and the lpm instruction running in the boot loader area is not allowed to read data from the application area. If the interrupt vector is located in the boot loader area, then the interrupt is disabled when executing the application area code.
4 0 1 The lpm instruction executed in the boot loader area is not allowed to read data from the application area. If the interrupt vector is located in the boot loader area, then the interrupt is disabled when executing the application area code.
blb1 mode blb12 blb11
1 1 1 Allow spm/lpm instructions to access the boot loader area
2 1 0 Do not allow spm instructions to write to the boot loader area
3 0 0 The spm instruction is not allowed to write to the boot loader area, and the lpm instruction running in the application area is not allowed to read data from the boot loader area. If the interrupt vector is located in the application area, then the interrupt is disabled when executing the boot loader area code.
4 0 1 The lpm instruction executed in the application area is not allowed to read data from the boot loader area. If the interrupt vector is located in the application area, the interrupt is disabled when executing the boot loader area code.

notes: 1. Program the fuse bit before programming the lock bit. 2. “1” means not programmed, “0” means programmed

STK Downloader Board Options

Automatic batch processing

2: Download using JTAG emulator

The download method is almost the same as using STK500. In the above introduction, instead of selecting STK500 as the device, select JTAG ICE to enter. Supported chips: Only chips with JTAG interface are supported. According to the description of the official document, the list of supported chips is: ATmega128, ATmega64, ATmega32, ATmega16, ATmega162, ATmega165, ATmega169, ATmega323 It can be seen that JTAG download is very limited. In addition, due to the different communication protocols, the speed of JTAG download, especially the instantaneous response speed, does not feel as fast as STK500. (But if a large amount of data is transmitted, the speed feels about the same).

Keywords:AVR Reference address:AVR Download and Program Quick Start

Previous article:AVRstudio Quick Start
Next article:AVR jtag online simulation debugging quick start

Recommended ReadingLatest update time:2024-11-16 20:45

AVR MCU Tutorial - Randomly Light Up LEDs
The flashing LED and running lights we made before all had cyclic lighting effects. This time we will try something different - randomly select an LED and light it up each time. To achieve the random effect, we need to use the relevant facilities in the C language standard library: 1 #define RAND_MAX /*implementat
[Microcontroller]
51. IO port operation of AVR and PIC
The IO port structures of 51 MCU, AVR MCU and PIC MCU are all different, which leads to different IO port operations. The purpose of operating the MCU IO port is to make the MCU pin output logic level and read the logic level of the MCU pin. Let's take a look at the operation methods of 51 MCU, AVR MCU and PIC MCU IO p
[Microcontroller]
[AVR Application] Timer1 measures the width of the positive pulse
#include #include delay.h #define ICP PIND.6 sfrw ICR1=0x26;  flash const unsigned char tabel ={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90}; unsigned char ledbuff ={0x8c,0x8c,0x8c,0x8c,0x8c,0x8c}; unsigned char ov_counter; //counter for timer1 overflow unsigned int rising_edge,falling_edge; //storage
[Microcontroller]
AVR microcontroller (learning) - (IV), ATMEGA16 timer/counter - 05
4. ATMEGA16 Timer/Counter IV-(05) Input capture experiment of T/C1 Or just post pictures: Okay, today I'll finish the fourth chapter~~ There are only so many timers/counters in ATMEGA16~~ It will be useful if you can~~   I actually forgot to post the program: //------------------------------------------------
[Microcontroller]
AVR microcontroller (learning) - (IV), ATMEGA16 timer/counter - 05
AVR microcontroller drives LCD1602
I have been learning how to use AVR microcontrollers these days, and I have also transplanted some function libraries that I used on 51 microcontrollers before. Today I am debugging LCD1602 and would like to share my experience with you. When performing read and write operations, if a higher crystal oscillator frequ
[Microcontroller]
Multi-machine system based on AVR microcontroller
Users always hope that the product will meet their needs, especially in the acquisition and measurement industries. Some users hope that the instruments they buy can add more functions; while users with single needs do not want to buy equipment with many functions that they cannot use. This requires the product to h
[Microcontroller]
Multi-machine system based on AVR microcontroller
Analysis of AVR Embedded Microcontroller Based on Programmable Digital Potentiometer
1 Introduction AVR embedded microcontrollers have rich hardware and software resources. The serial I2C interface can meet the requirements of many applications. Two AVR microcontrollers can communicate with each other by directly connecting them through the I2C bus. AVR microcontrollers can also be directly connected
[Microcontroller]
Analysis of AVR Embedded Microcontroller Based on Programmable Digital Potentiometer
AVR's experience in dog training
The new AVR series (for example, ATMEGA168, etc.) uses an enhanced watchdog timer. Compared with the original watchdog, in addition to the same reset function, it also adds an interrupt function when designing. The interrupt function of the watchdog can wake up the CPU from the Power Down state; in addition, it can use
[Microcontroller]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号