atmel avr studio 4 & ponyprog & ab-m128pro-a kit...

19
Atmel AVR Studio 4 & PonyProg & AB-M128Pro-A Kit Example Lee Sang Jin, CCNS, CBNU March 2009

Upload: others

Post on 09-Oct-2020

8 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Atmel AVR Studio 4 & PonyProg & AB-M128Pro-A Kit Exampleael.chungbuk.ac.kr/ael/lessons/subject/id/AVR_Studio_4... · 2009. 8. 4. · Atmel AVR Studio 4 & PonyProg & AB-M128Pro-A Kit

Atmel AVR Studio 4 & PonyProg

& AB-M128Pro-A Kit Example

Lee Sang Jin, CCNS, CBNU

March 2009

Page 2: Atmel AVR Studio 4 & PonyProg & AB-M128Pro-A Kit Exampleael.chungbuk.ac.kr/ael/lessons/subject/id/AVR_Studio_4... · 2009. 8. 4. · Atmel AVR Studio 4 & PonyProg & AB-M128Pro-A Kit

Design Flow Diagram

PC

Outline

AVR Studio 4

Design & Debugging

your program

PonyProg2000

Download program file

ISP cable

Program Interface

ATmega128

Processor Operation

Parallel

Port

Page 3: Atmel AVR Studio 4 & PonyProg & AB-M128Pro-A Kit Exampleael.chungbuk.ac.kr/ael/lessons/subject/id/AVR_Studio_4... · 2009. 8. 4. · Atmel AVR Studio 4 & PonyProg & AB-M128Pro-A Kit

Contents

1. Download AVR Studio 4 & PonyProg

2. AVR Studio 4 사용법

3. AVR Studio 4 Example

4. PonyProg 사용법

5. 개발 키트 소개

Page 4: Atmel AVR Studio 4 & PonyProg & AB-M128Pro-A Kit Exampleael.chungbuk.ac.kr/ael/lessons/subject/id/AVR_Studio_4... · 2009. 8. 4. · Atmel AVR Studio 4 & PonyProg & AB-M128Pro-A Kit

Download AVR Studio 4

http://www.atmel.com

Products > > AVR® 8-Bit RISC > Tools & Software >

Design Software

AVR Studio 4

Download AVR Studio 4.16 (build 628)

Needing a Registration

Page 5: Atmel AVR Studio 4 & PonyProg & AB-M128Pro-A Kit Exampleael.chungbuk.ac.kr/ael/lessons/subject/id/AVR_Studio_4... · 2009. 8. 4. · Atmel AVR Studio 4 & PonyProg & AB-M128Pro-A Kit

Download AVR Studio 4

Example of Registration Form

Page 6: Atmel AVR Studio 4 & PonyProg & AB-M128Pro-A Kit Exampleael.chungbuk.ac.kr/ael/lessons/subject/id/AVR_Studio_4... · 2009. 8. 4. · Atmel AVR Studio 4 & PonyProg & AB-M128Pro-A Kit

Download PonyProg

http://www.lancos.com

PonyProg >> Download

Download v2.05a BETA

Page 7: Atmel AVR Studio 4 & PonyProg & AB-M128Pro-A Kit Exampleael.chungbuk.ac.kr/ael/lessons/subject/id/AVR_Studio_4... · 2009. 8. 4. · Atmel AVR Studio 4 & PonyProg & AB-M128Pro-A Kit

AVR Studio 4 사용법

New Project 선택

Page 8: Atmel AVR Studio 4 & PonyProg & AB-M128Pro-A Kit Exampleael.chungbuk.ac.kr/ael/lessons/subject/id/AVR_Studio_4... · 2009. 8. 4. · Atmel AVR Studio 4 & PonyProg & AB-M128Pro-A Kit

AVR Studio 4 사용법

Atmel AVR Assembler 선택

Project name 입력

※ 한글 절대 사용 금지 (Project name, 경로명, 파일명 등)

Page 9: Atmel AVR Studio 4 & PonyProg & AB-M128Pro-A Kit Exampleael.chungbuk.ac.kr/ael/lessons/subject/id/AVR_Studio_4... · 2009. 8. 4. · Atmel AVR Studio 4 & PonyProg & AB-M128Pro-A Kit

AVR Studio 4 사용법

Debug platform :

AVR Simulator ATmega128 선택

Finish

Page 10: Atmel AVR Studio 4 & PonyProg & AB-M128Pro-A Kit Exampleael.chungbuk.ac.kr/ael/lessons/subject/id/AVR_Studio_4... · 2009. 8. 4. · Atmel AVR Studio 4 & PonyProg & AB-M128Pro-A Kit

AVR Studio 4 사용법

Page 11: Atmel AVR Studio 4 & PonyProg & AB-M128Pro-A Kit Exampleael.chungbuk.ac.kr/ael/lessons/subject/id/AVR_Studio_4... · 2009. 8. 4. · Atmel AVR Studio 4 & PonyProg & AB-M128Pro-A Kit

AVR Studio 4 Example

LED - ON example

Page 12: Atmel AVR Studio 4 & PonyProg & AB-M128Pro-A Kit Exampleael.chungbuk.ac.kr/ael/lessons/subject/id/AVR_Studio_4... · 2009. 8. 4. · Atmel AVR Studio 4 & PonyProg & AB-M128Pro-A Kit

AVR Studio 4 Example

Build a Example

AVR Studio 4

• Build Build

<project_name>.hex

• AVR 에 download 할 수 있는 file

• 현재 Project 폴더에 생성됨

PonyProg 를 이용하여 AVR에 download 한다.

Page 13: Atmel AVR Studio 4 & PonyProg & AB-M128Pro-A Kit Exampleael.chungbuk.ac.kr/ael/lessons/subject/id/AVR_Studio_4... · 2009. 8. 4. · Atmel AVR Studio 4 & PonyProg & AB-M128Pro-A Kit

PonyProg 사용법

Page 14: Atmel AVR Studio 4 & PonyProg & AB-M128Pro-A Kit Exampleael.chungbuk.ac.kr/ael/lessons/subject/id/AVR_Studio_4... · 2009. 8. 4. · Atmel AVR Studio 4 & PonyProg & AB-M128Pro-A Kit

PonyProg 사용법

Device

AVR micro > ATmega128

Setup > Interface Setup

Parallel > Avr ISP I/O > LPT1

Probe 클릭

Setup > Calibration

Page 15: Atmel AVR Studio 4 & PonyProg & AB-M128Pro-A Kit Exampleael.chungbuk.ac.kr/ael/lessons/subject/id/AVR_Studio_4... · 2009. 8. 4. · Atmel AVR Studio 4 & PonyProg & AB-M128Pro-A Kit

PonyProg 사용법

File > Open Device File

AVR Studio 4 로 생성한 <project_name>.hex 선택

Command > Write All

Page 16: Atmel AVR Studio 4 & PonyProg & AB-M128Pro-A Kit Exampleael.chungbuk.ac.kr/ael/lessons/subject/id/AVR_Studio_4... · 2009. 8. 4. · Atmel AVR Studio 4 & PonyProg & AB-M128Pro-A Kit

개발 키트 소개

AB-M128Pro-A

제조사 : New Technology Company

http://www.NewTC.co.kr

Page 17: Atmel AVR Studio 4 & PonyProg & AB-M128Pro-A Kit Exampleael.chungbuk.ac.kr/ael/lessons/subject/id/AVR_Studio_4... · 2009. 8. 4. · Atmel AVR Studio 4 & PonyProg & AB-M128Pro-A Kit

개발 키트 소개

커넥터 설명

Page 18: Atmel AVR Studio 4 & PonyProg & AB-M128Pro-A Kit Exampleael.chungbuk.ac.kr/ael/lessons/subject/id/AVR_Studio_4... · 2009. 8. 4. · Atmel AVR Studio 4 & PonyProg & AB-M128Pro-A Kit

개발 키트 소개

ISP (In System Programming) Cable

PC 의 Parallel port 에 연결

Kit 의 ISP 커넥터에 연결

Page 19: Atmel AVR Studio 4 & PonyProg & AB-M128Pro-A Kit Exampleael.chungbuk.ac.kr/ael/lessons/subject/id/AVR_Studio_4... · 2009. 8. 4. · Atmel AVR Studio 4 & PonyProg & AB-M128Pro-A Kit