Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Questions about C code for hardware delay

Status
Not open for further replies.
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..
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top