sir,
I used pic 16f877a in programming.my compiler is MPLAB ICD3. i write a simple program to connect switch PORTD5. when the switch is on condition (RD5==0)(PORTB is used for out put) RB2=1;connect a led it is glow this is ok.this time i connect a buzzer in RB3=1;this buzzer is beep 30 seconds intervals .switch off condition all are off. How write this time based interval program please help me?