Difference between revisions of "U23 2007/Inhalt Abend 2/Binär durchzählen"
< U23 2007 | Inhalt Abend 2
(New page: #include <avr/io.h> int main(void) { DDRA = 0xFF; PORTA = 0x00; while (1) { PORTA *= 2; if(PORTA == 0x00) { PORTA = 0x01; ...) |
|
(No difference)
|
Revision as of 17:09, 21 May 2007
#include <avr/io.h> int main(void) { DDRA = 0xFF; PORTA = 0x00; while (1) { PORTA *= 2; if(PORTA == 0x00) { PORTA = 0x01; } uint16_t i; uint16_t j; for (i = 0; i < 5; i++) { for (j = 0; j < 0xffff; j++) { /* nix */ } } } return 0; }