Shop OBEX P1 Docs P2 Docs Learn Events
Clock/Timer program in SX-Key v3.10 won't compile. — Parallax Forums

Clock/Timer program in SX-Key v3.10 won't compile.

djmullendjmullen Posts: 10
edited 2006-06-29 21:47 in General Discussion
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?

Comments

  • BeanBean Posts: 8,129
    edited 2006-06-29 11:38
    The problem is that in SX/B version 1.42, the DATA must be defined in the program before it is used. The 1.42.01 update corrected this problem.

    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
    ·
  • djmullendjmullen Posts: 10
    edited 2006-06-29 15:55
    That worked! I downloaded the update and it compiles perfectly now. Thanks a lot!

    I'm rapidly falling in love with the SX chips and SX BASIC.
  • BeanBean Posts: 8,129
    edited 2006-06-29 16:32
    Your welcome...

    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
    ·
  • BamseBamse Posts: 561
    edited 2006-06-29 19:27
    Any idea on when the next release will be awailable ???

    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
  • BeanBean Posts: 8,129
    edited 2006-06-29 20:20
    With the Propeller needing documentation and the loss of John and Jon, I'm sure everyone at Parallax is very busy.

    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
  • BamseBamse Posts: 561
    edited 2006-06-29 21:47
    I didn't know that Jon and John started EFX-TEK...
    You learn something new every day... wink.gif

    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
Sign In or Register to comment.