View Full Version : help me I need code Sim900 + PIC16F877A
intarapun
- 6th January 2013, 07:35
Help me
I need code Call phone and SMS
use PIC16f877A X = 4MHz
and SIM900 use = http://www.micro4you.net/product-SIM900GPRSModule-138527-1.html
6806
Thaks
intarapun
- 6th January 2013, 09:31
It code don't work
it's wrong...
---------------------------------------------------------------
DEFINE OSC 4
DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive
DEFINE HSER_TXSTA 24h ' Enable transmit, BRGH = 1
DEFINE HSER_SPBRG 25 ' 9600 Baud @ 4MHz, 0.16%
DEFINE HSER_CLROERR 1 ' Clear overflow automatically
TRISC = %01000000 'set portc.6 TX
CALL_PHONE : pause 2000
HSEROUT ["atd[000000000];",13] '00000000 = number
pause 2000
goto CALL_PHONE
end
----------------------------------
thank for help
Ioannis
- 7th January 2013, 11:31
I think you have to make sure that there is communication with the module.
Did you check that the module is responding?
Ioannis
intarapun
- 7th January 2013, 15:35
I can not check Module
I can use X = 4 MHz for buad rate 115200 bps ??
RX & TX is TTL level I can connect Module to PIC16F877A or module to max232 ??
thanks for help
sorry i bad eng
Ioannis
- 7th January 2013, 21:17
I am on a mobile phone and cannot check data sheet for you PIC but I thing you cannot use 115k with 4Mhz xtal.
As for the TTL level use it directly to Pic without max232.
Demon
- 8th November 2013, 01:57
Good job,I appreciate your work because i have the same problem,but your post solve my problem.Thanks for sharing information,your information increase my knowledge.
Then can you post your code to help him back?
Robert
Ioannis
- 8th November 2013, 08:32
Robert, I think you are a teaser, aren't you?
Ioannis
Powered by vBulletin® Version 4.1.7 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.