Phase stepper motor

1

  1. AC motors
  2. Three windings A, B, C
  3. When in different power-on sequence when the power supply to the windings, which can be realized reversing .
  4. To speed by the frequency of the electrical pulses to

Assembly code as follows:
Here Insert Picture Description

2

Here Insert Picture Description
Through the switch, to the P1 port transmitting different levels (above a ground to pull, then below 5V), and ultimately adjusting the duty cycle. P1 mouth reading, let P3.4 output.

  1. 2732 : 51 extended memory, A0-A11 are address lines, D0-D7 data lines, CE is the chip select signal, OE data output is allowed.
  2. 51 is : P2.0-P2.3 are four I / O, PSEN is extended to allow read-write memory, EA read-write memory or a peripheral.
  3. 51 microcontroller to transmit address with P0 and P2: P2 is the upper 8 bits of the address lines, P0 is the lower 8-bit address and data lines; P3 port interrupt and I / O multiplexing; Pl is simply an I / O port.
  4. 373 : data latch. P0 go walk address data 51, first data latch up, until the address is completely transmitted, the re-transmission of data

Assembly code as follows:

Here Insert Picture Description

Published 64 original articles · won praise 27 · views 5819

Guess you like

Origin blog.csdn.net/qq_43675371/article/details/104550309