how 2 intialize at89c51ed2 for spi communication with ds1306?
"is that better?"
A little better ;)
This may be considered better:
I do not think you are right when you say "here is my code". Code has comments. I see no comments in your post. It could therefore be deduced that you have not actually posted any code for us to view.
I do admit, however, that mine is way longer than yours.
ps I totally agree with the sentiments of your original post.