karli
05-19-2008, 04:32 AM
·· My Parallax Propeller apprenticeship is only going into week-2.
···I've done all the lab exercises to this point in that manual and all
·· spin routines worked fine but the ShiftRightP9toP9.spin has got
·· me stunned.·· I entered it· via F10 into RAM just like its printed
·· on page 17. but when I run it I see P9 flash and then P8 comes on
·· and stays on. I modified·· waitcnt(clkfreq + cnt) so I could see it
·· run slower.· I can do a manual· outa[9..4]·:= %100000·· entry
·· (with a repeat on the end)· and shift the P9..P4 bits· and each LED
·· turns on per each entry.
·· when I change the last line·· to >>= 3 and run the original code
·· I get P9 to blink and the· P6 stays·ON.
·· any pointers as to what's happening here ?
·· Thanks,
·····karli.
···I've done all the lab exercises to this point in that manual and all
·· spin routines worked fine but the ShiftRightP9toP9.spin has got
·· me stunned.·· I entered it· via F10 into RAM just like its printed
·· on page 17. but when I run it I see P9 flash and then P8 comes on
·· and stays on. I modified·· waitcnt(clkfreq + cnt) so I could see it
·· run slower.· I can do a manual· outa[9..4]·:= %100000·· entry
·· (with a repeat on the end)· and shift the P9..P4 bits· and each LED
·· turns on per each entry.
·· when I change the last line·· to >>= 3 and run the original code
·· I get P9 to blink and the· P6 stays·ON.
·· any pointers as to what's happening here ?
·· Thanks,
·····karli.