45 TCC_R0 = (1<<CS02) | (0<<CS01) | (0<<CS00);
50 TCCR0A = (0<<TCW0) | (0<<ICEN0) | (0<<ICNC0) | (0<<ICES0) | (0<<ACIC0) | (1<<
CTC0);
60 TIMSK = (0 << OCIE1D) | (0 << OCIE1A) | (0 << OCIE1B) | (1 << OCIE0A) | (0 << OCIE0B) | (0 << TOIE1) | (0 << TOIE0) | (0 << TICIE0);
65 PLLCSR=(0<<PCKE) | (0<<PLLE) | (0<<PLOCK);
72 ISR(TIMER0_COMPA_vect) {
76 static UCHAR s_s100 = 0;
84 if(++s_s100 > (
IV_1S/10)) {
90 if(g_et.
allow && g_et.
cnt >= gEcd()) {
174 if(bc ==
BC_DNUP && (!firstUp) && (!firstDn)) {
void TimerInit(void)
initialize timer resource period: 32µs
UINT volatile g_debouncer
UCHAR GetTenthSec(void)
interface to get the global tenth seconds
void sMov(UCHAR mov)
set minute overflow counter
BTN_CODE DecodeButton(void)
identify whether a (and which) button is pressed or not
UCHAR gMov()
return minute overflow counter
ISR(TIMER0_COMPA_vect)
compare match interrupt service for OCR0A