Gaston
Member
i am working on nigel's led tutorial. the last part with the tables. i modified the table to run a unipolar stepper. it works fine. then i went to modify it to turn,delay,reverse,delay and repeat. i added a second delay because i had to shorten the first to gain speed on the motor. i named the secon delay delay2 and d1 d2 and delay_0 delay_2.i added the call delay2 at the top of the table right before addwf pcl,f. when i go to assemble the code it gives me an error symbol not previously defined ( delay2). i don't see where the original delay was defined anywhere. i know you have to declare a space in memory for a register like count and count b but i don't understand whats going on here.