Rev 40 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 40 | Rev 42 | ||
---|---|---|---|
Line 185... | Line 185... | ||
185 | 185 | ||
186 | UART_Init(); |
186 | UART_Init(); |
187 | Timer0_Init(); |
187 | Timer0_Init(); |
Line 188... | Line -... | ||
188 | sei ();//Globale Interrupts Einschalten |
- | |
189 | - | ||
190 | PORTD &= ~GRUEN; |
- | |
191 | Delay_ms(500); |
188 | sei ();//Globale Interrupts Einschalten |
192 | 189 | ||
193 | // Am Blinken erkennt man die richtige Motoradresse |
190 | // Am Blinken erkennt man die richtige Motoradresse |
194 | for(test=0;test<MOTORADRESSE;test++) |
191 | for(test=0;test<5;test++) |
195 | { |
192 | { |
196 | PORTD |= GRUEN; |
193 | if(test == MOTORADRESSE) PORTD |= GRUEN; |
197 | Delay_ms(250); |
194 | Delay_ms(150); |
198 | PORTD &= ~GRUEN; |
195 | PORTD &= ~GRUEN; |
- | 196 | Delay_ms(250); |
|
- | 197 | } |
|
Line 199... | Line 198... | ||
199 | Delay_ms(250); |
198 | |
200 | } |
199 | Delay_ms(500); |
Line 201... | Line 200... | ||
201 | 200 |