1
- AC motors
- Three windings A, B, C
- When in different power-on sequence when the power supply to the windings, which can be realized reversing .
- To speed by the frequency of the electrical pulses to
Assembly code as follows:
2
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.
- 2732 : 51 extended memory, A0-A11 are address lines, D0-D7 data lines, CE is the chip select signal, OE data output is allowed.
- 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.
- 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.
- 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: