I have question in context of debugging. On which line should I set breakpoint so that I can know how much time period Timer0 generate
Code:
#include<pic.h>
int Count=0;
void main(void)
{
TMR0=0; //TMR0 Initiation
T0CS=0; //Choosing to work with internal clk
T0SE=0; //Reacting on Low2High edge
PSA=0; //Choosing to work with a Prescaler
PS0=1;
PS1=1; //Prescaler value divides 256
PS2=1;
while(1)
{
while(!T0IF); //Stays here 256 times and then T0IF=1
T0IF=0; //Resetting the overflow flag
Count++; //Increasing by 1
if(Count==15)
{
Count=0; //when count reaches 15 - Resetting to 0
}
}
}