;**********************************************************************

; returns the value to send to the D/A converter to micro-step the motor

; the following basic code produced the values for the lookup table
; FOR i = 0 TO 32
;   x! = SIN(i * (3.14159 / 2!) / 32!)
;   y! = x! * 255
;   IF (y! > (INT(y!) + .499)) THEN
;     z% = INT(y!) + 1
;   ELSE
;     z% = INT(y!)
;   END IF
;
; '  PRINT y!, z%
;   PRINT z%
;
; NEXT i
			; call with the offset into the table in W
ustep	addwf	PCL,1	; add value in W to the program counter low and jump
 	retlw	d'0'	; to the proper location in the table (0-32)
 	retlw	d'13'	; return the value in W
	retlw	d'25'
 	retlw	d'37'
	retlw	d'50'
 	retlw	d'62'
	retlw	d'74'
 	retlw	d'86'
	retlw	d'98'
 	retlw	d'109'
	retlw	d'120'
 	retlw	d'131'
	retlw	d'142'
 	retlw	d'152'
	retlw	d'162'
 	retlw	d'171'
	retlw	d'180'
 	retlw	d'189'
	retlw	d'197'
 	retlw	d'205'
	retlw	d'212'
 	retlw	d'219'
	retlw	d'225'
 	retlw	d'231'
	retlw	d'236'
 	retlw	d'240'
	retlw	d'244'
 	retlw	d'247'
	retlw	d'250'
 	retlw	d'252'
	retlw	d'254'
 	retlw	d'255'
	retlw	d'255'

;**********************************************************************
