PIC10F202 Variable trouble


Results 1 to 23 of 23

Threaded View

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


    Did you find this post helpful? Yes | No

    Smile

    The 10F202 has only 24 bytes of SRAM (Data Memory). The System variables associated with PBP require 20 bytes - that leaves you with 4. (From the PBP manual "Several system variables, using about 24 bytes of RAM" - its only 20 for the 10F202)

    You can have 2 additional WORDS or 4 additional BYTES- that is it (you have 7 bytes defined). Can you reuse variables?

    EDIT - The PBP manual is great - read section 7.6. If you do not have nested Gosubs or they are not nested 4 deep you might be able to steal a byte or two from the stack array.
    Last edited by paul borgmeier; - 6th October 2006 at 04:26.
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

Similar Threads

  1. EEPROM Variables (EE_Vars.pbp)
    By Darrel Taylor in forum Code Examples
    Replies: 79
    Last Post: - 26th October 2012, 00:06
  2. problem with variable on PIC10f202
    By Samoele in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 26th October 2009, 17:29
  3. Variable PWM PIC18F2431
    By trr1985 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 12th June 2009, 06:03
  4. Help with sound command in 2 programs
    By hyperboarder in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th July 2007, 20:36
  5. Trouble with Serin2 and variable size
    By Ryan7777 in forum Serial
    Replies: 6
    Last Post: - 5th October 2006, 16:40

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