Chapter. 2 마이크로컨트롤러...
Transcript of Chapter. 2 마이크로컨트롤러...
![Page 1: Chapter. 2 마이크로컨트롤러 개발환경artoa.hanbat.ac.kr/lecture_data/microprocessor/2014/제2... · 2014-03-14 · 개발환경설치 ¨프로그램다운로딩 ¤실행파일을avr](https://reader033.fdocuments.in/reader033/viewer/2022053007/5f0acd5d7e708231d42d69f6/html5/thumbnails/1.jpg)
마이크로컨트롤러개발환경
Chapter. 2
Jaeheung, Lee
![Page 2: Chapter. 2 마이크로컨트롤러 개발환경artoa.hanbat.ac.kr/lecture_data/microprocessor/2014/제2... · 2014-03-14 · 개발환경설치 ¨프로그램다운로딩 ¤실행파일을avr](https://reader033.fdocuments.in/reader033/viewer/2022053007/5f0acd5d7e708231d42d69f6/html5/thumbnails/2.jpg)
목차
¨ 1. 개발환경 설치
¨ 2. AVR Studio 처음 실행
![Page 3: Chapter. 2 마이크로컨트롤러 개발환경artoa.hanbat.ac.kr/lecture_data/microprocessor/2014/제2... · 2014-03-14 · 개발환경설치 ¨프로그램다운로딩 ¤실행파일을avr](https://reader033.fdocuments.in/reader033/viewer/2022053007/5f0acd5d7e708231d42d69f6/html5/thumbnails/3.jpg)
마이크로컨트롤러의 개발환경
¨ 개발 환경
¤ 마이크로컨트롤러를 사용하는 임베디드 시스템에 필요한 일련의툴들
¤ 개발툴의 종류
n 컴파일러 : CPU에서 동작하기 위한 프로그램을 기계어로 변환
n 디버깅툴 : 프로그램의 오류를 찾아내기 위한 도구
n ISP툴 : 칩의 내장된 프로그램 메모리(Flash Memory)에 프로그램을적재시킬 도구.
n Etc.
![Page 4: Chapter. 2 마이크로컨트롤러 개발환경artoa.hanbat.ac.kr/lecture_data/microprocessor/2014/제2... · 2014-03-14 · 개발환경설치 ¨프로그램다운로딩 ¤실행파일을avr](https://reader033.fdocuments.in/reader033/viewer/2022053007/5f0acd5d7e708231d42d69f6/html5/thumbnails/4.jpg)
AVR 마이크로컨트롤러 개발환경
¨ AVR Studio
¤ ATMEL사에서 제공하는 개발환경 소프트웨어
¤ AVR 설계에 필요한 코드 작성, 컴파일, 다운로드 등 모든 기능을 하나의 소프트웨어에서 제공하는 통합 개발 환경
![Page 5: Chapter. 2 마이크로컨트롤러 개발환경artoa.hanbat.ac.kr/lecture_data/microprocessor/2014/제2... · 2014-03-14 · 개발환경설치 ¨프로그램다운로딩 ¤실행파일을avr](https://reader033.fdocuments.in/reader033/viewer/2022053007/5f0acd5d7e708231d42d69f6/html5/thumbnails/5.jpg)
개발환경 설치
¨ AVR Studio Tool 내려받기
¤ Atmel 사의 홈페이지
(http://www.atmel.com)
![Page 6: Chapter. 2 마이크로컨트롤러 개발환경artoa.hanbat.ac.kr/lecture_data/microprocessor/2014/제2... · 2014-03-14 · 개발환경설치 ¨프로그램다운로딩 ¤실행파일을avr](https://reader033.fdocuments.in/reader033/viewer/2022053007/5f0acd5d7e708231d42d69f6/html5/thumbnails/6.jpg)
개발환경 설치
¨ AVR Studio Tool 내려받기
¤ 한백전자 홈페이지(http://hanback.co.kr)
![Page 7: Chapter. 2 마이크로컨트롤러 개발환경artoa.hanbat.ac.kr/lecture_data/microprocessor/2014/제2... · 2014-03-14 · 개발환경설치 ¨프로그램다운로딩 ¤실행파일을avr](https://reader033.fdocuments.in/reader033/viewer/2022053007/5f0acd5d7e708231d42d69f6/html5/thumbnails/7.jpg)
개발환경 설치
¨ WinAVR 내려받기
¤ AVR 프로세서용 컴파일러
¤ SourceForge 홈페이지
http://sourceforge.net/ projects/winavr
![Page 8: Chapter. 2 마이크로컨트롤러 개발환경artoa.hanbat.ac.kr/lecture_data/microprocessor/2014/제2... · 2014-03-14 · 개발환경설치 ¨프로그램다운로딩 ¤실행파일을avr](https://reader033.fdocuments.in/reader033/viewer/2022053007/5f0acd5d7e708231d42d69f6/html5/thumbnails/8.jpg)
개발환경 설치
¨ WinAVR 내려받기
¤ AVR 프로세서용컴파일러
¤ 한백전자 홈페이지(http://hanback.co.kr)
![Page 9: Chapter. 2 마이크로컨트롤러 개발환경artoa.hanbat.ac.kr/lecture_data/microprocessor/2014/제2... · 2014-03-14 · 개발환경설치 ¨프로그램다운로딩 ¤실행파일을avr](https://reader033.fdocuments.in/reader033/viewer/2022053007/5f0acd5d7e708231d42d69f6/html5/thumbnails/9.jpg)
개발환경 설치
¨ AVR Studio 설치(1)
![Page 10: Chapter. 2 마이크로컨트롤러 개발환경artoa.hanbat.ac.kr/lecture_data/microprocessor/2014/제2... · 2014-03-14 · 개발환경설치 ¨프로그램다운로딩 ¤실행파일을avr](https://reader033.fdocuments.in/reader033/viewer/2022053007/5f0acd5d7e708231d42d69f6/html5/thumbnails/10.jpg)
개발환경 설치
¨ AVR Studio 설치(2)
![Page 11: Chapter. 2 마이크로컨트롤러 개발환경artoa.hanbat.ac.kr/lecture_data/microprocessor/2014/제2... · 2014-03-14 · 개발환경설치 ¨프로그램다운로딩 ¤실행파일을avr](https://reader033.fdocuments.in/reader033/viewer/2022053007/5f0acd5d7e708231d42d69f6/html5/thumbnails/11.jpg)
개발환경 설치
¨ AVR Studio 설치(3)
![Page 12: Chapter. 2 마이크로컨트롤러 개발환경artoa.hanbat.ac.kr/lecture_data/microprocessor/2014/제2... · 2014-03-14 · 개발환경설치 ¨프로그램다운로딩 ¤실행파일을avr](https://reader033.fdocuments.in/reader033/viewer/2022053007/5f0acd5d7e708231d42d69f6/html5/thumbnails/12.jpg)
개발환경 설치
¨ AVR Studio 설치(4)
![Page 13: Chapter. 2 마이크로컨트롤러 개발환경artoa.hanbat.ac.kr/lecture_data/microprocessor/2014/제2... · 2014-03-14 · 개발환경설치 ¨프로그램다운로딩 ¤실행파일을avr](https://reader033.fdocuments.in/reader033/viewer/2022053007/5f0acd5d7e708231d42d69f6/html5/thumbnails/13.jpg)
개발환경 설치
¨ AVR Studio 설치(5)
![Page 14: Chapter. 2 마이크로컨트롤러 개발환경artoa.hanbat.ac.kr/lecture_data/microprocessor/2014/제2... · 2014-03-14 · 개발환경설치 ¨프로그램다운로딩 ¤실행파일을avr](https://reader033.fdocuments.in/reader033/viewer/2022053007/5f0acd5d7e708231d42d69f6/html5/thumbnails/14.jpg)
개발환경 설치
¨ AVR Studio 설치(6)
![Page 15: Chapter. 2 마이크로컨트롤러 개발환경artoa.hanbat.ac.kr/lecture_data/microprocessor/2014/제2... · 2014-03-14 · 개발환경설치 ¨프로그램다운로딩 ¤실행파일을avr](https://reader033.fdocuments.in/reader033/viewer/2022053007/5f0acd5d7e708231d42d69f6/html5/thumbnails/15.jpg)
개발환경 설치
¨ AVR Studio 설치(7)
![Page 16: Chapter. 2 마이크로컨트롤러 개발환경artoa.hanbat.ac.kr/lecture_data/microprocessor/2014/제2... · 2014-03-14 · 개발환경설치 ¨프로그램다운로딩 ¤실행파일을avr](https://reader033.fdocuments.in/reader033/viewer/2022053007/5f0acd5d7e708231d42d69f6/html5/thumbnails/16.jpg)
개발환경 설치
¨ WinAVR 설치(1)
![Page 17: Chapter. 2 마이크로컨트롤러 개발환경artoa.hanbat.ac.kr/lecture_data/microprocessor/2014/제2... · 2014-03-14 · 개발환경설치 ¨프로그램다운로딩 ¤실행파일을avr](https://reader033.fdocuments.in/reader033/viewer/2022053007/5f0acd5d7e708231d42d69f6/html5/thumbnails/17.jpg)
개발환경 설치
¨ WinAVR 설치(2)
![Page 18: Chapter. 2 마이크로컨트롤러 개발환경artoa.hanbat.ac.kr/lecture_data/microprocessor/2014/제2... · 2014-03-14 · 개발환경설치 ¨프로그램다운로딩 ¤실행파일을avr](https://reader033.fdocuments.in/reader033/viewer/2022053007/5f0acd5d7e708231d42d69f6/html5/thumbnails/18.jpg)
개발환경 설치
¨ WinAVR 설치(3)
![Page 19: Chapter. 2 마이크로컨트롤러 개발환경artoa.hanbat.ac.kr/lecture_data/microprocessor/2014/제2... · 2014-03-14 · 개발환경설치 ¨프로그램다운로딩 ¤실행파일을avr](https://reader033.fdocuments.in/reader033/viewer/2022053007/5f0acd5d7e708231d42d69f6/html5/thumbnails/19.jpg)
개발환경 설치
¨ WinAVR 설치(4)
![Page 20: Chapter. 2 마이크로컨트롤러 개발환경artoa.hanbat.ac.kr/lecture_data/microprocessor/2014/제2... · 2014-03-14 · 개발환경설치 ¨프로그램다운로딩 ¤실행파일을avr](https://reader033.fdocuments.in/reader033/viewer/2022053007/5f0acd5d7e708231d42d69f6/html5/thumbnails/20.jpg)
개발환경 설치
¨ WinAVR 설치(5)
![Page 21: Chapter. 2 마이크로컨트롤러 개발환경artoa.hanbat.ac.kr/lecture_data/microprocessor/2014/제2... · 2014-03-14 · 개발환경설치 ¨프로그램다운로딩 ¤실행파일을avr](https://reader033.fdocuments.in/reader033/viewer/2022053007/5f0acd5d7e708231d42d69f6/html5/thumbnails/21.jpg)
개발환경 설치
¨ WinAVR 설치(6)
![Page 22: Chapter. 2 마이크로컨트롤러 개발환경artoa.hanbat.ac.kr/lecture_data/microprocessor/2014/제2... · 2014-03-14 · 개발환경설치 ¨프로그램다운로딩 ¤실행파일을avr](https://reader033.fdocuments.in/reader033/viewer/2022053007/5f0acd5d7e708231d42d69f6/html5/thumbnails/22.jpg)
개발환경 설치
¨ 프로그램 다운로딩
¤ 실행파일을 AVR 마이크로컨트롤러의 프로그램 메모리, 즉 플래쉬 메모리로 옮겨 적재시키는 작업
¨ USB ISP 프로그래머
¤ 한백전자가 제공하는 USB용 ISP 장치
¨ VCP
¤ FTDI 사에서 제공하는 드라이버 프로그램
¤ USB를 통한 ISP 프로그램 다운로딩 소프트웨어
![Page 23: Chapter. 2 마이크로컨트롤러 개발환경artoa.hanbat.ac.kr/lecture_data/microprocessor/2014/제2... · 2014-03-14 · 개발환경설치 ¨프로그램다운로딩 ¤실행파일을avr](https://reader033.fdocuments.in/reader033/viewer/2022053007/5f0acd5d7e708231d42d69f6/html5/thumbnails/23.jpg)
개발환경 설치
¨ VCP 설치하기(다운로드) : http://www.ftdichip.com/Drivers/VCP.htm
![Page 24: Chapter. 2 마이크로컨트롤러 개발환경artoa.hanbat.ac.kr/lecture_data/microprocessor/2014/제2... · 2014-03-14 · 개발환경설치 ¨프로그램다운로딩 ¤실행파일을avr](https://reader033.fdocuments.in/reader033/viewer/2022053007/5f0acd5d7e708231d42d69f6/html5/thumbnails/24.jpg)
개발환경 설치
¨ VCP 설치하기(1)
![Page 25: Chapter. 2 마이크로컨트롤러 개발환경artoa.hanbat.ac.kr/lecture_data/microprocessor/2014/제2... · 2014-03-14 · 개발환경설치 ¨프로그램다운로딩 ¤실행파일을avr](https://reader033.fdocuments.in/reader033/viewer/2022053007/5f0acd5d7e708231d42d69f6/html5/thumbnails/25.jpg)
개발환경 설치
¨ VCP 설치하기(2)
![Page 26: Chapter. 2 마이크로컨트롤러 개발환경artoa.hanbat.ac.kr/lecture_data/microprocessor/2014/제2... · 2014-03-14 · 개발환경설치 ¨프로그램다운로딩 ¤실행파일을avr](https://reader033.fdocuments.in/reader033/viewer/2022053007/5f0acd5d7e708231d42d69f6/html5/thumbnails/26.jpg)
개발환경 설치
¨ VCP 설치하기(3)
![Page 27: Chapter. 2 마이크로컨트롤러 개발환경artoa.hanbat.ac.kr/lecture_data/microprocessor/2014/제2... · 2014-03-14 · 개발환경설치 ¨프로그램다운로딩 ¤실행파일을avr](https://reader033.fdocuments.in/reader033/viewer/2022053007/5f0acd5d7e708231d42d69f6/html5/thumbnails/27.jpg)
AVR Studio 처음 실행
¨ AVR Studio 실행(1)
![Page 28: Chapter. 2 마이크로컨트롤러 개발환경artoa.hanbat.ac.kr/lecture_data/microprocessor/2014/제2... · 2014-03-14 · 개발환경설치 ¨프로그램다운로딩 ¤실행파일을avr](https://reader033.fdocuments.in/reader033/viewer/2022053007/5f0acd5d7e708231d42d69f6/html5/thumbnails/28.jpg)
AVR Studio 처음 실행
¨ AVR Studio 실행(2) : New Project 실행
![Page 29: Chapter. 2 마이크로컨트롤러 개발환경artoa.hanbat.ac.kr/lecture_data/microprocessor/2014/제2... · 2014-03-14 · 개발환경설치 ¨프로그램다운로딩 ¤실행파일을avr](https://reader033.fdocuments.in/reader033/viewer/2022053007/5f0acd5d7e708231d42d69f6/html5/thumbnails/29.jpg)
AVR Studio 처음 실행
¨ AVR Studio 실행(3) : Project 생성
![Page 30: Chapter. 2 마이크로컨트롤러 개발환경artoa.hanbat.ac.kr/lecture_data/microprocessor/2014/제2... · 2014-03-14 · 개발환경설치 ¨프로그램다운로딩 ¤실행파일을avr](https://reader033.fdocuments.in/reader033/viewer/2022053007/5f0acd5d7e708231d42d69f6/html5/thumbnails/30.jpg)
AVR Studio 처음 실행
¨ AVR Studio 실행(4) : Project 생성
![Page 31: Chapter. 2 마이크로컨트롤러 개발환경artoa.hanbat.ac.kr/lecture_data/microprocessor/2014/제2... · 2014-03-14 · 개발환경설치 ¨프로그램다운로딩 ¤실행파일을avr](https://reader033.fdocuments.in/reader033/viewer/2022053007/5f0acd5d7e708231d42d69f6/html5/thumbnails/31.jpg)
AVR Studio 처음 실행
¨ AVR Studio 실행(5) : Project 옵션설정
![Page 32: Chapter. 2 마이크로컨트롤러 개발환경artoa.hanbat.ac.kr/lecture_data/microprocessor/2014/제2... · 2014-03-14 · 개발환경설치 ¨프로그램다운로딩 ¤실행파일을avr](https://reader033.fdocuments.in/reader033/viewer/2022053007/5f0acd5d7e708231d42d69f6/html5/thumbnails/32.jpg)
AVR Studio 처음 실행
¨ AVR Studio 실행(6) :
프로그램 작성과 빌드
Getting_Start.c
![Page 33: Chapter. 2 마이크로컨트롤러 개발환경artoa.hanbat.ac.kr/lecture_data/microprocessor/2014/제2... · 2014-03-14 · 개발환경설치 ¨프로그램다운로딩 ¤실행파일을avr](https://reader033.fdocuments.in/reader033/viewer/2022053007/5f0acd5d7e708231d42d69f6/html5/thumbnails/33.jpg)
AVR Studio 처음 실행
¨ AVR Studio 실행(7) : AVR Programmer Connect
![Page 34: Chapter. 2 마이크로컨트롤러 개발환경artoa.hanbat.ac.kr/lecture_data/microprocessor/2014/제2... · 2014-03-14 · 개발환경설치 ¨프로그램다운로딩 ¤실행파일을avr](https://reader033.fdocuments.in/reader033/viewer/2022053007/5f0acd5d7e708231d42d69f6/html5/thumbnails/34.jpg)
AVR Studio 처음 실행
¨ AVR Studio 실행(8) : AVR Programmer Connect
![Page 35: Chapter. 2 마이크로컨트롤러 개발환경artoa.hanbat.ac.kr/lecture_data/microprocessor/2014/제2... · 2014-03-14 · 개발환경설치 ¨프로그램다운로딩 ¤실행파일을avr](https://reader033.fdocuments.in/reader033/viewer/2022053007/5f0acd5d7e708231d42d69f6/html5/thumbnails/35.jpg)
AVR Studio 처음 실행
¨ AVR Studio 실행(9) : Program Download
![Page 36: Chapter. 2 마이크로컨트롤러 개발환경artoa.hanbat.ac.kr/lecture_data/microprocessor/2014/제2... · 2014-03-14 · 개발환경설치 ¨프로그램다운로딩 ¤실행파일을avr](https://reader033.fdocuments.in/reader033/viewer/2022053007/5f0acd5d7e708231d42d69f6/html5/thumbnails/36.jpg)
AVR Studio 처음 실행
¨ AVR Studio 실행(10) : 파일 추가 방법