ECE 303 n 353 – UEL 3Laboratory Manual DEPARTMENT OF ECE, LPU, PHAGWARA (PUNJAB), INDIA. 1 Draft copy for adoption: LABORATORY MANUAL OF ECE 303 and 353 UEL 3 LAB Prepared at Lovely Professional University With Participation & Valuable contributions from Er. Surrender kumar Er. Jyotika Er. Saurab Reviewed and corrected by. Rajeev Kr Patial Sr lect., off. HOL, ECE (B. Id. 12301) OFF HOD ECE (Dean Labs ) (Vice Chancellor) (Chancellor)
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
ECE 303 n 353 – UEL 3Laboratory Manual
DEPARTMENT OF ECE, LPU, PHAGWARA (PUNJAB), INDIA. 1
Draft copy for adoption:
LABORATORY MANUAL OF ECE 303 and 353
UEL 3 LAB
Prepared at Lovely Professional University
With
Participation &
Valuable contributions from
Er. Surrender kumar Er. Jyotika
Er. Saurab
Reviewed and corrected by.
Rajeev Kr Patial
Sr lect., off. HOL, ECE (B. Id. 12301)
OFF HOD ECE
(Dean Labs ) (Vice Chancellor) (Chancellor)
ECE 303 n 353 – UEL 3Laboratory Manual
DEPARTMENT OF ECE, LPU, PHAGWARA (PUNJAB), INDIA. 2
ECE303 and ECE353: UEL 3
1. Interfacing and control of stepper motor using 8085 microprocessor.
2. Generation of delay in binary counting using 8085 microprocessor.
3. To implement a moving 7-segment display with suitable delay using 8085 microprocessor.
4. To realize a real time clock using 8085 microprocessor.
5. To develop program for discrete convolution and correlation.
6. To develop a program for computing DFT and IDFT in MATLAB.
7. To develop a program for computing circular convolution.
8. To develop a program for computing inverse Z-transform.
9. To develop a program for designing FIR filter in MATLAB.
10. To develop a program for designing IIR filter in MATLAB.
11. *To design and implement on a breadboard a circuit to perform Amplitude Modulation.
12. *To design and implement on a breadboard a circuit to perform Frequency Modulation, Phase Modulation.
ECE 303 n 353 – UEL 3Laboratory Manual
DEPARTMENT OF ECE, LPU, PHAGWARA (PUNJAB), INDIA. 3
PROGRAM -1 AIM Interfacing and control of stepper motor using 8085 microprocessor.
Apparatus required stepper motor(12 volts)
SAMPLE PROGRAM Interface a Stepper Motor to the 8085 microprocessor system and
write an 8085 assembly language program to control the Stepper Motor.
Block Diagram
SOFTWARE FOR STEPPER MOTOR CONTROL
As port A is used as an output port, control word for 8255 is 80H. Stepper Motor Control Program:
6000H Excite code DB 03H, 06H, 09H, OCH : This is the code sequence for clockwise
rotation
Subroutine to rotate a stepper motor clockwise by 360° - Set the counts:
MVI C, 32H : Set repetition count to 50ıο
START: MVI B, 04H : Counts excitation sequence
LXI H, 6000H : Initialize pointer
BACK1: MOV A, M : Get the Excite code
OUT PORTA : Send Excite code
CALL DELAY : Wait
INX H : Increment pointer
DCR B : Repeat 4 times
JNZ BACK l
ECE 303 n 353 – UEL 3Laboratory Manual
DEPARTMENT OF ECE, LPU, PHAGWARA (PUNJAB), INDIA. 4
Delay subroutine:
Delay: LXI D, Count
Back: DCX D
MOV A, D
ORA E
JNZ Back
RET
FLOWCHARTS
Stepper motor subroutine Delay routine
Conclusion A stepper motor is a digital motor. It can be driven by digital signal. Fig. shows
the typical 2 phase motor rated 12V /0.67 A/ph interfaced with the 8085 microprocessor system
using 8255. Motor shown in the circuit has two phases, with center-tap winding. The center
taps of these windings are connected to the 12V supply. Due to this, motor can be excited by
grounding four terminals of the two windings. Motor can be rotated in steps by giving proper
excitation sequence to these windings. The lower nibble of port A of the 8255 is used to
generate excitation signals in the proper sequence. These excitation signals are buffered using
driver transistors. The transistors are selected such that they can source rated current for the
windings. Motor is rotated by 1.80 per excitation.
PROGRAM - 4 AIM : TO Realize real time clock using 8085 microprocessor .
Sample program WAP to realize real time clock. Display seconds in data field, minutes
and hours in address field.
ALGORITHM
STEP 1: Initialize the data for seconds in
acc...
STEP 2: Initialize the data for minutes in L
reg. STEP 3: Initialize the data for hours in H
reg
STEP 4: Display the data in the display
ECE 303 n 353 – UEL 3Laboratory Manual
DEPARTMENT OF ECE, LPU, PHAGWARA (PUNJAB), INDIA. 9
field
STEP 5: Call proper delay of one second.
STEP 6: Increment the second by 01 and
compare it with the value 60
suitably if it is equal increment the
minute by one and compare it with
the value 24 suitably, if not for all
the above increment the second
Value and repeat the steps 4-5.
STEP7: Termination
PROGRAM
START: LXI H,0000H
MIN : MVI A,00H SEC: PUSH PSW
PUSH H PUSH H
CALL UPDDT POP H CALL UPDAD LXI D,FFFFH CALL DELAY CALL DELAY POP H POP PSW ADI 01H DAA CPI 60 JNZ SEC MOV A,L ADI 01H DAA MOV L,A CPI 60 JNZ MIN MVI L,00 MOV A,H ADI 01H DAA MOV H,A CPI 24H JNZ MIN JMP START HL T
ECE 303 n 353 – UEL 3Laboratory Manual
DEPARTMENT OF ECE, LPU, PHAGWARA (PUNJAB), INDIA. 10