Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:examples [2010/02/04 19:44] raivo.sellen:examples [Unknown date] (current) – external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-====== Examples ====== +====== AVR Practical Examples ======
-{{  :images:book:kit_setup.jpg?580|  }}+
  
-Praktilised näited on üles ehitatud  ühtse läbiva stiiliga ja võimalikult konkreetsed. Iga näide algab lühikese teoreetilise taustaga, andes nii vajalikud põhiteadmised harjutuses järgnevale praktilisele osale. Praktiline osa sisaldab endas tarkvara lähtekoodi kommenteeritud näidet. Üldjuhul on koodinäites kasutatud Kodulabori teeki, aga mõne näite puhul ka otsest registrite seadistamist. Natuke erineva struktuuri ja eesmärgiga on esimene peatükk, mis kirjeldab vajaliku tarkvara paigaldamist ja seadistamist. Näited on toodud Windowsi ja Linuxi keskkondade jaoks. Järgnevad peatükid ja praktilised näited sobivad mõlema operatsioonisüsteemi ja arendustarkvara jaoks.+{{  :kit:kodulabor3_komponendid_v.png?600  |}}
  
-~~PB~~+Practical examples are built up in uniform style and as concrete as possible. Each example begins with a short introduction of the theory and gives necessary knowledges for completing the following practical part. Practical part contains commented example of the source code of the software. Generally the library of the HomeLab is used in the example of the code, but in some cases the registers are also configured. The first chapter is a little bit different with a bit different goal. It describes installation and set-up of necessary software. The examples are about Windows and Linux operation systems. Chapters and practical examples after the first chapter are suitable for both OS and development software.
  
-**Ülesehitus**+<pagebreak>
  
-Praktiliste näidete peatükkide juures on toodud loetelu näite läbimiseks vajalikest eelteadmistest. Loetelus on viited raamatu teistele peatükkidele, mis on tähistatud teemakohaste ikoonidega:+**Buildup**
  
-  * [HW] Näites kasutatud füüsiline moodul +There is a list of necessary knowledges to complete the example at each chapter of practical examples. In this list are references to other chapters of the book, which are marked with icons as follows:
-  * [LIB] Näites kasutatud tarkvara teegi osa +
-  * [ELC] Viide elektroonika baasteadmiste peatükile +
-  * [AVR] Viide AVR mikrokontrolleri mooduli peatükile +
-  * [PRT] Viide teisele harjutusele+
  
-**Näidete baastarkvara**+  [HW] Physical module used in th example. 
 +  [LIB] Part of the software library used in the example. 
 +  [ELC] Reference to the chapter Basics of electronics. 
 +  [AVR] Reference to the chapter AVR microcontroller's module. 
 +  * [PRT] Reference to other exercises.
  
-Nagu eespool öeldud, on praktilised koodinäited koostatud Kodulabori teegi baasil. Teeki on kirjutatud enimkasutatavad AVR spetsiifilised operatsioonid ja Kodulabori moodulitega seotud protseduurid. Teegi kasutamine tähendab, et kasutaja ei pea moodulite töölepanekuks kirjutama riistvaralähedast, registritega toimetavat programmikoodi, kuigi see võimalus on alati olemas. Riistvaraga suhtleva tarkvara eraldamine näidetest ja harjutusülesannetest võimaldab kasutajal keskenduda oma algoritmi loomisele, mitte riistvaraga seotud eripäradele.+**Basic software of the examples**
  
-**Näidete koodistiil**+As mentioned before, practical code samples are composed on the basis of the library of the HomeLab. There are most used specific AVR operations and procedures connected with the HomeLab’s modules written in the library. The usage of the library means that in order to start the modules the user does not have to write a hardware-like,  program code which uses registers, although this opportunity always exists. Separating the software which communicates with hardware from the examples and exercises, allows the user to focus on creating his/hers own algorithm instead of peculiarities not connected to the hardware. 
  
-Näidisprogrammid on kirjutatud ühes stiilis, et programmikood oleks ülevaatlikum. Ühtne stiil teeb programmi loetavaks ja välistab kergemate süntaksivigade tekkimist. Kindlat stiili on soovitatav järgida ka harjutusülesannete tegemisel. Stiili peamised iseloomustajad:+**Code style of the examples**
  
-  Programmselle funktsioonid ja muutujad on ingliskeelsed ning väiketähtedegakus sõnu eraldab alakriips+The example programs are written in one style, to achieve more synoptic program code. Uniform style makes the program more readable and prevents making simple syntax mistakes. It is advised to follow a certain style when making exercises. The main characteristics of the style: 
-  * Funktsioonid on kujul //objekt_tegevus_subjekt//. + 
-  * Olulisemad kohad programmis on kommenteeritud eesti keeles+  Programall its functions and variables are in English and in small lettersthe words are separated with an under-strike
-  * Iga C-keele plokk (tähistatud loogeliste sulgudega ja } ) algab ja lõpeb eraldi real+  * Functions are in following form: //object_action_subject//. 
-  * Plokid on tabuleeritud tabulaatorklahvigaReasiseselt tabulaatorit ei kasutata.+  * more important places in the program are commented
 +  * Every block in C-language (marked with and } )starts and begins in separate row
 +  * Blocks are tabulated with tabulator keysTabulator is not used inside rows.
en/examples.1265312668.txt.gz · Last modified: 2020/07/20 09:00 (external edit)
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0