Shop OBEX P1 Docs P2 Docs Learn Events
Quadrature encoder SX/B example not working — Parallax Forums

Quadrature encoder SX/B example not working

CarlCCarlC Posts: 29
edited 2006-02-13 05:09 in General Discussion
I cut and pasted the encoder example code from the SX/B help. Unfortunately it doesn't want to assemble. I'm not sure but it looks like table data has to be declared before it can be used with a READ command.

I tried moving the table declaration and can get to assemble the basic code, but I'm having program memory assignment problems.

Has the Basic compiler changed since the code was written? I'm using ver #3.10 of the SX Key.

Comments

  • CarlCCarlC Posts: 29
    edited 2006-02-08 23:42
    Seems to work fine if I move the DigCtrl table into the ISR just before it's referenced. It's kind of clumsy declaring it every time the ISR is run though.
  • BeanBean Posts: 8,129
    edited 2006-02-09 00:09
    Carl,
    Make sure you have the latest version of SX/B (1.42.01) I believe that problem was eliminated and the example should run as it is in the help file.
    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "SX-Video·Module" Now available from Parallax for only $28.95

    http://www.parallax.com/detail.asp?product_id=30012

    "SX-Video OSD module" Now available from Parallax for only·$49.95
    http://www.parallax.com/detail.asp?product_id=30015

    Product web site: www.sxvm.com

    "Ability may get you to the top, but it takes character to keep you there."
    ·
  • CarlCCarlC Posts: 29
    edited 2006-02-09 02:17
    Thanks Bean,

    I thought I had a relatively recent version as I installed it only a few months ago. I guess I must have grabbed the installer from an old computer on my network.
  • CarlCCarlC Posts: 29
    edited 2006-02-09 02:28
    I'm confused. I just downloaded and installed the latest SX Key software which is said to include 1.42 SX/B on Parallax's site yet I'm still getting the same error. I note that there is an exe in my Parallax folder called SXB which pops up a command window when I run it. It indicates that it's 1.42, but doesn't want to do anything useful. I'm guessing that it's called by the SXKey environment when I compile SX/B code.
  • BeanBean Posts: 8,129
    edited 2006-02-09 03:09
    Carl,
    You need to download version 1.42.01 from here:

    http://forums.parallax.com/attachment.php?attachmentid=0

    Unzip it and put the files in C:\Program Files\Parallax Inc\SX-Key 3.1\Compilers\SXB
    Allow the new files to overwrite the old ones.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "SX-Video·Module" Now available from Parallax for only $28.95

    http://www.parallax.com/detail.asp?product_id=30012

    "SX-Video OSD module" Now available from Parallax for only·$49.95
    http://www.parallax.com/detail.asp?product_id=30015

    Product web site: www.sxvm.com

    "Ability may get you to the top, but it takes character to keep you there."


    Post Edited (Bean (Hitt Consulting)) : 2/9/2006 3:13:14 AM GMT
  • PJMontyPJMonty Posts: 983
    edited 2006-02-13 05:09
    Carl,

    BTW, in the Sx-Key IDE "Help->About" box, you can click on the text that has the version number of the SX-Key IDE and each click will cycle between showing the version of the IDE itself, the version of SX/B it is calling, and the version of SXSim it is calling. It's the easiest way to find out the version numbers of the software that the IDE is using.
      Thanks, PeterM
Sign In or Register to comment.