User manual
23
• Display off, 300 ms
• Show command
• Second push of button S2
• Show data
• Third push of button S2
• Display next address, 300 ms
• etc.
If you want to view only a present programme with five steps, for example, without changing it, a
total of ten pushes of S2 takes you to the end. Because the current address is displayed briefly,
orientation is easy. You will always know if the display is currently showing a command or data.
In the delivery condition, the following commands are found in the first five addresses. This is
the start of the selection programme to start the individual example programmes.
Address
Command
Data
Comment
00
6
4
A = Din
01
5
1
B = A
02
4
E
A = 14
03
8
0
AdrHi = 0
04
C
3
A = B?
Listing 6: Programme code in the basic condition
A 4-bit command and the associated 4-bit data together form one byte, i.e. an 8-bit number. A
half byte is also called a "Nibble". The higher-value nibble forms the command, the lower-value
nibble the associated data. The EEPROM of the controller includes a total of 128 bytes.
Therefore, a programme can hold up to 128 commands. This is enough for most applications,
since the programme code is extremely compact. Many useful programmes can get by with
fewer than ten commands.
Display the individual commands and data and compare the content of the memory. Then push
the reset button again. The old programme will start unchanged.
8 Entering Programmes
The button S1 is used only if a command or its data are to be changed or entered anew.
Generally, only numbers between 0 and 15 can be entered. With the first push of S1, 0 is set.
Every following push of a button increases the number by 1. The current status is displayed
binarily with the four LEDs. If you want to enter 4, push S1 five times: 0, 1, 2, 3, 4. The binary
display then is 0100.
Once you have entered either the command, the data or both in this manner, the second push of
S2 programmes this byte into the EEPROM. To clarify this, the LED display for 600 ms is
switched off before the next address and the next command is displayed. This brief pause is to
be intuitively understood as programming. You can imagine that the system saves energy for