My circuit works in Proteus but it didn't work on bread board. I share my circuit and software and can someone explain to me about calculating interruption types.
#include "C:\Documents and Settings\Tunahan\Desktop\deneme\main.h"
#use delay (clock=4000000)
#use fast_io(b)
int i=0;
//****************** Timer0 Kesmesi *****************************
#int_timer0 // Timer0 kesmesi
void timer0_kesme () // Kesme fonksiyonu ismi
{
set_timer0(60); // TMR0 değeri belirleniyor
i++; // i değeri 1 arttırılıyor
if (i==10) // i değeri 10'a eşitse RB0 çıkışı lojik-1 olsun
output_high(pin_b0);
if (i==20) // i değeri 20'ye eşitse RB0 çıkışı lojik-1 olsun ve i değeri sıfırlansın
{
output_low(pin_b0);
i=0;
}
}
Last edited by orhanli1 on Fri Jul 09, 2010 5:07 am; edited 1 time in total
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Thu Jul 08, 2010 2:16 pm
Use a free file upload service that doesn't have "Russian Brides" all over
it. I suggest ImageShack: http://imageshack.us/
Also, post a schematic, not a Proteus file. Many of us don't have Proteus.
If you have a program, post it here in the forum. But make it be short.
We don't want to look at a large program.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum