dots-and-lines
tags: assembler
stachan 15.04.2024
Task :: Dots and Lines
-
Das Programm soll endlos im Takt 1T=50000 von 0 hochzählen, wobei in der Hälfte der Zeit ein Trennpunkt ausgegeben wird (siehe unten).
-
Beachten Sie, dass die größte Dezimalzahl 255 ist. Durch den Überlauf des Byte-Registers beginnt das Zählen dann wieder bei 0.
-
Gleichzeitig mit dem Trennpunkt blinkt die grüne LED für jeweils 0,5T.
-
Wird der rote Button gedrückt, werden drei Linien (scheinbar gleichzeitig) ausgegeben (programmieren Sie eine Schleife), und der Zähler wird auf 0 zurückgesetzt. Währenddessen leuchtet die gelbe LED dauerhaft.
-
The programme should count up endlessly from 0 in the cycle 1T=50000, whereby a separating dot is output halfway through (see below).
-
Note that the largest decimal number is 255. Due to the overflow of the byte register, counting then starts again at 0.
-
The green LED flashes for 0.5T at the same time as the separating dot.
-
If the red button is pressed, three lines are output (apparently simultaneously, write a loop) and the counter is reset to 0. Meanwhile, the yellow LED lights up continuously.
