Help
Advanced Member level 2
Re: C code (Delay)
hI,
1) OK
2) How to debug when stop at this line, which debugger will be use example this example:
{
||TR0 = 0; // insert breakpoint here
TH0 = 0x00;
TL0 = 0xFA;
TF0 = 0;
d++;
P1 = d;
TR0 = 1;
}
what we can debugger in this line??
3) I already change...
.
.
.
TMOD &= 0xF0;
TMOD |= 0x01;
EA=1;
ET0=1;
TH0 = 0x00; // CHANGE to D8F0
TL0 = 0xFA; //
TF0 = 0;
.
.
.
TH0 = 0x00; // CHANGE to D8F0 = 55536 (10ms)
TL0 = 0xFA; //
TF0 = 0;
d++;
P1 = d;
TR0 = 1;
}
Why don't changed any thing (time delay)??
4) i define the Timer0 and see the min time, max time, and avg time
Q: If we want to know the output result when changing the statement/value, how we can going to know it??
Thank You..
hI,
1) OK
2) How to debug when stop at this line, which debugger will be use example this example:
{
||TR0 = 0; // insert breakpoint here
TH0 = 0x00;
TL0 = 0xFA;
TF0 = 0;
d++;
P1 = d;
TR0 = 1;
}
what we can debugger in this line??
3) I already change...
.
.
.
TMOD &= 0xF0;
TMOD |= 0x01;
EA=1;
ET0=1;
TH0 = 0x00; // CHANGE to D8F0
TL0 = 0xFA; //
TF0 = 0;
.
.
.
TH0 = 0x00; // CHANGE to D8F0 = 55536 (10ms)
TL0 = 0xFA; //
TF0 = 0;
d++;
P1 = d;
TR0 = 1;
}
Why don't changed any thing (time delay)??
4) i define the Timer0 and see the min time, max time, and avg time
Q: If we want to know the output result when changing the statement/value, how we can going to know it??
Thank You..