Subversion Repositories BL-Ctrl

Rev

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

Rev 29 Rev 31
Line 10... Line 10...
10
 
10
 
11
void Blc(void);
11
void Blc(void);
Line 12... Line 12...
12
void Manuell(void);
12
void Manuell(void);
13
 
13
 
14
#ifdef  _32KHZ 
14
#ifdef  _32KHZ 
15
 #define PWM_C_ON  {TCCR1A = 0xAD; TCCR2  = 0x49;DDRB = 0x0A;} 
15
 #define PWM_C_ON  {TCCR1A = 0xA1; TCCR2  = 0x49; DDRB = 0x0A;} 
16
 #define PWM_B_ON  {TCCR1A = 0xAD; TCCR2  = 0x49;DDRB = 0x0C;}
16
 #define PWM_B_ON  {TCCR1A = 0xA1; TCCR2  = 0x49; DDRB = 0x0C;}
17
 #define PWM_A_ON  {TCCR1A = 0xAD; TCCR2  = 0x69;DDRB = 0x08;}
17
 #define PWM_A_ON  {TCCR1A = 0xA1; TCCR2  = 0x69; DDRB = 0x08;}
Line 18... Line 18...
18
 #define PWM_OFF   {TCCR1A = 0x0D; TCCR2  = 0x49;PORTC &= ~0x0E;}
18
 #define PWM_OFF   {TCCR1A = 0x01; TCCR2  = 0x49; PORTC &= ~0x0E;}
19
#endif 
19
#endif 
20
 
20
 
21
#ifdef  _16KHZ 
21
#ifdef  _16KHZ 
22
 #define PWM_C_ON  {TCCR1A = 0xA2; TCCR2  = 0x41; DDRB = 0x0A;} 
22
 #define PWM_C_ON  {TCCR1A = 0xA1; TCCR2  = 0x41; DDRB = 0x0A;} 
23
 #define PWM_B_ON  {TCCR1A = 0xA2; TCCR2  = 0x41; DDRB = 0x0C;}
23
 #define PWM_B_ON  {TCCR1A = 0xA1; TCCR2  = 0x41; DDRB = 0x0C;}
Line 24... Line 24...
24
 #define PWM_A_ON  {TCCR1A = 0xA2; TCCR2  = 0x61; DDRB = 0x08;}
24
 #define PWM_A_ON  {TCCR1A = 0xA1; TCCR2  = 0x61; DDRB = 0x08;}
25
 #define PWM_OFF   {TCCR1A = 0x02; TCCR2  = 0x41;PORTC &= ~0x0E;}
25
 #define PWM_OFF   {TCCR1A = 0x01; TCCR2  = 0x41; PORTC &= ~0x0E;}