Converting Stamp code


Closed Thread
Results 1 to 2 of 2
  1. #1
    paul.mcallister's Avatar
    paul.mcallister Guest

    Default Converting Stamp code

    Hi all,

    I am a new to PIC Basic and I will no doubt ask a lot of really simple questions in the coming few months.

    I am trying to convert some Basic Stamp code to Pic Basic Pro and it is using two statements "Get" and "Put".

    I can't find any reference in the Pic Basic Pro manual other than these are reserved words. Can some one tell me the correct Pic Basic Pro commands to replace "Get" and "Put"

    Thanks, Paul

  2. #2
    PICtron's Avatar
    PICtron Guest


    Did you find this post helpful? Yes | No

    Default

    Paul,

    according to the Stamp Manual PUT and GET are used to write to or read from Scratch Pad RAM.

    Since I have never used a Stamp I don't know what the Scratch Pad RAM looks like. (The PIC doesn't have any)

    I would guess they have a chip on board (1wire or I2C) that has a few bytes of RAM. And those "special" commands are used to access that memory.

    I think there is no direct replacement for those commands, as the PICs internal Memory is handeled differently.

    But I'm sure if you would post a code example we would be able to help.

Similar Threads

  1. How much code space do PBP statements use.
    By Darrel Taylor in forum Code Examples
    Replies: 5
    Last Post: - 13th February 2009, 21:31
  2. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  3. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  4. Replies: 3
    Last Post: - 16th October 2007, 00:01
  5. using AND as an IF statement
    By dw_pic in forum mel PIC BASIC
    Replies: 27
    Last Post: - 8th June 2006, 18:05

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