Hello, I would like to know how can i use delays in my program as there is no inbuilt delay for 89c2051. i want to know how can i decide delay timing when I am using 12 MHZ external crystal
That depends on what you mean by "work"...?
In terms of giving a predictable delay, NO - it will not work!
The reason - and the solution - is given here: www.8052.com/.../162556
If you do continue to do this in 'C', you should declare the loop counter as volatile