Subversion Repositories group.electronics

Rev

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

Rev 94 Rev 96
Line 426... Line 426...
426
	// Clear the mask so we know we've delth with it
426
	// Clear the mask so we know we've delth with it
427
	pcInt[pcint].mask = 0;
427
	pcInt[pcint].mask = 0;
428
}
428
}
429
 
429
 
430
ISR(TIMER0_OVF_vect) {
430
ISR(TIMER0_OVF_vect) {
-
 
431
 
-
 
432
	// Clk/1 TCCR0B = (1<< CS00);
-
 
433
	//20.0Mhz, 1ms = 78ovf
-
 
434
	//16.5Mhz, 1ms = 64ovf
-
 
435
	//12.0Mhz, 1ms = 46ovf
-
 
436
 
431
	tmr0_ovf++;
437
	tmr0_ovf++;
432
	if (tmr0_ovf>=46) {
438
	if (tmr0_ovf>=78) {
433
		systime++;
439
		systime++;
434
		tmr0_ovf = 0;
440
		tmr0_ovf = 0;
435
	}
441
	}
-
 
442
 
436
	if (switches[0][DETECTED] && switches[0][TIMER])
443
	if (switches[0][DETECTED] && switches[0][TIMER])
437
		switches[0][TIMER]--;
444
		switches[0][TIMER]--;
438
}
445
}
439
 
446
 
440
ISR(TIMER2_OVF_vect) {
447
ISR(TIMER2_OVF_vect) {
441
        tmr2_ovf++;
448
        tmr2_ovf++;
442
        if (tmr2_ovf>=58) {
449
        if (tmr2_ovf>=78) {
443
                lcdupdate=1;
450
                lcdupdate=1;
444
                tmr2_ovf = 0;
451
                tmr2_ovf = 0;
445
	//xbi(PORTD, PD4);
-
 
446
        }
452
        }
447
}
453
}
448
 
454
 
449
 
455
 
450
ISR(PCINT0_vect) {
456
ISR(PCINT0_vect) {