ecp2036 assignment 2008
TRANSCRIPT
-
8/2/2019 ECP2036 Assignment 2008
1/15
ECP2036 Microprocessor Systems and Interfacing 1
ECP2036
Microprocessor System &
Interfacing
An 8051-based Garage Door Controller
Assignment3rd Trimester 2007/2008
-
8/2/2019 ECP2036 Assignment 2008
2/15
ECP2036 Microprocessor Systems and Interfacing 2
General Information
Group project (7-8 students per group)
Total: ~12 groups
Date released: Week 4 Deadline: Week 12
Presentation: Week 13
Mode of Submission:
Garage Door Controller + report
Assessment Marks : 15%
-
8/2/2019 ECP2036 Assignment 2008
3/15
ECP2036 Microprocessor Systems and Interfacing 3
Objective
The objective of this assignment is to allow students to gain
practical experience in designing an 8051-based hardware
system.
Gain experience of assembly language programming& hardware construction.
Appreciate the importance
of coordinated teamwork
and project management.
Appreciate the nature of systems design
-
8/2/2019 ECP2036 Assignment 2008
4/15
ECP2036 Microprocessor Systems and Interfacing 4
Project activities
Project activities involve:
Hardware design and construction
C circuit board
DC motor
Push buttons
Switches and sensor
Power supply
Etc
-
8/2/2019 ECP2036 Assignment 2008
5/15
ECP2036 Microprocessor Systems and Interfacing 5
PresentationA short presentation
(max. 10 min) has to be performed before the demo.
Describe the hardware system and the
program flowchart
Discuss the problems encountered andwhat you have learnt in this project Demonstration (accuracy and speed)** Q&A
Scope of presentation Introduce group members and job distributions
Describe the overall design and your special strategies andfeatures
**some mathematic expressions will be tested on the spot!!
-
8/2/2019 ECP2036 Assignment 2008
6/15
ECP2036 Microprocessor Systems and Interfacing 6
Report Format(Max. 15 pages, excluding appendix)
1. Project Overview
2. Design Considerations & Schematic Diagrams
3. Algorithm and Flowchart (not the program listing!)
4. Additional features (optional)
5. Conclusion
6. Appendix (program listing,
datasheets, etc.)
-
8/2/2019 ECP2036 Assignment 2008
7/15
ECP2036 Microprocessor Systems and Interfacing 7
Assessment Scheme
(15 marks)Report Marks: 10 %
Demo Marks: 10 %
Program Marks: 20 %Hardware Marks: 20 %
Effort Marks: 20 %
Result Marks(accuracy+speed) : 20 %
Total: 100 %
-
8/2/2019 ECP2036 Assignment 2008
8/15
ECP2036 Microprocessor Systems and Interfacing 8
Functional Block Diagram
+ 5 V VoltageRegulator
8051
C
DC motor
Main Supply
P1
P0
Push buttons (up,
down and stop)
Two limit
switches and onephotoelectric
sensor
P2
-
8/2/2019 ECP2036 Assignment 2008
9/15
ECP2036 Microprocessor Systems and Interfacing 9
Connections for reset and Crystal oscillator
1P1.0 40 VCC
39
0
P0.0 (AD0)2P1.1
3P1.2 38 P0.1 (AD1)
4P1.3 37 P0.2 (AD2)
5P1.4 36 P0.3 (AD3)6P1.5 35 P0.4 (AD4)
7P1.6 34 P0.5 (AD5)
8P1.7 33 P0.6 (AD6)
9RESET 32 P0.7 (AD7)
10(RxD) P3.0
11(TxD) P3.1 30 ALEE
28 P2.7 (A15)14(T0) P3.4 27 P2.6 (A14)
15(T1) P3.5 26 P2.5 (A13)
25 P2.4 (A12)
24 P2.3 (A11)
18XTAL2 23 P2.2 (A10)
19XTAL1 22 P2.1 (A9)
20VSS 21 P2.0 (A8)
12(INT0) P3.2
13(INT1) P3.3
16(WR) P3.6
17(RD) P3.7
29 PSEN
31 EA8051
12MHz
33pF
8K2
Push
Button
100R 10uF
5V
5V
-
8/2/2019 ECP2036 Assignment 2008
10/15
ECP2036 Microprocessor Systems and Interfacing 10
Design Tip: 9V to 5V
voltage regulation
0.1uF10uF10uF 0.1uF
7 ~ 12V Input
IN4002
7805
1
2
3
+5V, Regulated
7805
Diode Capacitor
-
8/2/2019 ECP2036 Assignment 2008
11/15
ECP2036 Microprocessor Systems and Interfacing 11
Design Tip: Push Button
(Micro switch)Button + LED
LXBX Button/LED 0 = Pressed/On
A button can be accompanied by a LED indicator.
Schematic Diagram
LX
3mm
LED
BX
P1.X
+5V
8051 C LED Button
1k
-
8/2/2019 ECP2036 Assignment 2008
12/15
ECP2036 Microprocessor Systems and Interfacing 12
Switches connections
+5V
R1 = 10K
Limit switch 2, LS2
Limit switch 1, LS1
P0.1
P0.0
R2 = 10K
+5V
-
8/2/2019 ECP2036 Assignment 2008
13/15
ECP2036 Microprocessor Systems and Interfacing 13
Photoelectric sensor
PS1
P0.2
-
8/2/2019 ECP2036 Assignment 2008
14/15
ECP2036 Microprocessor Systems and Interfacing 14
Relay and motor connections
M
+12V
D1
P2.0 P2.1
R5 = 3.3K R6 = 3.3K
2N3904Or
2N2222
2N3904Or
2N2222
Motor
Relay 1 Relay 2
-
8/2/2019 ECP2036 Assignment 2008
15/15
ECP2036 Microprocessor Systems and Interfacing 15
END