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/22 11:30] mikk.leinien:examples [Unknown date] (current) – external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-====== Examples ======+====== AVR Practical Examples ======
  
-{{  :images:book:examples.jpg?580  |}}+{{  :kit:kodulabor3_komponendid_v.png?600  |}}
  
-Praktilised näited on üles ehitatud  ühtse läbiva stiiliga ja võimalikult konkreetsedIga näide algab lühikese teoreetilise taustaga, andes nii vajalikud põhiteadmised harjutuses järgnevale praktilisele osalePraktiline osa sisaldab endas tarkvara lähtekoodi kommenteeritud näidetÜldjuhul on koodinäites kasutatud Kodulabori teekiaga mõne näite puhul ka otsest registrite seadistamistNatuke erineva struktuuri ja eesmärgiga on esimene peatükk, mis kirjeldab vajaliku tarkvara paigaldamist ja seadistamistNäited on toodud Windowsi ja Linuxi keskkondade jaoksJärgnevad peatükid ja praktilised näited sobivad mõlema operatsioonisüsteemi ja arendustarkvara jaoks.+Practical examples are built up in uniform style and as concrete as possibleEach example begins with a short introduction of the theory and gives necessary knowledges for completing the following practical partPractical part contains commented example of the source code of the softwareGenerally the library of the HomeLab is used in the example of the codebut in some cases the registers are also configuredThe first chapter is a little bit different with a bit different goal. It describes installation and set-up of necessary softwareThe examples are about Windows and Linux operation systemsChapters and practical examples after the first chapter are suitable for both OS and development software.
  
-~~PB~~+<pagebreak>
  
-**Ülesehitus**+**Buildup**
  
-Praktiliste näidete peatükkide juures on toodud loetelu näite läbimiseks vajalikest eelteadmistestLoetelus on viited raamatu teistele peatükkidelemis on tähistatud teemakohaste ikoonidega:+There is a list of necessary knowledges to complete the example at each chapter of practical examplesIn this list are references to other chapters of the bookwhich are marked with icons as follows:
  
-  * [HW] Näites kasutatud füüsiline moodul +  * [HW] Physical module used in th example. 
-  * [LIB] Näites kasutatud tarkvara teegi osa +  * [LIB] Part of the software library used in the example. 
-  * [ELC] Viide elektroonika baasteadmiste peatükile +  * [ELC] Reference to the chapter Basics of electronics. 
-  * [AVR] Viide AVR mikrokontrolleri mooduli peatükile +  * [AVR] Reference to the chapter AVR microcontroller's module. 
-  * [PRT] Viide teisele harjutusele+  * [PRT] Reference to other exercises.
  
-**Näidete baastarkvara**+**Basic software of the examples**
  
-Nagu eespool öeldud, on praktilised koodinäited koostatud Kodulabori teegi baasilTeeki on kirjutatud enimkasutatavad AVR spetsiifilised operatsioonid ja Kodulabori moodulitega seotud protseduuridTeegi kasutamine tähendabet kasutaja ei pea moodulite töölepanekuks kirjutama riistvaralähedastregistritega toimetavat programmikoodikuigi 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.+As mentioned beforepractical code samples are composed on the basis of the library of the HomeLabThere are most used specific AVR operations and procedures connected with the HomeLab’s modules written in the libraryThe 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 registersalthough this opportunity always exists. Separating the software which communicates with hardware from the examples and exercisesallows the user to focus on creating his/hers own algorithm instead of peculiarities not connected to the hardware
  
-**Näidete koodistiil**+**Code style of the examples**
  
-Näidisprogrammid on kirjutatud ühes stiiliset programmikood oleks ülevaatlikumÜhtne stiil teeb programmi loetavaks ja välistab kergemate süntaksivigade tekkimistKindlat stiili on soovitatav järgida ka harjutusülesannete tegemiselStiili peamised iseloomustajad:+The example programs are written in one styleto achieve more synoptic program codeUniform style makes the program more readable and prevents making simple syntax mistakesIt is advised to follow a certain style when making exercisesThe main characteristics of the style:
  
-  * Programmselle funktsioonid ja muutujad on ingliskeelsed ning väiketähtedegakus sõnu eraldab alakriips+  * Programall its functions and variables are in English and in small lettersthe words are separated with an under-strike
-  * Funktsioonid on kujul //objekt_tegevus_subjekt//. +  * Functions are in following form: //object_action_subject//. 
-  * Olulisemad kohad programmis on kommenteeritud eesti keeles+  * more important places in the program are commented
-  * Iga C-keele plokk (tähistatud loogeliste sulgudega ja } ) algab ja lõpeb eraldi real+  * Every block in C-language (marked with and } )starts and begins in separate row
-  * Plokid on tabuleeritud tabulaatorklahvigaReasiseselt tabulaatorit ei kasutata.+  * Blocks are tabulated with tabulator keysTabulator is not used inside rows.
en/examples.1266838243.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