< Return to Bison Academy

ECE 376 – Embedded Systems

Design of Microcontroller-Based Circuits

Fall 2017

 

Best of ECE 376

Old Homework Sets and Solutions

 

Instructor:        Dr. Jake Glower

Email:              jacob_glower@yahoo.com

Office:             ECE 201A

Office Hrs:      Tu/Th  9-10

 

Class Times:  

·         MWF   1PM, room ECE 125

 

Lab Times:

·         Room 211:  Open Lab  24/7

·         Room 237:  Open Lab Th / Fr

 

T.A. 4PM – 8PM room 211

·         M:  Xiaowei Chen

·         Tu: Dipankar Mitra

·         W: Dipankar Mitra

·         Th: Xiaowei Chen

Student Information:

PIC18F4620 Data Sheets  (assembler on pages 275-325)

Summary of Interrupts

PIC Flash Tool v1.2

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

MPLabX - Download   -    MplabX Instructions

MPLAB 8.92 Download  -  C Compiler (run after installing MPLAB)

Screen-Cast-O-Matic:  Software for making videos with screen capture

 

 

 


 

 

Topic

Video

Code

Homework

Old HW & Solutions

M

Aug 21

Holiday!

Photo of EVB

Another photo

Download Matlab (link here)

Download SciLab (link here)

 

HW #1

Solution #1

W

Aug 23

John Deere Presentation

F

Aug 25

 Syllabus

Soldering you PCB

MPLAB 8.92 Download

C Compiler (run after installing MPLAB)

M

Aug 28

Architecture and Boolean Math

Assembler Demo

HW #2

Solution #2

W

Aug 30

PIC Assembler

List of Assembler Commands

Count.asm demo

CountC.asm

CountABCD.asm

CountABCDv2.asm

CountABCDv3.asm

F

Sep 1

Boot Loaders and MPLAB

Flow Charts and Binary Inputs (Software)

Blink.asm demo

$65 Dice

Random Numbers in Assembler

BootLoader.zip

Blink0.asm (3.3MHz)

Blink.asm (261Hz)

M

Sep 4

Holiday!

HW #3

Solution #3

W

Sep 6

Binary Inputs (Hardware)

Light Counter

CountRB0.asm

Random.asm

Random2.asm

Random3.asm

F

Sep 8

Binary Outputs - LEDs

LED Flashlight

Flashlight

Flashlight2

Flashlight3

Flashlight4

M

Sep 11

Binary Outputs & Timing

1-Key and 4-Key Piano

Piano0.asm

Piano1.asm (1-note piano)

Piano2.asm (4-note piano)

HW #4

Solution #4

W

Sep 13

Binary Outputs – Transistors

F

Sep 15

Example:  Binary Stopwatch

M

Sep 18

AdaFruit:  NeoPixels

NeoPixel Demo

NeoPixel Flashlight

NeoPixel12.asm

NeoPixel750.asm

NeoPixel8x8.asm

W

Sep 20

Review

 

 

F

Sep 22

Test #1:  Assembler & Digital I/O

 

Stepper.asm

M

Sep 25

C with Mplab8

C with MplabX

C Demo in MPLAB 8.92

C Demo in MPLABX

Count.C

Clock.C

W

Sep 27

Career Fair (no class)

F

Sep 29

C vs. Assembler

Binary Clock in MPLABX

Roulette.C

M

Oct 2

Binary Outputs – LCD

LCD Demo in MPLAB 8.92

LCD Demo in MPLABX

LCD_Demo

W

Oct 4

Keypads in C

Keypad & RPN Calc

Blinking Lights

RGB Led Driver

Keypad.C

RPN.C

Keypad zip files

F

Oct 6

NeoPixels in C

Neopixel & Keypad

NeoPixel & Keypad v2

Bouncing Lights

NeoPixel0.C

NeoPixel_C.zip

M

Oct 9

Stepper Motors in C

Stepper Motor Tennis Game

Stepper1.C

Stepper.zip

W

Oct 11

A/D, D/A Converters

Improved Roulette Wheel

Stepper Motor Angle Control

Ohm Meter

F

Oct 13

Instrumentation Amplifiers and Calibration

M

Oct 16

Brushless DC Motors

Quad Copter Motor

W

Oct 18

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

Statistics Examples

F

Oct 20

More Fun with Statistics and Curve Fitting

M

Oct 23

W

Oct 25

Review

F

Oct 27

Test #2: C Programming

M

Oct 30

Timer 2 Interrupts

Summary of Interrupts

LED Driver

Timer2

W

Nov 1

Timer 2 Examples

Count Down Timer

Music Box

Timer2 Piano & Music Box

Timer2 PWM & Rainbow

Stepper2.C

Stepper3.C

Stepper4.C

F

Nov 3

Timer 0/1/2/3 Interrupts

Roulette Wheel

Bass and Melody

Reaction Game

Timer0.C

Timer0.zip

M

Nov 6

Fun with Timer Interrupts

Chord.C Demo

Quad.C Demo

Freq.C Demo

Tach.C Demo

PWM.C Demo

Scooby Doo with Interrupts

Chord.C  4-note piano with chords

Quad.C:  0.9 – 2.0ms pulses

Freq.C: cycles / second

Tach.C:  seconds / cycle

PWM.C  0.1 – 99.9% PWM

LCD_PORTD.C (lcd driver for all)

Data Logger

W

Nov 8

INT Interrupts

Angle.C

Reaction Test Game

F

Nov 10

Holiday!

M

Nov 13

Timer 1 Capture  

Capture1.C

Capture2.C

Range.C

Jump.C

Capture.zip

W

Nov 15

Timer 1 Compare

Function Generator

Carol of the Bells

Compare1.C

Compare2.C

PWM.C

Compare.zip

F

Nov 17

SCI Data Communications & Serial Interrupt

SPI with a Neopixel

Keyboard Control Stepper Motor

SCI Monitor

M

Nov 20

Review

W

Nov 22

Test #3:  Interrupts

F

Nov 24

Holiday!

 

M

Nov 27

Filters in the s-Plane

W

Nov 29

Filters in the z-Plane

 

F

Dec 1

FIR Filters

StatTrek.com

Thermistor Values

M

Dec 4

Measuring Position:  GPS

 

W

Dec 4

Speed Control of a DC Servo Motor

 

 

F

Dec 6

Review

 

 

Final Exam

 

 

 

 

 

 

 

 

 

 

Other Topics Not Covered This Semester:

Passive Filters & LaPlace

Active Filters

Fourier Transform

Digital Filters

FIR Filters

Transducers & Temperature Sensors

Filters in the s-Plane

Filters in the z-Plane

FIR Filters

DC Servo Motors

Noise

Digital Sensors & GPS

Higher-Resolution A/D

Programmable A/D:  Smart Nose

Other Processors

Timer2:  Stepper Motor (T2_Stepper)

Timer2:  Software UART (T2_UART)

Cornstarch Speaker

Fun Theory: Piano Stairs

Fun Theory: Trash Can

Fun Theory: Recycle Bin

Videos: Ideas for Term Project

Rail Gun Video

Strobe Light Video

iPhone Amplifier

Digital Sensors & GPS