Pic18F4550 + SIMCOM SIM900D GSM/GPRS


Closed Thread
Results 1 to 39 of 39

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530

    Default Re: Pic18F4550 + SIMCOM SIM900D GSM/GPRS

    Hi tacbanon,

    I loaded your code from post 19 into a circuit here, and tested hserout with your settings. I couldn't seem to get anything out, unless I removed your brown out reset in the configs.

    If you change this line, does it help anything?

    ; __CONFIG _CONFIG2L, _PWRT_ON_2L & _BOR_ON_2L & _BORV_2_2L & _VREGEN_ON_2L
    __CONFIG _CONFIG2L, _PWRT_ON_2L & _BOR_OFF_2L & _VREGEN_ON_2L

    As a side note, for 115200 baud on earlier code, I had to use:
    'DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive
    'DEFINE HSER_TXSTA 20h ' Enable transmit, BRGH = 0
    'DEFINE HSER_CLROERR 1 ' Clear overflow automatically
    'DEFINE HSER_SPBRG 25 ' 115200 Baud @ 48MHz, 0.16%
    http://www.scalerobotics.com

  2. #2
    Join Date
    Sep 2009
    Posts
    755

    Default Re: Pic18F4550 + SIMCOM SIM900D GSM/GPRS

    Modem can draw up to 2A. So if you supply pic and modem from same power supply maybe voltage drops and lock your pic.

  3. #3
    Join Date
    Jun 2011
    Location
    Philippines
    Posts
    223

    Default Re: Pic18F4550 + SIMCOM SIM900D GSM/GPRS

    Quote Originally Posted by ScaleRobotics View Post
    Hi tacbanon,

    I loaded your code from post 19 into a circuit here, and tested hserout with your settings. I couldn't seem to get anything out, unless I removed your brown out reset in the configs.

    If you change this line, does it help anything?

    ; __CONFIG _CONFIG2L, _PWRT_ON_2L & _BOR_ON_2L & _BORV_2_2L & _VREGEN_ON_2L
    __CONFIG _CONFIG2L, _PWRT_ON_2L & _BOR_OFF_2L & _VREGEN_ON_2L

    As a side note, for 115200 baud on earlier code, I had to use:
    'DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive
    'DEFINE HSER_TXSTA 20h ' Enable transmit, BRGH = 0
    'DEFINE HSER_CLROERR 1 ' Clear overflow automatically
    'DEFINE HSER_SPBRG 25 ' 115200 Baud @ 48MHz, 0.16%
    Hello ScaleRobotics, That did it...yipee!
    Thanks to you and thanks to everyone in the forum..

    Regards,
    tacbanon

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts