I'm new to this racket i need help writng code to a BS2 stamp so that it will add each time it sees a high (low) on a certain pin.It must keep track and give total at the end.·
Have you been through the tutorial "What's a Microcontroller?"? That should show you the basics like responding to HIGHs and LOWs on pins. This is Basic that the Stamps use, so addition is just "A = A + 1". The Parallax Stamp Basic manual shows you how to use the editor and gives examples for declaring variables and the various types of variables (bytes and words).
"help" implies assistance. If you have something that you've done and it either doesn't work as expected or you don't understand something specific, post a message showing it and someone will try to help you. Be sure to use the [noparse][[/noparse] code ] and [noparse][[/noparse] /code ] tags to keep your formatting (without the extra spaces around the "code" and "/code").
Post Edited (Mike Green) : 12/8/2007 8:57:20 PM GMT
Comments
"help" implies assistance. If you have something that you've done and it either doesn't work as expected or you don't understand something specific, post a message showing it and someone will try to help you. Be sure to use the [noparse][[/noparse] code ] and [noparse][[/noparse] /code ] tags to keep your formatting (without the extra spaces around the "code" and "/code").
Post Edited (Mike Green) : 12/8/2007 8:57:20 PM GMT