Quadrature encoder SX/B example not working
CarlC
Posts: 29
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.
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
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."
·
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.
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
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