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

About PIC Timer And Interrupt

$
0
0
Hello guys , the long_click function could not executed even I press the push button for long time ., always short_click function works
anybody advice ?



// ************************************************************//
/* PIC16F88 */


unsigned int volatile counter = 0 ;
bit flag ;

void Interrupt()
{
while (PORTB.F0==0 && INTCON.TMR0IF == 1) {
counter++ ;
INTCON.TMR0IF=0;...

About PIC Timer And Interrupt

Viewing all articles
Browse latest Browse all 4924

Trending Articles