PIC18F1220 - Variables initialisation placement makes a change


Results 1 to 8 of 8

Threaded View

  1. #8
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default PIC18F1220 - Variables initialisation placement makes a change

    Hi All,

    Yup....initilisation....

    I declared an array:
    Code:
    ...
    RxBuffer VAR BYTE(18)
    ...
    and used it like this:

    Code:
    HSERIN 200,READ_SMS,[WAIT("+CMGR:"),WAIT(10),DEC4 RxSMSCode, STR RxBuffer\180\10]
    After having had a good fondue (and read all your comments), I finally pointed out where my mistake was hiding. And I don't mean to convince anybody here about the healthy benefits of swiss cheese (not for the liver but apparently for the eyes), but...there must be something

    The behaviour of the program is really confusing with this error. Some variables stay as declared an others have their value "randomly" changed.

    Arghhhh!! This one cost me hours....

    Thanks to All again
    Last edited by flotulopex; - 18th February 2021 at 22:13.
    Roger

Similar Threads

  1. Replies: 2
    Last Post: - 14th December 2020, 08:13
  2. SIM908 Initialisation
    By wpkeenan in forum GSM
    Replies: 0
    Last Post: - 22nd May 2014, 00:57
  3. PIC18F1220 locked up
    By eggman in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 8th April 2011, 15:11
  4. PIC18F1220 RA4 using PULSIN ?
    By Del Tapparo in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 30th June 2009, 00:10
  5. LCD - Blocks at Start-up/Initialisation
    By Rob in forum General
    Replies: 4
    Last Post: - 11th February 2005, 07:36

Members who have read this thread : 1

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