How to get .hex from this code??


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Wink

    Hi,

    Right ... definitly a Stamp dinausaur ...

    So just add at the progam top:

    B1 var Byte ' "B" stands for Byte, " W " for Word, ... in the Stamp language.
    B2 var Byte

    care must also be taken Stamp automatically resets variables to zero ... and PbP not !

    I prefer writing it like that for " little RAM " processors ... like my old 16C84s ... than include BSx inc Files ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  2. #2
    Join Date
    Jun 2009
    Posts
    5


    Did you find this post helpful? Yes | No

    Default

    thank you for all replys guys.

    after modification of code with:

    Code:
    include "bs1defs.bas"
    
    B1 VAR BYTE
    B2 VAR BYTE
    i was able to compile it.
    When i press the coresponding button, servo1 react, but it's bit slow.
    Servo2 doesn't react on button. It's just go full CW and then stop. And sometimes it buzzing.
    Aslo, when i want to turn servo1, servo2 is trying to move.
    But that's probably of shared power supply.
    I will try to rebuilt it.

  3. #3
    Join Date
    Jun 2009
    Posts
    5


    Did you find this post helpful? Yes | No

    Default

    Actually, all i had to ad to the code was just
    Code:
    include "bs1defs.bas"
    If i tried it with
    Code:
    B1 VAR BYTE
    B2 VAR BYTE
    i received an error: Redefinition of VAR

  4. #4
    Join Date
    Jun 2009
    Posts
    5


    Did you find this post helpful? Yes | No

    Default

    One more question. What about Fuses? What should i set for my for that project? I've got MPASM from Microchip.

Similar Threads

  1. Reading in Manchester code
    By brid0030 in forum Code Examples
    Replies: 0
    Last Post: - 10th March 2009, 21:55
  2. How much code space do PBP statements use.
    By Darrel Taylor in forum Code Examples
    Replies: 5
    Last Post: - 13th February 2009, 21:31
  3. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  4. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  5. Re-Writing IF-THEN-AND-ENDIF code?
    By jessey in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 18th August 2006, 17:23

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