Subversion Repositories BL-Ctrl

Rev

Rev 31 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 31 Rev 39
Line 17... Line 17...
17
};
17
};
Line 18... Line 18...
18
 
18
 
19
 
19
 
20
SIGNAL(SIG_OVERFLOW0)
20
SIGNAL(SIG_OVERFLOW0)
21
{
21
{
22
 static unsigned char cnt;
22
 static unsigned char cnt;
23
 TCNT0 = 0x7F;
23
 TCNT0 = 0x80;
24
 Timer0Overflow++;
24
 Timer0Overflow++;
25
 if(!cnt--)
25
 if(!cnt--)
26
  {
26
  {
Line 34... Line 34...
34
 
34
 
35
 
35
 
36
void Timer0_Init(void)
36
void Timer0_Init(void)
37
{
37
{
38
 TCCR0  = TIMER_TEILER;
38
 TCCR0  = TIMER_TEILER;
39
// TCNT0 = -TIMER_RELOAD_VALUE;  // reload
39
 //TCNT0 = -TIMER_RELOAD_VALUE;  // reload
40
 TIM0_START;
40
 TIM0_START;