Instructions Circuit Diagram
- 73 -
Writing programs
Programmers are used to name the developing proces ‘Writing
programs’, because a program basically must be considered to be
plain text and sometimes may be compared to a simple letter or a short
story. For program writing we will use a special texteditor, called
‘Programmers Notepad2’ or PN2 in short. To write a YETI-
program you might even use any other editor, such as Notepad or
Microsoft Word, but we strongly advise to use PN2. Programmers
Notepad2 is a special tool for writing computer programs, providing
color-coding as a helpful aid in the programming process.
A program consists of a number of plain text lines, which of course
must satisfy some prerequisites to be translatable into processor
instructions. Another name for the plain text program is ‘source code’.
The prerequisites and conditions for translation into processor
instructions make up the programming ‘language’. And comparable to
dictionaries in human languages, we use special translation programs
totranslateaplaintextle,containingour‘sourcecode’,intoa‘hex’-le
with instructions for the microcontroller.
We can choose several languages for programming, but the most po-
pular language for writing microprocessor software is a language with
a short name: ‘C’. This is the language we choose to write the YETI’s
software.