Physics 335, Spring Quarter 2014
Electric Circuits Laboratory II

Digital Electronics, Microprocessors and Microcontrollers

Instructor: David B. Pengra

Office: Physics and Astronomy Building B256
Office Hours by appointment — please email or phone
Telephone: 206-543-4783

Course Announcements

Self evaluation survey:

The exam was held in class on Thursday, May 15, 2014.

Meeting Times and Locations

Physics Astronomy Building - A wing – Room A118
Tuesdays & Thursdays - 10:30-11:20 am

Lab Sections:
Physics Astronomy Building - B wing - Room B280

Monday (AE) 2:30 - 5:20 pm (note late start) Mike Ingber
Tuesday (AA) 1:30 pm - 4:20 pm Nichole Barry
Wednesday (AB) 1:30 pm - 4:20 pm Brandon Robinson
Thursday (AC) 1:30 pm - 4:20 pm Mike Ingber
Friday (AD) 1:30pm - 4:20 pm Nichole Barry

Teaching Assistants and Support

Mike Ingber -
Nichole Barry -
Brandon Robinson -

Jason Alferness
Program Operations Specialist
B256B Physics Astronomy
(206) 221-2974

Homework Assignments and Solutions

Homework 1 Due April 1, 10:30am (Solutions)
Homework 2 Due April 3, 10:30am (Solutions)
Homework 3 Due April 8, 10:30am (Solutions)
Homework 4 Due April 10, 10:30am (Solutions)
Homework 5 Due April 17, 10:30am (Solutions)
Homework 6 Due April 24, 10:30am (Solutions)
Homework 7: Nothing to turn in. Download and read as much as you can of

and watch these two videos on YouTube: Homework 8 Due May 8, 10:30am (LED_lighter_2.asm – my version)
Homework 9 Due Tuesday, May 27, 10:30am (Solutions)


Many datasheets can be found at

Some selected datasheets:

  • 74LS74 TTL Edge-triggered dual D-type flip-flop (Motorola)
  • 74HC74 CMOS Edge-triggered dual D-type flip-flop (Texas Instruments)
  • 74LS90-74LS93 TTL BCD and binary ripple counters (Motorola)
  • 74LS160-74LS163 TTL BCD and binary synchronous load counters (Motorola)

Microprocessor datasheets and related information

Lecture Notes

Lecture 1 April 1
Lecture 2 April 3
Lecture 3 April 8
Lecture 4 April 10
Lecture 5 April 15
Lecture 6 April 17
Lecture 7 April 22
Lecture 8 April 24
Lecture 9 April 29
Lecture 10 May 1
Lecture 11 May 6
Lecture 12 May 8
Lecture 13 May 20
Lecture 14 May 22
Lecture 15 May 27
Lecture 16 May 29
Lecture 17 June 3


You should read through the lab notes and related material in the text or from other sources such as datasheets prior to coming to each lab period.

Lab 1 - Intro to Digital Logic
Lab 2 - Flip Flops and Sequential Logic
Lab 3 - MSI Logic and Counters
Lab 4 - Analog to Digital, Digital to Analog
Lab 5 - Intro. to MicroControllers and Assembly Programming

Lab 6 - PIC Lab 2: Microcontroller based PWM
Lab 7 - PIC Lab 3: Sonic Ranger

Thanks to the contributions of Profs. Blayne Heckel, Prof. Oscar Vilches, Leslie Rosenberg, Jason Alferness, David Pengra and John Stoltenberg for these materials.

Summary Course Information

Our objective is for you to learn the kind of basic digital electronics you'll need in the laboratory. You'll begin by designing and building circuits around 74-series TTL and CMOS logic gates. You'll then learn to how to interface ADC's and DAC's and other peripherals. You'll then assemble and program circuits containing microcontrollers. Along the way, you'll learn fundamentals of computer architecture and machine-level programming.

Required Text:
Enrique J. Galvez, Electronics with Discrete Components, John Wiley & Sons (2013), ISBN 978-0-70-88968-8
Much assigned homework and reading will come from this text.

Optional Texts (copies are available for viewing in B280):
(1) Hayes and Horowitz, Student Manual for the Art of Electronics, Cam. Univ. Press
(2) Horowitz and Hill, The Art of Electronics, Cam. Univ. Press.

As the term progresses, we will post other information that you will be expected to read (or at least look over), such as user manuals, data sheets, and other notes.

Homework, Exams, and Grading:
In the first few weeks of term, homework will be required for every lecture meeting. See the syllabus for more information.

There will be one exam about midway through the term. It will count for 20% of the grade. It will cover digital circuits and characteristics of digital gates, Boolean logic, and PIC controllers up to that point in the course. The exam is closed-book. Among other things, you're expected to know the truth-tables for basic logic gates and how counters, flip-flops and latches function. You're expected to know how to draw a timing diagram. The exam will include a summary table of PIC microcontroller instructions.


  • Exam: 20%
  • Homework: 10%
  • Lab practice (assessed by your TA): 30%
  • Lab reports: 40%
See the Syllabus for more detailed information.

Send mail to:
Last modified: April 4, 2014