how to program timer2 in 8052 can any one give me the code for it
"... can any one give me the code for it"
Probably not. I don't have just one code for it, I have many codes that do different things and you didn't specify which of those things you want timer2 to do.