AD, DA, Steppermotor Interfacing
AD, DA, Steppermotor Interfacing
In the data communication systems it is often necessary to examine the “status” of the transmitter and receiver. It
is also necessary for CPU to know if any error has occurred during communication. The Block Diagram of 8251
Microcontroller allow the programmer to read above mentioned information from the status register any time
during the functional operation. Fig. 14.40 shows the format of status register.
Error Definitions:
Parity Error : At the time of transmission of data an even or odd parity bit is inserted in the data stream. At the
receiver end, if parity of the character does not match with the pre-defined parity, parity error occurs.
Overrun Error : In the receiver section received character is stored in the receiver buffer. The CPU is supposed to
read this character before reception of the next character. But if CPU fails in reading the character loaded in the
receiver buffer, the next the received character replaces the previous one and the OVERRRUN Error occurs.
Framing Error : If valid stop bit is not detected at the end each character framing error occurs.
All these errors, when occur, set the corrosponding bits in the status register. These error bits are reset by setting
ER bit in the command instruction.
converters with
microprocessor.
EOC signal is
called as the conversion delay of the ADC.
hundred
milliseconds in case of slow ADCs.
utput.
conversion till
the end of the conversion to get correct results. This may be ensured by as ample and hold circuit which
samples the analog signal and holds it constant for specific time duration. The microprocessor may issue a
hold signal to the sample and hold circuit.
ADC 0808/0809:
The digital to analog converters convert binary numbers into their analog equivalent voltages. The DAC
find applications in areas like digitally controlled gains, motor speed controls, programmable gain amplifiers,
etc.
resistor acts to
control the gain. One may not connect any external feedback resistor, if no gain control is required.
STEPPER MOTOR INTERFACING:
shafts. It employs
rotation of its shaft in terms of steps, rather than continuous rotation as in case of AC or DC motors.
To rotate the shaft of the stepper motor, a sequence of pulses is needed to be applied to the windings of
the stepper motor, in a proper sequence.
motor is equal to
its number of internal teeth on its rotor. The stator teeth and the rotor teeth lock with each other to fix a
position of the shaft.
Another popular
scheme for rotation of a stepper motor shaft applies pulses to two successive windings at a time but
these are shifted only by one position at a time. This scheme for rotation of stepper motor shaft is shown in
table2.
EXAMPLE : Design a stepper motor controller and write an ALP to rotate shaft of a 4 phase stepper motor in
clockwise 5 rotation and in anticlockwise 5 rotation