ECE 376 – Embedded Systems

Design of Microcontroller-Based Circuits

Fall 2014

Last Update: 

·         Fall 2014 Updated:  7/29/14

 

Bison Academy

Best of ECE 376

Old Homework Sets and Solutions

 

Instructor:        Jake Glower  

Office              ECE 201A

Phone:             701x231x8068

Email               Jacob_glower@yahoo.com

Office Hours   MWF 10-11AM

Class Time      MWF 1-2PM, ECE 125

TA:                  Gerardo Zamora

 

Downloads:

·         PIC18F4620 Data Sheets  (assembler on pages 275-325)

·         Summary of Interrupts

·         COM port driver (rename to .exe)


 

 

Topic

Code

Homework

Lab

Week 1-4:  Hardware and Assembler Programming

(click here for all lectures in one pdf file – useful for iPad users)

M

Aug 25

Holiday!

 

LCD Display Options:

16x2 Character ($4:  comes with EVB)

20x4 Character ($8 MPJA)

144x32 Graphic ($31 Crystalfonz)

320x200 Graphic ($25:  Adafruit)

Solder PCB

Image of finished board – note LCD plugs into board

Finished Board with LCD Plugged In

Closeup of LEDs.  Note green stripe is down

Closeup of LCD Display.  Plugs into EVB

W

Aug 27

 Syllabus

F

Aug 29

Architecture and Boolean Math

M

Sep 1

Holiday!

 

 

HW #1

Solution #1

 

 

Hypertrm.zip

Download zip file – run Hypertrm.exe from your download directory

W

Sep 3

PIC Assembler

CountC.asm

CountABCD.asm

CountABCDv2.asm

CountABCDv3.asm

F

Sep 5

Boot Loaders and MPLAB

BootLoader.hex

Blink0.asm (3.3MHz)

Blink.asm (261Hz)

M

Sep 8

Flow Charts

CountRB0.asm

Random.asm

Random2.asm

Random3.asm

 

 

HW #2

Solution #2

 

 

1: Binary Clock

* Lab Change *  -

Pick One:  Piano / LED light / Clock / Other.  Turn in as part of Homework #2 (no separate write up)

(ASM code)

W

Sep 10

Binary Inputs (Hardware)

 

F

Sep 12

Binary Outputs & Timing

Piano0.asm

Piano1.asm (1-note piano)

Piano2.asm (4-note piano)

M

Sep 15

Binary Outputs - LEDs

Strobe.asm

RGB.asm

 

HW #3

Solution #3

 

RGB LED datasheet

 

2: Stepper Motor

(ASM code)

W

Sep 17

Binary Outputs – Transistors

F

Sep 19

Stepper Motors

Stepper.asm

M

Sep 22

Brushless DC Motors

10

 

W

Sep 24

Career Fair (no class)

 

F

Sep 26

Review

 

Week 5-16:  Hardware & C Programming

M

Sep 29

Test #1:  Assembler & Digital I/O

Test #1 Solution

No homework this week – we’re working on getting the C compiler to run in 235 / 237

(setting permissions on directories)

MPLabX - Download

MplabX Instructions

W

Oct 1

PIC-C

 

F

Oct 3

C vs. Assembler

 

M

Oct 6

Phasors and Filters

 

HW #4

Solution #4

 

W

Oct 8

Poles, Zeros, and Frequency Response

 

F

Oct 10

Digital Filters

 

M

Oct 13

Converting G(s) to G(z)

Filter

HW #5

 

W

 Oct 15

FIR Filters

 

F

Oct 17

Binary Outputs – LCD

LCD_Demo

M

Oct 20

Keypads

Keypad

RPN_Calculator

HW #6

 

W

Oct 22

Timer 2 Interrupts

Timer2

F

Oct 24

Timer 2 Examples  -

 

M

Oct 27

Timer 0/1/2/3 Interrupts

Stopwatch

Timer0

Videos: Ideas for Term Project

Rail Gun Video

Strobe Light Video

iPhone Amplifier

 

W

Oct 29

Timer 1 Capture 

Timer 1 Compare

PWM

Piano3 (8 note piano)

F

Oct 31

INT Interrupts

 

M

Nov 3

DC Servo Motors

SCI Monitor

Cornstarch Speaker

Fun Theory: Piano Stairs

Fun Theory: Trash Can

Fun Theory: Recycle Bin

 

W

Nov 5

Review

 

F

Nov 7

Test #2:  C, Interrupts, Digital I/O

 

M

Nov 10

SCI Data Communications & Serial Interrupt

 

Battery A

Battery B

Battery C

W

Nov 12

Digital Sensors & GPS

Ohm Meter

F

Nov 14

A/D, D/A Converters

 

M

Nov 17

Instrumentation Amplifiers

 

 

W

Nov 19

Calibration

 

F

Nov 21

Transducers & Temperature Sensors

Transistor Gains

M

Nov 24

Hypothesis Testing

Thermistor Values

 

 

W

Nov 26

t-Test, F-Test, Chi-Squared Test

 

F

Nov 28

Holiday

 

M

Dec 1

Data Collection & Noise

Data Logger

 

W

Dec 3

Review

 

F

Dec 5

Test #3:  Analog I/O

 

M

Dec 8

Low Power  Operation  -  Other Processors

 

 

W

Dec 10

 

 

F

Dec 12

Review

 

M

Dec 15

Final Exam:  8-10 AM

 

 

 

 

 

 

 

 

 

Final Exam

 

 

 

 

Analog Design Review

Sign up for ½ hour time slot Finals week

 

 

Other Topics Not Covered This Semester:

Passive Filters & LaPlace

Active Filters

Fourier Transform

Digital Filters

Test #3 – A/D, Hypothesis Testing, Assembler

FIR Filters