The 8051 Microcontroller, Stewart and Miao, Prentice Hall, 2nd Ed.
Instructor: Dr. Enoch Hwang.
Office: BRNHL A303.
e-mail: ehwang@cs.ucr.edu.
Office hours: MF 8:10AM - 9:00AM, W 11:10AM - 12:00PM.
More detail and updated information on the web at
www.cs.ucr.edu/~ehwang.
Prerequisites: EE/CS120A.
Objective: To learn to design digital systems
at the register and processor levels focusing on
sequential logic circuits and emphasizing the use of modern CAD tools.
To learn about embedded systems and how to interface with them.
Topics:
(Numbers in parenthesis are Wakerly sections. Numbers in
square brackets are Vahid sections.)
- Sequential Logic.
- Introduction to sequential circuits (7.1)
- Latches. (7.2)
- Flip-Flops. (7.2)
- Finite-State Machine (FSM).
- Moore and Mealy models. (7.3).
- Analysis of sequential circuits:
Excitation equations. Next-state equations & tables. State diagrams. (7.3).
- Synthesis of sequential circuits:
State minimization. State encoding. Choice of memory elements. (7.4 - 7.7)[2.3.3].
- Sequential logic components.
- Registers (8.2), counters (8.4), RAMs (10.3)
-
FSM + Datapath [2.4].
- Register-transfer design [2.5].
- FSM with datapath (FSMD).
- Synthesis of FSMDs.
- Optimization:
Register sharing. Functional-unit sharing. Bus sharing. [2.6].
- Interfacing microcontrollers [4, 6].
- 8051,
Z80,
EZ80
- Addressing: Memories [5.4], I/O ports [6.3], Interrupts [6.4].
- LEDs, LCD [4.5], Keypad [4.6].
- Real-time clocks [4.9], UART [4.3], A/D, D/A converters [4.8].
Tests: Two midterms: Wed Apr 25 and Mon May 21. Final: Thursday June 14, 2001, 8:00AM - 11:00AM.
Grading: Homeworks 10%, Labs 30%, 2 Midterms @ 15% each, Final 30%. Must get at least 50% on two of the three tests to pass course.
Holidays: 5/28/01
Grades:
Grades.
If you do not want your grades to be posted on-line, please email me to let
me know. Otherwise, I will take your inaction to mean that you have given
me the approval to post your grades on-line.
Homeworks:
Solutions:
Labs:
Lab report form
Lab due date schedule
XS40 breadboard schematic
Draft versions of upcoming labs are found below
Lab 1a: Design using schematic capture
(do not have to do this but you should read it so you know what to do for 1b and 1c).
Lab 1b: Design using VHDL at the structural level
Lab 1c: Design using VHDL at the behavioral level
Lab 2: Behavioral VHDL design of an ALU
Lab 3: Finite state machine design of a 4-bit counter
Lab 4: FSM plus datapath design of a greatest common divisor
Lab 5: Microprocessor design
Lab 6: Interfacing the 8051 to 7-segment displays
Lab 7: Interfacing the 8051 to a keypad and 7-segment display
Lab Guidelines:
- You should plan to stay for the duration of your 4-hour scheduled
lab time. Labs are all posted on the web, so if you finish before
a due date, you should proceed to work on the next lab.
If it appears that students are leaving early, then measures may
be taken.
- Each lab assignment's grade will typically consist of your lab demo
(simulation and board), and your lab report (writeup, source code
and results).
- No late lab submissions will be accepted.
- Lab reports are due before the end of your scheduled lab time on
the date you are checked off for your demo. Use the report form
above. We will be using electronic turnin (see below).
- The TA's will not be available for help 15 minutes before the end
of each lab. This time is reserved for checking out completed labs.
- The students are required to work in groups of two. Students are
welcome to choose their own lab partners.
- The TA's will check out the Xilinx boards to each group when
required. Boards are only available during scheduled lab.
Student must check the boards back in when done, and must be
sure to sign the check in sheet. Students should also be sure
the TA records your score your lab demo.
- The Xilinx boards are pre wired. Please do not change any wiring
unless specifically instructed by the TA.
- You are required to go to the lab section you are registered in. If
you wish to change your lab section, this must be pre-approved by
the LECTURE TA.
- The TA's and Lab Assistants will be there to assist you in any problems
that you might face for the full four hours (except during the check
off time). Please feel free to approach any of them with
any problems or questions that you might have.
If you have any problems or questions please email cs120b-t@cs.ucr.edu.
One of the TA's will answer your question as soon as possible.
- Any suggestions to help us improve the lab will be welcomed.