Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

delay program

Status
Not open for further replies.
Dear Peter

in order to calculate the time delay you have to tell us what is the speed of your crystal oscillator that you use
 
For 8051's you should asume 12 clocks per instruction. So If you have 51 running @ 12Mhz, it gives you 1us per instruction. Just make a program that will have 1000 instructions to make 1ms delay. Use DJNZ and JMP instructions...
 
Hi Josephselim,Jay.slovak( nice photo by the way )and bmcculla

thanks for your support but i managed to do a one second delay using NOP instructions thank u again bye :D
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top