home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0020 - 0029 / ibm0020-0029 / ibm0028.tar / ibm0028 / CUPL30-4.ZIP / STEPPER.SI < prev    next >
Encoding:
Text File  |  1986-11-10  |  4.4 KB  |  81 lines

  1. Name      Stepper;
  2. Partno    CA0024;
  3. Date      10/10/86;
  4. Rev       01;
  5. Designer  Woolhiser;
  6. Company   Personal CAD Systems, Inc.;
  7. Assembly  None;
  8. Location  None;
  9. Device    p19r6t;
  10.  
  11. /****************************************************************/
  12. /*                                                              */
  13. /* Stepper Motor Controller                                     */
  14. /*                                                              */
  15. /* Memory mapped stepper motor controller interfaced to the     */
  16. /* 8048 single chip micro processor.  Generates either full     */
  17. /* or half step sequences for a unipolar drive stepper motor.   */
  18. /* A high current buffer is required to drive the motor coils.  */
  19. /*                                                              */
  20. /*         Half Step Control Sequence Table                     */
  21. /*                                                              */
  22. /*              Step    Q0  Q1  Q2  Q3                          */
  23. /*               1       1   0  1   0                           */
  24. /*               2       1   0  0   0                           */
  25. /*            v  3       1   0  0   1   ^                       */
  26. /* Clockwise  v  4       0   0  0   1   ^  Counterclockwise     */
  27. /* Rotation   v  5       0   1  0   1   ^  Rotation             */
  28. /*            v  6       0   1  0   0   ^                       */
  29. /*            v  7       0   1  1   0   ^                       */
  30. /*               8       0   0  1   0                           */
  31. /*               1       1   0  1   0                           */
  32. /****************************************************************/
  33. /* Allowable Target Device Types :  PALT19R6                    */
  34. /****************************************************************/
  35.  
  36. ORDER:    STEP_CLK,%1,!COE,%1,!ALE,%1,A11..8,DB7..0,%2,
  37.     !Q3..0,%1,!COMPLETE,%1,!STATUS;
  38.  
  39. VECTORS:
  40. $msg"                               !  ";
  41. $msg"      S                        C  ";
  42. $msg"      T                        O !";
  43. $msg"      E                        M S";
  44. $msg"      P                        P T";
  45. $msg"      - ! !                    L A";
  46. $msg"      C C A AAAADDDDDDDD  !!!! E T";
  47. $msg"      L O L 11  BBBBBBBB  QQQQ T U";
  48. $msg"      K E E 109876543210  3210 E S";
  49. $msg"      ----------------------------";
  50.            P x x xxxxxxxxxxxx  1010 1 x   /* Preload to state STEP1 */
  51.            0 0 x xxxxxxxxxxxx  HLHL H N   /* Check preload          */
  52.            C 0 0 000000000000  HLHL H Z      /* Hold while 8048 runs   */
  53.                       /* in mem locations 0-7FF */
  54.            C 0 1 000000000000  HLHL H Z      /* ALE inactive           */
  55.            0 0 1 111111110000  HLHL H Z      /* Address Shows next cmd */
  56.            0 0 0 111111110000  HLHL H Z      /* Full Step Up Command   */
  57.            C 0 0 111111110000  LHHL L Z      /* Full Step Up Command   */
  58.            0 0 1 111111110000  LHHL L Z   /* ALE inactive           */
  59.            0 0 0 111111110100  LHHL L L      /* Read Status Command    */
  60.            0 0 1 111111110100  LHHL L L   /* ALE inactive           */
  61.            0 0 1 111111110000  LHHL L L   /* Address Shows next cmd */
  62.            0 0 0 111111110000  LHHL L Z   /* Full Step Up Command   */
  63.            C 0 0 111111110000  LHLH L Z   /* Full Step Up Command   */
  64.            C 0 0 111111110000  HLLH L Z   /* Full Step Up Command   */
  65.            0 0 1 111111110000  HLLH L Z   /* ALE inactive           */
  66.            0 0 1 111111110010  HLLH L Z   /* Address Shows next cmd */
  67.            0 0 0 111111110010  HLLH L Z   /* Half Step Up Command   */
  68.            C 0 0 111111110010  HLHH L Z   /* Half Step Up Command   */
  69.            0 0 1 111111110010  HLHH L Z   /* ALE inactive           */
  70.            0 0 1 111111110011  HLHH L Z   /* Address Shows next cmd */
  71.            0 0 0 111111110011  HLHH L Z   /* Half Step Down Command */
  72.            C 0 0 111111110011  HLLH L Z   /* Half Step Down Command */
  73.            0 0 1 111111110011  HLLH L Z   /* ALE inactive           */
  74.            0 0 1 111111110001  HLLH L Z   /* Address Shows next cmd */
  75.            0 0 0 111111110001  HLLH L Z   /* Half Step Down Command */
  76.            C 0 0 111111110001  LHLH L Z   /* Full Step Down Command */
  77.            C 0 0 111111110001  LHHL L Z   /* Full Step Down Command */
  78.            C 0 0 111111110001  HLHL L Z   /* Full Step Down Command */
  79.                       /* Returns to STEP1       */
  80.  
  81.