User manual
10
under all circumstances, since it may destroy the controller. Install a brief wire piece as tension
relief. Once the voltage connection has been established, it should remain connected continually
if possible. To deactivate it, take one of the batteries from the compartment.
Fig. 4: Minimum application with LEDs
Already use the reset button additionally and connectfour LEDs to dropping resistors of 2.2 kO.
They are needed for the first hardware tests. Observe the order. A1 is connected to the left LED
and A4 to the right one. The binary display with the highest-value bit is on the left. This is helpful
particularly during later programming.
2 Alternating Flash
Now insert three 1.5-V batteries or alternatively three NiMh rechargeable batteries into the
battery compartment. This starts the first example programme with an alternating flash with the
left and right LED. the flashing frequency is approx. 1 Hz. The programme listing shows the
simple programme with only five lines. Alternatingly, LED 1 and LED 8 are switched on.
Between them there are waiting commands with a waiting time of 0.5 s. Jumping back to the
beginning ensures that flashing is continued forever. The individual commands are explained in
more detail below. You can see how simple the programming is by this example. The firmware
of the controller has an interpreter that recognises and executes the simple commands.
Programmes therefore are much more compact than in other systems.
The example occupies the address range from 20h onwards (decimal 32). Several programmes
in the upper address range can be started later from dedicated applications. The addresses can
also be overwritten with your own programme code. On demand, the controller can also be reset
to the basic condition, which resets the original example programmes.