Alarming problem


Closed Thread
Results 1 to 17 of 17

Hybrid View

  1. #1
    Early1's Avatar
    Early1 Guest

    Default Alarming problem

    Two years ago I built an alarm unit using the flash lab system with a 18F452 running at 20Mhz. It has been in the field on different construction sites since then and has worked flawlesly.

    I have built a second one using the flash lab again but with a 18F452 running at 40Mhz. The only other change is the LCD was a 2x16 and now is a 4x40 serial LCD. The keypad the LCD the menue sytem all work as expected but I can not get the GSM modem to send the text messages, which makes the alarm useless.

    Surely it can not be the change in chip speed that is causing the problem?

    I have tried serin2 serout2, hserin hserout, I have put delays in the instructions and pauses in the program. I have checked and changed about every AT command on the modem and nothing changes.

    I have used the LCD to debug the program and the PIC does not seem to be getting any replies from the modem, except the first one. I send AT to the modem the modem replies with OK and the program continues to the next instruction which also requires a reply from the modem and it just stops there.

    I have connected to the flash lab with hyperterminal and when I type in the expected replies the program runs and when I use hyperterminal connected to the modem it works as expected. They just will not talk to each other.

    ???????

    Steve
    Attached Images Attached Images  

  2. #2
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Smile

    Oops - After rereading your post, I have no idea - my apologies for the false hope

    Paul Borgmeier
    Salt Lake City, Utah
    USA
    Last edited by paul borgmeier; - 12th June 2006 at 20:24.

  3. #3
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    967


    Did you find this post helpful? Yes | No

    Default I am not sure if this helps you

    But, recently, I had a similar problem with the baud rate on a different chip. I had the prototype working consistently and everytime on every board I built. But, all the other chips I managed to program did not work. I thought I had bad chips and tried to reconfigure and play with the settings. Everytime the result was just the same. The very first chip(proto) worked well irrespective of the code changes, the others wouldn't. Finally, I narrowed it down to the baud rate. The divider count was off by 1 count. Since you said that you changed the clock to 40MHz, perhaps you could check on the baud rate settings. Perhaps the 40MHz is off???

    Jerson

  4. #4
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default

    Hi, Steve

    few weeks ago,I read on this forum the PLL clock of the PICs was not working so well ... and was very sensitive to power variations.

    ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  5. #5
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Does the new one work if you switch from 40MHz to 20MHz?
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  6. #6
    Early1's Avatar
    Early1 Guest


    Did you find this post helpful? Yes | No

    Default

    Thanks Guys

    I have come to the conclusion that faster is not necessarily better. I have read and re-read the 18F452 data sheet and my impression is that at 40Mhz I should be using a higher baud rate but years of using GSM modems at 9600 has taught me that this is a safe reliable connection speed.

    Bruce I have ordered a 20Mhz Flash Lab and in due course all will be revealed.

    Cheers

Similar Threads

  1. Problem with ASM IRQ using FSR0 on PIC18F252
    By mytekcontrols in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 11th March 2008, 20:48
  2. USART Problem , but don't know where, in pc? or in PIC?
    By precision in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th July 2007, 08:12
  3. Microcode Studio 18f2455 problem?????
    By volkan in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 21st May 2007, 21:04
  4. Hardware problem or what ?
    By Steve S. in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 4th March 2007, 21:39
  5. 1 slave 1 master 1 MAX232 1 problem ?
    By SuB-ZeRo in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 31st July 2005, 22:59

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