< 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

·         Mo  Dipanika Mitra

·         Tu   Mary Pierson

·         We  Dipanika Mitra

·         Th   Xiaowei Chen (also in room 209)

·         Fr    -

 

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)

 

W

Aug 23

 Syllabus

Soldering you PCB

MPLAB 8.92 Download

C Compiler (run after installing MPLAB)

F

Aug 25

Architecture and Boolean Math

Assembler Demo

M

Aug 28

PIC Assembler

List of Assembler Commands

Count.asm demo

CountC.asm

CountABCD.asm

CountABCDv2.asm

CountABCDv3.asm

W

Aug 30

Boot Loaders and MPLAB

Blink.asm demo

BootLoader.zip

Blink0.asm (3.3MHz)

Blink.asm (261Hz)

F

Sep 1

Flow Charts and Binary Inputs (Software)

$65 Dice

Random Numbers in Assembler

Light Counter

CountRB0.asm

Random.asm

Random2.asm

Random3.asm

M

Sep 4

Holiday!

W

Sep 6

Binary Inputs (Hardware)

F

Sep 8

Binary Outputs & Timing

1-Key and 4-Key Piano

Piano0.asm

Piano1.asm (1-note piano)

Piano2.asm (4-note piano)

M

Sep 11

Binary Outputs - LEDs

LED Flashlight

Strobe.asm

RGB.asm

W

Sep 13

Binary Outputs – Transistors

 

 

F

Sep 15

AdaFruit:  NeoPixels

NeoPixel Demo

NeoPixel Flashlight

NeoPixel12.asm

NeoPixel750.asm

NeoPixel8x8.asm

M

Sep 18

Power Consumption and Stand-Alone Mode

 

 

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

C vs. Assembler

Binary Clock in MPLABX

Roulette.C

F

Sep 29

Binary Outputs – LCD

LCD Demo in MPLAB 8.92

LCD Demo in MPLABX

LCD_Demo

M

Oct 2

Keypads in C

Keypad & RPN Calc

Blinking Lights

RGB Led Driver

Keypad.C

RPN.C

Keypad zip files

W

Oct 4

NeoPixels in C

Neopixel & Keypad

NeoPixel & Keypad v2

Bouncing Lights

NeoPixel0.C

NeoPixel_C.zip

F

Oct 6

Stepper Motors in C

Stepper Motor Tennis Game

Stepper1.C

Stepper.zip

M

Oct 9

A/D, D/A Converters

Improved Roulette Wheel

Ohm Meter

W

Oct 11

Instrumentation Amplifiers and Calibration

F

Oct 13

Brushless DC Motors

Quad Copter Motor

M

Oct 16

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

Statistics Examples

W

Oct 18

More Fun with Statistics and Curve Fitting

F

Oct 20

Review

M

Oct 23

Test #2: C Programming

W

Oct 25

Timer 2 Interrupts

Summary of Interrupts

LED Driver

Timer2

F

Oct 27

Timer 2 Examples

Count Down Timer

Music Box

Timer2 Piano & Music Box

Timer2 PWM & Rainbow

Stepper2.C

Stepper3.C

Stepper4.C

M

Oct 30

Timer 0/1/2/3 Interrupts

Roulette Wheel

Bass and Melody

Reaction Game

Timer0.C

Timer0.zip

W

Nov 1

Fun with Timer Interrupts

Chord.C Demo

Quad.C Demo

Freq.C Demo

Tach.C Demo

PWM.C Demo

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

F

Nov 3

INT Interrupts

Angle.C

Reaction Test Game

INT game

M

Nov 6

Timer 1 Capture  

Capture1.C

Capture2.C

Range.C

Jump.C

Capture.zip

W

Nov 8

Timer 1 Compare

Function Generator

Carol of the Bells

Compare1.C

Compare2.C

PWM.C

Compare.zip

F

Nov 10

Holiday!

M

Nov 13

SCI Data Communications & Serial Interrupt

SPI with a Neopixel

Keyboard Control Stepper Motor

W

Nov 15

Review

F

Nov 17

Test #3:  Interrupts

M

Nov 20

Filters in the s-Plane

SCI Monitor

W

Nov 22

Filters in the z-Plane

F

Nov 24

Holiday!

 

M

Nov 27

FIR Filters

StatTrek.com

Thermistor Values

W

Nov 29

Measuring Position:  GPS

 

F

Dec 1

DC Servo Motors

M

Dec 4

Position Control of a DC Servo Motor

 

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