Subversion Repositories BL-Ctrl

Rev

Rev 80 | Rev 82 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 80 Rev 81
Line 242... Line 242...
242
unsigned char Delay(unsigned int timer)
242
unsigned char Delay(unsigned int timer)
243
{
243
{
244
 while(timer--)
244
 while(timer--)
245
  {
245
  {
246
//   if(SENSE_H) { PORTC |= ROT; } else { PORTC &= ~ROT;}
246
//   if(SENSE_H) { PORTC |= ROT; } else { PORTC &= ~ROT;}
-
 
247
        asm volatile("");
247
  }
248
  }
248
 return(0);  
249
 return(0);  
249
}
250
}
Line 250... Line 251...
250
 
251
 
Line 263... Line 264...
263
#define LOW_C_EIN  PORTD |= 0x20
264
#define LOW_C_EIN  PORTD |= 0x20
Line 264... Line 265...
264
 
265
 
265
void MotorTon(void)
266
void MotorTon(void)
266
//############################################################################
267
//############################################################################
267
{
268
{
268
    unsigned char ADR_TAB[5] = {0,0,2,1,3};
269
    unsigned char ADR_TAB[7] = {0,0,3,1,4,2,5};
269
    unsigned int timer = 300,i;
270
    unsigned int timer = 300,i;
270
    unsigned int t = 0;
271
    unsigned int t = 0;
Line 271... Line 272...
271
    unsigned char anz = 0,MosfetOkay = 0, grenze = 50;
272
    unsigned char anz = 0,MosfetOkay = 0, grenze = 50;
Line 475... Line 476...
475
      Delay(SOUND_E);
476
      Delay(SOUND_E);
476
      PORTB = 0;
477
      PORTB = 0;
477
      Delay(SOUND8_A);
478
      Delay(SOUND8_A);
478
     }
479
     }
479
*/
480
*/
480
 Delay_ms(300 * (4-ADR_TAB[MotorAdresse]));    
481
 Delay_ms(300 * (6-ADR_TAB[MotorAdresse]));    
481
 if(!(MosfetOkay & 0x01))  { anz = 1; UDR='A'; } else
482
 if(!(MosfetOkay & 0x01))  { anz = 1; UDR='A'; } else
482
 if(!(MosfetOkay & 0x02))  { anz = 2; UDR='B'; } else
483
 if(!(MosfetOkay & 0x02))  { anz = 2; UDR='B'; } else
483
 if(!(MosfetOkay & 0x04))  { anz = 3; UDR='C'; } else
484
 if(!(MosfetOkay & 0x04))  { anz = 3; UDR='C'; } else
484
 if(!(MosfetOkay & 0x08))  { anz = 4; UDR='a'; } else
485
 if(!(MosfetOkay & 0x08))  { anz = 4; UDR='a'; } else
485
 if(!(MosfetOkay & 0x10))  { anz = 5; UDR='b'; } else
486
 if(!(MosfetOkay & 0x10))  { anz = 5; UDR='b'; } else