회원가입 ID/PW 찾기
AA

출처 : Beginners Introduction to the Assembly Language of ATMEL-AVR-Microprocessors ,2004  by Gerhard Schmidt

 

어셈블러를 왜 배워야 하나?

-짧으며 분석 또는 버그잡기에 편하다.

-빠르다.

-어셈블러를 배우기 쉽다.

---어셈블러를 배우는 데 AT90Sxxxx만한 것 없다.

 

 

레지스터란 무엇인가?   8bit용량을 가진 특별한 기억장치이다.

 

Port란 무엇인가?  AVR에서 Port들은 CPU로부터 내,외부 하드,소프트웨어 구성요소로의 일종의 논리기능을 담당하는 문(gate)이다.

 

 

Why learning Assembler?
Assembler or other languages, that is the question. Why should I learn another language, if I already
learned other programming languages? The best argument: while you live in France you are able to get
through by speaking english, but you will never feel at home then, and life remains complicated. You can
get through with this, but it is rather inappropriate. If things need a hurry, you should use the country's
language.

 

Short and easy
Assembler commands translate one by one to executed machine commands. The processor needs only to
execute what you want it to do and what is necessary to perform the task. No extra loops and unnecessary
features blow up the generated code. If your program storage is short and limited and you have to optimize
your program to fit into memory, assembler is choice 1. Shorter programs are easier to debug, every step
makes sense.

 

Fast and quick
Because only necessary code steps are executed, assembly programs are as fast as possible. The
duration of every step is known. Time critical applications, like time measurements without a hardware
timer, that should perform excellent, must be written in assembler. If you have more time and don't mind if
your chip remains 99% in a wait state type of operation, you can choose any language you want.


 

기계어는 배우기 쉽다.
It is not true that assmbly language is more complicated or not as easy to understand than other
languages. Learning assembly language for whatever hardware type brings you to understand the basic
concepts of any other assembly language dialect. Adding other dialects later is easy. The first assembly
code does not look very attractive, with every 100 additional lines programmed it looks better. Perfect
programs require some thousand lines of code of exercise, and optimization requires lots of work. As
some features are hardware-dependant optimal code requires some familiarity with the hardware concept
and the dialect. The first steps are hard in any language. After some weeks of programming you will laugh
if you go through your first code. Some assembler commands need some monthes of experience.

 

기계어 배우는 데 AT90Sxxxx만한 게 없다.

Assembler programs are a little bit silly: the chip executes anything you tell it to do, and does not ask you if
you are sure overwriting this and that. All protections must be programmed by you, the chip does anything
like it is told. No window warns you, unless you programmed it before.
Basic design errors are as complicated to debug like in any other computer language. But: testing
programs on ATMEL chips is very easy. If it does not do what you expect it to do, you can easily add some
diagnostic lines to the code, reprogram the chip and test it. Bye, bye to you EPROM programmers, to the
UV lamps used to erase your test program, to you pins that don't fit into the socket after having them
removed some douzend times.
Changes are now programmed fast, compiled in no time, and either simulated in the studio or checked incircuit.
No pin is removed, and no UV lamp gives up just in the moment when you had your excellent idea
about that bug.

 

-----------

 

What is a register?
Registers are special storages with 8 bits capacity and they look like this:

 

-----------

Ports in the AVR are gates from the central processing unit to internal and external hard- and software
components. The CPU communicates with these components, reads from them or writes to them, e.g. to
the timers or the parallel ports. The most used port is the flag register, where results of previous operations
are written to and branch conditions are read from.

 

 

...

부분 부분 발췌해서 우리말로 바꾼 것입니다.

 

댓글 4

하드웨어 설계 및 개발에 대하여 개발자들이 자유롭게 토론하는 공간입니다.
- Q&A, 자유주재 토론, 관련 정보 공유
- 분야 : 마이크로프로세서 응용, 전기/전자(아날로그/디지털) 회로 설계, C/C++ 프로그래밍, 펌웨어,
         PCB Artwork, 트러블슈팅 등 하드웨어 설계에 관한 전반인 내용
※ 게시글에 맞는 분류를 선택하여 글을 작성해 주시면 쾌적한 사이트 운영에 많은 도움이 됩니다.
※ 하드웨어 인사이트는 회원들간의 거래정보를 게재할 뿐이지, 그 어떤 책임과 의무도 가지지 않습니다.

search
번호 분류 제목 글쓴이 조회 수 날짜
106 개발용역 HOT가상시리얼포트 서버연동 제작의뢰 합니다. 저기로보여지는 5524 2012.04.11
105 개발용역 HOTC++ 프로그래밍 능숙하신 프리랜서 구합니다. 퀵서비스 6759 2012.03.30
104 개발용역 HOT리눅스나 윈도우 CE 프로그래밍 의뢰합니다. 미니공 5654 2012.03.25
103 개발용역 HOT개발의뢰, PCB ARTWORK 의뢰 받습니다 패즈마스터 5424 2012.03.22
102 개발용역 HOTARTWORK 저렴하게 작업해드립니다. leegoon 6770 2012.02.24
101 개발용역 HOTSMT 샘플.P.P 전문 회사 입니다. 케이미테크 6907 2012.02.04
100 개발용역 HOT소형 제어용 콘트롤러 개발 의뢰합니다.1 박종근 6159 2012.01.18
99 개발용역 HOT정류기 인터페이스 모듈 개발 의뢰합니다. 진수아빠 6912 2011.12.29
98 개발용역 HOT개발 용역 의뢰 받습니다. (펌웨어,회로설계,아트웍) 장마 9368 2011.12.07
97 개발용역 HOT회로 설계 드립니다. 휴너시스 7946 2011.11.16
96 개발용역 HOTAT91SAM7S256 이용 블루투스 모듈 & 바코드 스캐너 엔진 제어 펌웨어 구현 개발의뢰. 게의른게 7799 2011.10.31
95 개발용역 HOT프리랜서 모집합니다. k231 7707 2011.10.17
94 개발용역 HOTPCB ARTWORK 해드립니다 아놀드1 7113 2011.07.17
93 개발용역 HOTpcb 아트웍 및 보드납땜 저렴한가격에 진행합니다. 크크a 14481 2011.07.16
92 개발용역 HOT아트웍 및 S/W, H/W, F/W 개발 합니다. 空智 8019 2011.07.08
91 개발용역 HOTLED 제품 개발 박팔뚝 7654 2011.06.30
90 개발용역 HOT개발의뢰합니다.(파트타임,알바,기간제)3 아크로팰리스 7798 2011.06.14
89 개발용역 HOTC프로그램 잘하시는분 연락바랍니다 블루미 7612 2011.05.30
88 개발용역 HOT마이콤보드 제작건 블루미 7929 2011.05.25
87 개발용역 HOT개발해 드립니다.. ㅈㅈㅈ 7012 2011.05.25
  • 태만이란 약한 마음을 가진 사람의 유일한 피난처이다.
    - 체스터필드
  • * 납포인트 정보 *
  • 글 작성 : 3
  • 댓글 작성 : 1
  • 내 글이 추천받음 : 1
저작권법에 위배되는 콘텐츠는 등록 불가하며, 저작물에 대한 권리는 저작자에게 있습니다.
Copyright 2006-2021 © hardwareis.com, All rights reserved.