Hello guys. A simple routine to utilize interrupt of timer 0 every 444 uSec isnt working. Following is the code. Could anyone plz help with trouble shooting it as after hours of wasting time on it I couldnt find fault.
Crystal = 4.194304 Mhz
void interrupt()
{
INTCON.T0IF = 0;
TMR0 = 227;
PORTA.F0 = ~PORTA.F0;
}
void main()
{
TRISA.F0 = 0; // Port A is output
TMR0 = 227;
INTCON = 0xA0;
OPTION_REG = 0x03; //Using prescaler of 16
for(;;
}
Crystal = 4.194304 Mhz
void interrupt()
{
INTCON.T0IF = 0;
TMR0 = 227;
PORTA.F0 = ~PORTA.F0;
}
void main()
{
TRISA.F0 = 0; // Port A is output
TMR0 = 227;
INTCON = 0xA0;
OPTION_REG = 0x03; //Using prescaler of 16
for(;;
}