Shop OBEX P1 Docs P2 Docs Learn Events
REQUEST FOR INPUT - SX/B Help file — Parallax Forums

REQUEST FOR INPUT - SX/B Help file

BeanBean Posts: 8,129
edited 2007-04-19 19:30 in General Discussion
Do you know of any error or omissions in the SX/B help file ?
We are working on getting it up to date.

I would appreiciate any input you may have.

Thanks,

Bean.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"Educate your children to self-control, to the habit of holding passion and prejudice and evil tendencies subject to an upright and reasoning will, and you have done much to abolish misery from their future and crimes from society"

Benjamin Franklin
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
www.hittconsulting.com
·

Comments

  • John BondJohn Bond Posts: 369
    edited 2007-04-18 08:44
    Hi Bean

    I've found the SX help file error free. There was a minor typo in one of the example files but I can't find it now.

    A suggestion though - there are many more examples in the help file than you show under the example heading, stuff like i2c, For-Next, Gosub·etc etc. I find refering to these very helpful. Would it be worthwhile including them with the other examples?

    Kind regards from the Dark Continent
    John Bond

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
  • RobotWorkshopRobotWorkshop Posts: 2,307
    edited 2007-04-18 18:06
    Hello,

    I've found that the existing SX/B help file has been an excellent resource. A few things that would be nice to add though:

    - Add an explaination in the SX/B style guide regarding subroutine and function definitions. It doesn't really specify what the #'s mean after the name when they are defined. I believe it was one of the first SX/B questions I had asked on this forum.

    - Add a little more details (and perhaps examples) for the different TIMER modes besides the PWM mode.

    - Possibly a couple small examples on how the I2C commands are used.

    - If someone has already made a table of NOTE vaules for use with the sound command adding that matrix would be nice.

    - Matrix of resonator, crystal, etc. settings to help people choose what OSC setting to pick.

    - Note regarding SERIN and SEROUT and when oddball baudmode settings may be required

    - Perhaps pull some things from the "BEST threads index" and include content from them where it makes sense.

    That's about it...

    Robert
  • RobotWorkshopRobotWorkshop Posts: 2,307
    edited 2007-04-18 18:10
    One more thing....

    Depending on what is found out about the simulator something may want to be noted about the way the TRIS acts on the SX48 after a LOW command is used. It has been discussed at the thread below:

    http://forums.parallax.com/forums/default.aspx?f=7&m=183046

    Robert
  • BeanBean Posts: 8,129
    edited 2007-04-19 01:07
    Robert,
    Thanks for the suggestions. I'm looking more for error and/or omissions. We're not doing any major changes. (At least "I'm" not).

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "Educate your children to self-control, to the habit of holding passion and prejudice and evil tendencies subject to an upright and reasoning will, and you have done much to abolish misery from their future and crimes from society"

    Benjamin Franklin
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    www.hittconsulting.com
    ·
  • Capt. QuirkCapt. Quirk Posts: 872
    edited 2007-04-19 05:16
    Examples \ SX/B \ I2C.SXB; No formaters listed for the·WATCH command? I thought the I2C device would be listed as a UBIN?

    Hope this helps

    Is PJV's MultiThread being included? and did you finish your wrist (aka wii )·controller for a BOE-BOT?

    Post Edited (Capt. Quirk) : 4/19/2007 5:21:35 AM GMT
  • JonnyMacJonnyMac Posts: 9,214
    edited 2007-04-19 19:30
    WATCH is now an SX/B keyword; if you use it without formatters you'll get decimal output and the bit setting will be determined by your variable. To use it with formatters you have to convert it to an inline Assembly statement.

    Decimal (SX/B controlled) output:

    WATCH tmpB1.0         ' becomes WATCH tmpB1.0, 1, UDEC
    WATCH tmpB1           ' becomes WATCH tmpB1, 8, UDEC
    WATCH tmpW1           ' becomes WATCH tmpW1, 16, UDEC
    



    User controlled formatting:

    \ WATCH tmpB1.0, 1, UBIN
    \ WATCH tmpB1, 8, UBIN
    \ WATCH tmpW1, 16, UHEX
    



    This update came after the creation of the current help file, hence the Declarations page should be updated and WATCH should be added to the list of keywords in that index as well.
Sign In or Register to comment.