회원가입 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
번호 분류 제목 글쓴이 조회 수 날짜
334 PADS HOT2005 버전 라이브러리 컨버터 있으신분..1 종나섹쉬 1090 2011.11.04
333 PADS HOTPADS 9.3 파일 공유 부탁드려요 naughty boy 1330 2011.11.04
332 PADS HOTPADS 9.3설치문의 다리미 1376 2011.11.01
331 Allegro & OrCAD HOT윈7을 사용해서 10.5에서..1 카나데 1170 2011.10.29
330 PADS HOTReturn path 마모루 891 2011.10.25
329 PADS HOT사용문의~2 오렌지 1274 2011.10.12
328 PADS HOTpads 9.3 깔았는데..,null 폴더 계속 생겼요./! 시무스 2080 2011.10.07
327 PADS HOTorcad pads 설치 실행시 발생오류..1 후니다잉용 2420 2011.10.06
326 ECAD 아무거나 HOTpmc/xmc 질문입니다. 마모루 1034 2011.10.04
325 PADS HOT4층 LAYOUT호 Gerber파일을 생성하는 순서나 자료있나요?3 정상까지 가보자! 2987 2011.10.03
324 ECAD 아무거나 HOTStandard PCB Layer Stack Up 정상까지 가보자! 1355 2011.10.03
323 PADS HOT확장자 gb는 뭘로 열어야 하나요!?1 마모루 2033 2011.09.19
322 Allegro & OrCAD HOTOR_CAD 레이아웃 치수보조선2 천상에서 2019 2011.09.17
321 ECAD 아무거나 HOTpads 9.2 설치 오류 문의 조필버그 1941 2011.09.09
320 PADS HOTGerber data를 PCB Layout파일로 바꿀수 있나요?1 소주가이 1940 2011.09.06
319 Allegro & OrCAD HOTusb 3.0단자를 orcad로 그려 보려고합니다. 제이콥 1765 2011.09.06
318 Allegro & OrCAD HOTwindows7 으로 오늘 교체하고 orcad16.2 설차 방법 문의11 빼빼로 5821 2011.09.06
317 PADS HOT패즈 라이센스 오류에 관해서 질문드립니다. 챠리스만 2024 2011.09.02
316 PADS HOTpads9.3 updata 파일이나 pads9.3.1 파일 정상까지 가보자! 3429 2011.08.31
315 PADS HOTPADS 9.3 Pin Wizards 관련 질문입니다.3 인서아빠 2353 2011.08.27
Prev 1 ... 11 12 13 14 15 16 17 18 19 20 ... 32 Next
  • 산에는 우정이 있다.
    - 텐진
  • * 납포인트 정보 *
  • 글 작성 : 3
  • 댓글 작성 : 1
  • 내 글이 추천받음 : 1
저작권법에 위배되는 콘텐츠는 등록 불가하며, 저작물에 대한 권리는 저작자에게 있습니다.
Copyright 2006-2021 © hardwareis.com, All rights reserved.