dear friends
i want to interface M1206B gsm modem with pic 16f877a.modem with pc ok.i can send sms using hyperterminal.pc with pic ok i can display "at"
but pic and modem not suport.i have chang baundrate but donot work.i have find som post but i can't do it.please help me
thank you


' Initialization
TRISB=%00000000
PORTB=%00000000

'Definitions
DEFINE OSC 4
DEFINE HSER_TXSTA 20h
DEFINE HSER_RCSTA 90h
DEFINE HSER_BAUD 2400
DEFINE HSER_SPBRG 25

BEGIN:
PORTB = 0
HIGH PORTB.7
PAUSE 1000
LOW PORTB.7
HIGH PORTB.6
HSerout ["AT",13,10] 'TEST COMMUNICATION
HSERIN 5000,begin,[WAIT("OK")]
HIGH PORTB.5
PAUSE 500
GOTO begin

'END
End