Rev 81 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 81 | Rev 82 | ||
---|---|---|---|
Line 264... | Line 264... | ||
264 | #define LOW_C_EIN PORTD |= 0x20 |
264 | #define LOW_C_EIN PORTD |= 0x20 |
Line 265... | Line 265... | ||
265 | 265 | ||
266 | void MotorTon(void) |
266 | void MotorTon(void) |
267 | //############################################################################ |
267 | //############################################################################ |
268 | { |
268 | { |
269 | unsigned char ADR_TAB[7] = {0,0,3,1,4,2,5}; |
269 | unsigned char ADR_TAB[7] = {0,0,0,1,1,2,2}; |
270 | unsigned int timer = 300,i; |
270 | unsigned int timer = 300,i; |
271 | unsigned int t = 0; |
271 | unsigned int t = 0; |
Line 272... | Line 272... | ||
272 | unsigned char anz = 0,MosfetOkay = 0, grenze = 50; |
272 | unsigned char anz = 0,MosfetOkay = 0, grenze = 50; |
Line 476... | Line 476... | ||
476 | Delay(SOUND_E); |
476 | Delay(SOUND_E); |
477 | PORTB = 0; |
477 | PORTB = 0; |
478 | Delay(SOUND8_A); |
478 | Delay(SOUND8_A); |
479 | } |
479 | } |
480 | */ |
480 | */ |
481 | Delay_ms(300 * (6-ADR_TAB[MotorAdresse])); |
481 | Delay_ms(300 * (3-ADR_TAB[MotorAdresse])); |
482 | if(!(MosfetOkay & 0x01)) { anz = 1; UDR='A'; } else |
482 | if(!(MosfetOkay & 0x01)) { anz = 1; UDR='A'; } else |
483 | if(!(MosfetOkay & 0x02)) { anz = 2; UDR='B'; } else |
483 | if(!(MosfetOkay & 0x02)) { anz = 2; UDR='B'; } else |
484 | if(!(MosfetOkay & 0x04)) { anz = 3; UDR='C'; } else |
484 | if(!(MosfetOkay & 0x04)) { anz = 3; UDR='C'; } else |
485 | if(!(MosfetOkay & 0x08)) { anz = 4; UDR='a'; } else |
485 | if(!(MosfetOkay & 0x08)) { anz = 4; UDR='a'; } else |
486 | if(!(MosfetOkay & 0x10)) { anz = 5; UDR='b'; } else |
486 | if(!(MosfetOkay & 0x10)) { anz = 5; UDR='b'; } else |