calculation problem


Closed Thread
Results 1 to 3 of 3

Hybrid View

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


    Did you find this post helpful? Yes | No

    Smile

    Are you sure the error was not “ERROR: Unable to fit variable” instead of “fix the variable”? If it was “fit”, then you are most certainly using a PIC without enough RAM for all 110 bytes that you are requesting.

    Your code as is compiles fine using a 16F628 (224 bytes of RAM) as the target device but NOT with the 16F84A (68 bytes of RAM) as the target device. In the latter, I get the unable to fit error noted above. Check the data sheet for your PIC to see how much RAM is available. Please let us know.

    Good Luck,

    Paul Borgmeier
    Salt Lake City, Utah
    USA

  2. #2
    nicolelawsc's Avatar
    nicolelawsc Guest


    Did you find this post helpful? Yes | No

    Default

    thank you very much paul. Before this i use 16F84A (68 bytes of RAM) as the target device, and now change it to 16F877A and it can compile sucessfully..
    thanks again.

Similar Threads

  1. Calculation Problem - value goes to zero after 65
    By Tom Gonser in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 12th March 2010, 05:10
  2. problem using GOSUB under interrupt
    By fobya71 in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 5th March 2010, 19:52
  3. 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
  4. Microcode Studio 18f2455 problem?????
    By volkan in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 21st May 2007, 21:04
  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