/branches/v0.31_8kHz_PWM/timer0.c |
---|
19,8 → 19,8 |
SIGNAL(SIG_OVERFLOW0) |
{ |
static unsigned char cnt; |
TCNT0 = 0x7F; |
static unsigned char cnt; |
TCNT0 = 0x80; |
Timer0Overflow++; |
if(!cnt--) |
{ |
36,7 → 36,7 |
void Timer0_Init(void) |
{ |
TCCR0 = TIMER_TEILER; |
// TCNT0 = -TIMER_RELOAD_VALUE; // reload |
//TCNT0 = -TIMER_RELOAD_VALUE; // reload |
TIM0_START; |
TIMER2_INT_ENABLE; |
} |