This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:examples:timer:software_delay [2010/03/08 19:54] – Helen | en:examples:timer:software_delay [2020/07/20 09:00] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | < | ||
| ====== Software delay ====== | ====== Software delay ====== | ||
| Line 30: | Line 31: | ||
| <code asm> | <code asm> | ||
| - | 80 e0 | + | 80 e0 |
| - | 00 00 | + | 00 00 |
| - | 8f 5f subi r24, 0xFF | + | 8f 5f subi r24, 0xFF ; subtracting 255 form the r24 index, that means adding +1 |
| - | 84 36 | + | 84 36 |
| - | e1 f7 brne .-8 | + | e1 f7 brne .-8 |
| </ | </ | ||
| Line 72: | Line 73: | ||
| <code c> | <code c> | ||
| // | // | ||
| - | // The demonstration program of the software delay of the Homelab. | + | // The demonstration program of the software delay of the HomeLab. |
| // The program is blinking a LED for a moment after ~1 second. | // The program is blinking a LED for a moment after ~1 second. | ||
| // | // | ||