Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/08/02 08:27
Read: times


 
#28826 - RE: selecting a ram location with offset
hi jose;
why not do this:
;assume stepper motor codes are in code memory from z to z+7
;function motor_out receives parameters in acc and b.
;b contains motor number(0 to 7)
;acc contains code offset(0 to 7)
;stepper motors are mapped in PDATA from 0
;to 7 in stepper_page
motor_out:
mov r0,b
mov p2,#stepper_page
mov dptr,#z
movc a,@a+dptr
movx @r0,a
ret
this simply outs the code.you can call
delays for speed,pass offsets in steps of 1/2 to issue half.full step,call them in inceasing/decreasing order for direction.

regards
pranav


List of 15 messages in thread
TopicAuthorDate
selecting a ram location with offset            01/01/70 00:00      
RE: selecting a ram location with offset            01/01/70 00:00      
RE: selecting a ram location with offset            01/01/70 00:00      
RE: selecting a ram location with offset            01/01/70 00:00      
RE: selecting a ram location with offset            01/01/70 00:00      
RE: selecting a ram location with offset            01/01/70 00:00      
RE: Andy            01/01/70 00:00      
RE: Andy            01/01/70 00:00      
RE: Andy            01/01/70 00:00      
RE: selecting a ram location with offset            01/01/70 00:00      
RE: Andy            01/01/70 00:00      
RE: selecting a ram location with offset            01/01/70 00:00      
the previous one was for Peter Dannegger            01/01/70 00:00      
RE: selecting a ram location with offset            01/01/70 00:00      
RE: selecting a ram location with offset            01/01/70 00:00      

Back to Subject List