CS330/390: Microprocessors and Interfaces/Lab
(Spring 2005)







Instructors Prof. S.S.S.P. Rao
Computer Engineer Pankaj Siriah
Teaching Assistants Seetha Jayasankar Abhishek Sugandhi Poornachand Srinivas P Sanjeet Khaitan

Announcements

Midsem sample solutions have been uploaded, look in lecture log for link
USB and PCI lecture slides have been uploaded
Midsem conducted on Friday, 25th February, 2:30 - 4:30 in A1/A2
Quiz 1 sample solutions have been uploaded, look in lecture log for link
Regular Lab sessions have commenced from Jan 25.

Prerequisites

CS325: Computer Organisation and Design Course
CS395: Assembly Language Programming Lab

Course Description

Introduction to Microprocessor evolution.
Architectural features of 8/16/32 bit microprocessors.
Support components : Memories, Serial and Parallel Interfaces and standards,
Peripheral Controllers, DMA controllers,
Case Studies of commercially available components,
Selected Peripheral devices and their specifications,
Interface design exercises.
Designing with bitslice microprocessors,
Design examples.

References

R.Gaonkar, Microprocessor Architecture, Programming and Applications with the 8085, Penram International Publishing (India), 4th ed., 2000
Aditya P.Mathur, Introduction to Microprocessors, Tata McGraw Hill, 1989.
M.Rafiquzzam, Microprocessors and Microcomputer Based System, Harper and Row, 1984.
John Uffenbeck, Microcomputers and Microprocessors : The 8080, 8085, and Z-80, Programming Interfacing and Troubleshooting, Prentice Hall of India Pvt. Ltd., 2nd ed., 1991.
Kenneth Hintz and Daniel Tabak, Microcontrollers: Architecture, Implementation and Programming, McGraw Hill Inc., 1992.
A.K.Ray and K.M.Bhurchandi, Intel Microprocessors : Architecture, Programming and Interfacing, McGraw Hill Inc., 2000.

Lab Description

When the experiments/lab. is completed, it has to be demonstrated to the instructor/Pankaj Siriah/Tas.
If the Project is examined by Pankaj Siriah or Tas, they will give their feedback or recommendations to the Instructor on the same day either personally or through email giving student roll no. and the marks assigned for the experiment/lab.

Experiment 1
Using an 8085 processor and EPROMs and RAMs available in the lab., fabricate a small computer and execute the programme given to you and show the results on LED display.

Experiment 2a
Program the 8255 provided on the kit in:
Mode 0: Simple I/O mode and check the output using multimeter or oscilloscope. connect the output backs to input at the connector and display both the output and input.
Mode 1: (to be done in pairs) Program kit1 in Mode1 output (strobed mode) and kit2 in mode1 input. Now type data on kit1(data to be output) and display it on kit2(data received).

Experiment 2b
Mode 2: (to be done in pairs) Program both kits in Mode2 (bidirectional mode). Data typed on kit1 should appear on display of kit2 and vice versa.

Experiment 3
Implement a Digital Clock using the 8253 Timer to generate the clock tick of one second and the Interrupts provided on 8085 kit.

Experiment 4
(to be done in pairs) Program the 8251 USART chip on the kits to transfer data at 9600 baud. Data typed on kit1 should appear on display of kit2 and vice versa.

Experiment 5
Interface two 8-bit counters to the 8085 Kit.Load a given number into counter1 and clear counter2. Start the external clock to the counters. The clock decrements counter1 and increment counter2.When counter1 reaches ZERO it gives an interrupt to 8085 which in its Interrupt service routine reads the counter2 and displays the count.

Experiment 6
Implement experiment no.5 on an FPGA and demonstrate its working using a FPGA demo board.

Lab Project
Design and implement FPGA version of the 4 bit CPU

Hours

What When Where
LecturesMon 08:30-09:30,
Tue 10:30-11:30,
Fri 09:30-10:30
A2, Math Bldg
LabTue 14:00-17:00
Wed 14:00-17:00
Intel Embedded Systems Lab, First Floor, Kresit Bldg

Course Grading

Announced Quiz 10%
Surprise Quizzes (2) 10%
Midsem 30%
Endsem 50%

Lab Grading

Each Experiment 15 marks
Lab Project 25 marks

Lecture Log

Date Topics details
Jan 06 Introduction to course and lab, evaluation scheme, Introduction to Microprocessors
Lecture 1
Jan 07 Revision of 8085 and interfacing, concepts of AC and DC loading
Lecture2
Jan 10 Use of ICE for design debugging, Hardware and software single-stepping
(Refer to Gaonkar's book for more details)
Jan 11 Introduction to support components, Brief overview of general-purpose and special-purpose controllers, 8255A PPI
(Refer to Intel Handbook for more details)
Jan 11 Lab-Lecture on FPGA architecture, explanation of 3000 series demo-kits to be used for lab project
Lab-lecture1
Jan 13 Moore's Law, Processor Evolution history
Lecture5
Jan 17 8255 in Mode1 output setup, Mode1 input setup
(Refer to Intel Handbook for more details)
Jan 18 Detailed explanation of Lab experiment #2 with flowcharts, 8255 Mode 2 explanation, 8251A(USART)
(Refer to Intel Handbook for more details)
Jan 18 Lab-Lecture on VHDL
Lab-lecture2
Jan 20 More on 8251A USART, Double buffered datapath, Null modem connection
(Refer to Gaonkar's book for more details)
Jan 24 Details of 8251A formal specification, concept of local and remote loopback connections for testing/debugging, Explanation of lab 4.
(Refer to Gaonkar's book for more details)
Jan 25 Explanation of Lab expt. 1
Jan 28 More on 8251 USART: usage in synchronous mode of operation, 1 character and 2 character SYNC
(Refer to Gaonkar's book for more details)
Jan 31 BSR mode of operation of 8255A PPI, Concluding remarks on 8251A USART, applications of serial ports
8253 Timer/Counter, modes of operation
(Refer to Intel Handbook for more details)
Feb 01 More on modes of operation of 8253 Timer/Counter, Introduction to 8259A PIC, revision of interrupts of 8085: TRAP, RST7.5, RST6.5, RST5.5, and INTR
(Refer to Intel Handbook for more details)
Feb 04 More on 8259 PIC, interfacing 8259 with 8085 and with 8086, Use of EOI command, Cascading of 8259: Issues in cascading
(Refer to Intel Handbook for more details)
Feb 07 8259 PIC block diagram, Introduction to 8086: Pin description, use in Min and Max modes
(Refer to Intel Handbook for more details)
Feb 08 More on Min/Max configuration modes of 8086, memory interfacing, issues in reading a word/byte from memory
(Refer to Intel Handbook for more details)
Feb 11 Announced Quiz worth 10 marks
Quiz sample solutions Question2: ckt diagram
Feb 14 Centronics parallel interface
Centronics
Feb 15 RS-232 standard
RS-232(a) RS-232(b)
Feb 18 8087 NDP (co-processor): Pin diagram, interfacing 8086 with 8087, 8087 block diagram, use of WAIT and FWAIT
Feb 28 Midsem paper discussion, Introduction to USB, Midsem sample solutions
Mar 1 More on USB
USB
Mar 4 PCI
PCI Additional Notes
Mar 7 Introduction to Embedded systems
Embedded systems
Mar 8 Introduction to microcontrollers
Microcontrollers
Mar 11 PCI Express protocol
PCI Express Additional Notes
Mail any suggestions to Seetha Jayasankar