Faizan Jawaid
Full Member level 3
- Joined
- Jul 17, 2008
- Messages
- 189
- Helped
- 23
- Reputation
- 46
- Reaction score
- 5
- Trophy points
- 1,298
- Location
- Karachi, Pakistan
- Activity points
- 2,336
My test prog is not working...The LED on b0 is blinking but LED on b1 is not blinking at all....Can anyone find where the mistake is pls? Prog is written in CCS C COMPILER
///////////////////TEST_INT///////////////////////////
#include <16F876.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(clock=4000000)
#int_timer1
void wave_timer()
{
output_toggle(pin_b1);
}
void main()
{
set_tris_b(0xff);
set_timer1(0);
setup_timer_1(T1_INTERNAL|T1_DIV_BY_8);
enable_interrupts(INT_TIMER1);
enable_interrupts(GLOBAL);
while(1)
{
output_toggle(pin_b0);
delay_ms(100);
}
}
///////////////////TEST_INT///////////////////////////
#include <16F876.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP
#use delay(clock=4000000)
#int_timer1
void wave_timer()
{
output_toggle(pin_b1);
}
void main()
{
set_tris_b(0xff);
set_timer1(0);
setup_timer_1(T1_INTERNAL|T1_DIV_BY_8);
enable_interrupts(INT_TIMER1);
enable_interrupts(GLOBAL);
while(1)
{
output_toggle(pin_b0);
delay_ms(100);
}
}