Professional Documents
Culture Documents
ARULANANTH.T.S
12/1/16
Washing
machine
ARULANANTH.T.S
12/1/16
Control flow
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16
CIRCUIT DIAGRAM
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16
Stepper Motor
Diagram
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16
12/1/16
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16
Step Angle
Step angle is defined as the minimum
degree of rotation with a single step.
No of steps per revolution = 360 / step
angle
Steps per second = (rpm x steps per
revolution) / 60
Example: step angle = 2
ARULANANTH.T.S
12/1/16
One Phase on
(Wave drive four step sequence)
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16
RELAY
12/1/16
RELAY
INTERFACI
NG WITH
8051
ARULANANTH.T.S
12/1/16
Program:
Write an ALP to rotate the stepper motor clockwise /
anticlockwise continuously with full step sequence.
MOV A,#66H
BACK: MOV P1,A
RR A
ACALL DELAY
SJMP BACK
DELAY: MOV R1,#100
UP1:
MOV R2,#50
UP:
DJNZ R2,UP
DJNZ R1,UP1
RET
Note: motor to rotate in anticlockwise use instruction RL A
instead of RR A
ARULANANTH.T.S
12/1/16
ORG 0000H
SETB P2.7
MOV A, #66H
MOV P1,A
TURN: JNB P2.7, CW
RL A
ACALL DELAY
MOV P1,A
SJMP TURN
CW:
RR A
ACALL DELAY
MOV P1,A
SJMP TURN
ARULANANTH.T.S
12/1/16
Step angle = 2
Steps per revolution = 180
For 90 rotation the no of steps is 45
ORG 0000H
MOV A, #66H
MOV R0, #45
BACK: RR A
MOV P1, A
ACALL DELAY
DJNZ R0, BACK
END
ARULANANTH.T.S
12/1/16
DC MOTOR
ARULANANTH.T.S
12/1/16
DC motor
DC MOTOR WORKING
ARULANANTH.T.S
12/1/16
H BRIDGE DC MOTOR
ARULANANTH.T.S
12/1/16
H BRIDGE
ARULANANTH.T.S
12/1/16
H BRIDGE
ARULANANTH.T.S
12/1/16
SW1
SW2
SW3
SW4
OFF
OPEN
OPEN
OPEN
OPEN
CLOCKWISE
CLOSED
OPEN
CLOSED
OPEN
ANTICLOCK
WISE
OPEN
CLOSED
OPEN
CLOSED
INVALID
CLOSED
CLOSED
CLOSED
CLOSED
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16
0H
MAIN:
SETB P1.0
; ENABLE
JNB P2.0 ,CLOCK ;CHECK THE CLOCK
CLR P1.1;INPUT 1
;COUNTER CLOCKWISE
SETB P1.2;INPUT2 ;
CLOCK:
SETB P1.1;INPUT 1
CLR P1.2;INPUT2
SJMP MAIN
END
; CLOCKWISE
ARULANANTH.T.S
12/1/16
DS12887 INTERFACING
WITH 8051
ARULANANTH.T.S
12/1/16
DS 12887:
ARULANANTH.T.S
12/1/16
DS 12887:
ARULANANTH.T.S
12/1/16
DS 12887:
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16
Memory:
128 bytes of non volatile ram
14 bytes of RAM ,for clock ,calender and
control register
114 bytes of NV-RAM
ARULANANTH.T.S
12/1/16
DS:
DATA STROBE
DS=READ
DS is connected to
RD of 8051
MOT is connected
to ground
MOT=GND
ARULANANTH.T.S
12/1/16
R/W:input pin
.MOT=GNDWrite signal
CS:
IRQ:
Output pin
Active low pin
It is in Bregister
ARULANANTH.T.S
12/1/16
SQW:
RESET:
Pin 18 is reset.It is an
input.
Active low pin
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16
REGISTER
MOV
TO REG
MOV X @R0,A
SECONDS AT
ADDR 0
MOV
A,#50H;SECONDS=50
OSC
MOVX @R0,A;SEND IT
R0,#0;
MOV
R0,#02;
MOV R0,#15H;
MOVX @R0,A;
MOV R0,#04;
MOV R0,#16H
MOVX @R0,A;
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16
1.
2.
3.
4.
5.
6.
7.
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S 12/1/16
Illumination of the red signal prohibits
any traffic
ARULANANTH.T.S
12/1/16
LAN Direction
NORTH
WEST
SOUTH
EAST
8051 Lines
LEDs
P3.2
D8-Stop
P3.3
D9-Listen
P3.4
D10-Go
P3.5
D11-Stop
P3.6
D12-Listen
P3.7
D13-Go
P1.0
D14-Stop
P1.1
D15-Listen
P1.2
D16-Go
P1.3
D17-Stop
P1.4
D18-Listen
P1.5
D19-Go
Note:MakeSW32toTrafficlabelmarkingposition
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16
ARULANANTH.T.S
12/1/16