Clock/Timer program in SX-Key v3.10 won't compile.
djmullen
Posts: 10
I've just gotten the $99·SX-Key package and I'm having a lot of fun with it, but I've run into one snag.· I'm trying to compile the Clock/Timer program that is found in the "Help/SX/B Help/Example Projects" directory and it won't work.· I get this error:
clock-timer01.SXB[noparse][[/noparse]116] Line 116, Error 8, Pass 1: INVALID PARAMETER "DigMap"
Line 116 is in this group, in the line that·states "READ DigMap + digPntr, DigCtrl···· 'update digit control"
Update_Segs:
· Segs = %00000000····························· ' blank segments
· READ DigMap + digPntr, DigCtrl··············· ' update digit control
· Segs = display(digPntr)······················ ' output new segments
DigMap·appears about 24 lines down, as a label for some data statements:
DigMap:········································ ' digit select map
· DATA· %11111110
· DATA· %11111101
· DATA· %11111011
· DATA· %11110111
Does anybody have any idea why I get this error?
clock-timer01.SXB[noparse][[/noparse]116] Line 116, Error 8, Pass 1: INVALID PARAMETER "DigMap"
Line 116 is in this group, in the line that·states "READ DigMap + digPntr, DigCtrl···· 'update digit control"
Update_Segs:
· Segs = %00000000····························· ' blank segments
· READ DigMap + digPntr, DigCtrl··············· ' update digit control
· Segs = display(digPntr)······················ ' output new segments
DigMap·appears about 24 lines down, as a label for some data statements:
DigMap:········································ ' digit select map
· DATA· %11111110
· DATA· %11111101
· DATA· %11111011
· DATA· %11110111
Does anybody have any idea why I get this error?
Comments
You need to either move the "DigMap" label AND data to a place before it's referenced (like right after the PROGRAM line).
Or download SX/B version 1.42.01 from the forum, unzip it, and put the overwrite the files in C:\Program Files\Parallax Inc\SX-Key v3.1\Compilers\SXB".
Let us know if that fixes it.
[noparse][[/noparse]edit] Here is a direct link to the update http://forums.parallax.com/attachment.php?attachmentid=0
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
"I reject my reality, and substitute yours." NOT Mythbusters
·
I'm rapidly falling in love with the SX chips and SX BASIC.
Wait until the next release that has WORD variables...
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
"I reject my reality, and substitute yours." NOT Mythbusters
·
Where can I find more information???
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Living on the planet Earth might be expensive but it includes a free trip around the sun every year...
Experience level:
[noparse][[/noparse] ] Let's connect the motor to pin 1, it's a 6V motor so it should be fine.
[noparse][[/noparse] ] OK, I got my resistors hooked up with the LEDs.
[noparse][[/noparse]X] I got the Motor hooked up with the H-bridge and the 555 is supplying the PWM.
[noparse][[/noparse] ] Now, if I can only program the BOE-BOT to interface with he Flux Capacitor.
[noparse][[/noparse] ] I dream in SX28 assembler...
/Bamse
Be patient, it will be worth it.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
"I reject my reality, and substitute yours." NOT Mythbusters
Post Edited (Bean (Hitt Consulting)) : 6/29/2006 10:29:52 PM GMT
You learn something new every day...
I sure wish them the best and I guess Parallax is super busy by now...
Anyway, I'm still learning this version of SX/B so I'm really not in a hurry...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Living on the planet Earth might be expensive but it includes a free trip around the sun every year...
Experience level:
[noparse][[/noparse] ] Let's connect the motor to pin 1, it's a 6V motor so it should be fine.
[noparse][[/noparse] ] OK, I got my resistors hooked up with the LEDs.
[noparse][[/noparse]X] I got the Motor hooked up with the H-bridge and the 555 is supplying the PWM.
[noparse][[/noparse] ] Now, if I can only program the BOE-BOT to interface with he Flux Capacitor.
[noparse][[/noparse] ] I dream in SX28 assembler...
/Bamse