PDA

View Full Version : Converting Stamp code



paul.mcallister
- 8th February 2005, 05:37
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

PICtron
- 8th February 2005, 12:48
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.