Hi Robert (et al)
That was my first thought as well, I looked at the asm when I compiled the small PBP program, extracted it and tried to run, got a bunch of errors, thought. . .Ummmmm that must not be ok to do ;-) Is that something that should have worked just fine? Is it as easy as slapping asm in front of the cut/paste of code and following with an endasm statement? if so, then I will try again.
to be fair, I stopped there.
As for your reply Dwight, i hear ya loud and clear on that one, i guess i looked at the "i really don't want to learn ASM unless i have to and if someone could quickly lend a hand then i thought, what the hey". I equate it to me writing an excel macro for some acquaintances to make their life easier, i am good at that and for them to even attempt it would take quite a while and unless they wanted to learn macros all that would be accomplished is that 2 people put effort in (as they would most likely fail without the dedicated time spent) that all said, again, i understand what your saying and take no issue with your thinking. . . .how could I. . .your right :-) but to put the "this john guy is a lazy bum" thought to rest (slightly). . .In the past month I have learned PIC-Basic (for the most part anyway), developed an understanding of stepper motor control, gathered a basis understanding of PIC MCU's, and the related electronics components (caps, pots, resistors, 7805's, 555 timers, etc . . .). . . . .I guess, at the end of the day, asm just fell to the bottom of my list. Just came up with what i think is a marketable idea and am equally caught up in design issues (mostly around casting parts in composites without air bubbles and such, but that is a differnet thread)
The real issue is that I am using the counting of encoder feedback vie asm interrupts to track my stepper motors and seem to be unable to (unless i slow the motors down quite a bit) to stop at exactly the right spot where my encoder signals hit 1600 (one full rotation of the stepper motor). I track the steps and find my motor stopping at 1605 or 1606 or. . . .but not at 1600. If I slow the motor down using 1/4 1/8 or 1/16 steps I am spot on, once I get my rpm in the 200 rpm range on single step I seem to be missing steps. this is where I was thin=king that my "if encoder signals >= 1600 then " loop would be better suited for asm, maybe that would remove the lag and allow me to speed up the motor a bit without a.
i will take a look at the asm tutorial that you sent Alan, thanks for that. . . .thanks again all
Bookmarks