I am able to connect my sim900 gsm module with hyper terminal but I am not able to connect it with 89s52. Please help me to connect it.
then you need
micro <-> MAX232(equivalent) <-> GSM module
I did this but not works.Pls check my program i added before and help.
As pointed out by several posters your program fails to be attentive to if the modem responds with OK/ERROR to commands sent, and blindly ploughs forward. Suggest you try something simpler, and with a scope or analyzer, and confirm if the modem is responsive to some basic AT commands (ie one where it can respond immediately, and doesn't depend on carrier or SIM)
Get better at debugging so you can solve your own problems.
So maybe you did it wrong?
Again: what debugging (including hardware debugging) have you done?