Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4931

generating few delays using timer 1

$
0
0
void Interrupt(){
if (TMR1IF_bit){
TMR1IF_bit = 0;
TMR1H = 0x0B;
TMR1L = 0xDC;
sec2++;
sec3++;
sec4++;
}
}

whenever i use those variables to make a different delays just 1 delay works only,ex.if i made sec2 for 10 seconds n sec3 for 15 sec just the 10seconds only works for both of them

Viewing all articles
Browse latest Browse all 4931

Latest Images

Trending Articles



Latest Images