Hi everyone, I'm trying to interface the GSM to PIC16F628A. The GSM module runs on 3.3v I use PBP and this is the code
Include "modedefs.bas" ' Include serial modes
'Definitions
DEFINE OSC 4 'for 4 Mhz
'DEFINE OSC 8 'for 8 Mhz
DEFINE HSER_TXSTA 20h 'hardware assign
DEFINE HSER_RCSTA 90h '
DEFINE HSER_BAUD 9600 'for 9600 Baud rate
DEFINE HSER_SPBRG 12 '
DEFINE HSER_CLROERR 1 '
TRISB=%00000000
PORTB=%00000000
' Send signal tp PWON
HIGH PORTB.7
PAUSE 500
Low PORTB.7
PAUSE 3000
start:
HSEROUT ["AT",13] 'Send AT to modem followed by a CR
HSERIN 5000, start, [WAIT("OK")] ' wait 5sec to reply.
PAUSE 1000
goto start
End
The program simply return 'OK',how can I set it up so that I can see what the GSM is sending? Can I use PortC.6 to display the message va hyperterm?