ZaeemAhmad
Junior Member level 2
I want to interface MATLAB (GUI) with AT89S51 uC to control the direction and angle of a bi-polar stepper motor. How should I proceed? The questions that I have in my mind include:
1. Can I send the no. of steps first in one byte of data, then another byte of data containing the direction data (CW or CCW)? How can I do this?
2. How should I write the assembly code so it receives these two bytes of data and stores them in separate registers?
1. Can I send the no. of steps first in one byte of data, then another byte of data containing the direction data (CW or CCW)? How can I do this?
2. How should I write the assembly code so it receives these two bytes of data and stores them in separate registers?