The Godfather talking
You can run, but you can't hide.
Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 23, 2024, 12:01:25 12:01


Login with username, password and session length


Pages: [1]
Print
Author Topic: BENQ GSM Modem to MCU(beginner)  (Read 4353 times)
0 Members and 1 Guest are viewing this topic.
MicroBox
Junior Member
**
Offline Offline

Posts: 35

Thank You
-Given: 11
-Receive: 0


« on: September 23, 2010, 04:30:05 16:30 »

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
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?
Logged
falcon _bd
Active Member
***
Offline Offline

Posts: 139

Thank You
-Given: 66
-Receive: 117


falconbd.com


WWW
« Reply #1 on: October 13, 2010, 09:30:38 09:30 »

Yes you can use portC.6 to send data to rs232 port.
or you can connet the TX , RX pin of MCU directly to hyperterminal  vai MAX232 pin
Logged

Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC