< Return to Bison Academy

ECE 376 – Embedded Systems

Design of Microcontroller-Based Circuits

Spring 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

Jan 9

Holiday!

Photo of EVB

Another photo

Download Matlab (link here)

Download SciLab (link here)

 

HW #1

Solution #1

W

Jan 11

 Syllabus

Soldering you PCB

MPLAB 8.92 Download

C Compiler (run after installing MPLAB)

F

Jan 13

Architecture and Boolean Math

Assembler Demo

M

Jan 16

Holiday!

HW #2

Solution #2

W

Jan 18

PIC Assembler

List of Assembler Commands

Count.asm demo

CountC.asm

CountABCD.asm

CountABCDv2.asm

CountABCDv3.asm

F

Jan 20

Boot Loaders and MPLAB

Blink.asm demo

BootLoader.zip

Blink0.asm (3.3MHz)

Blink.asm (261Hz)

M

Jan 23

Flow Charts and Binary Inputs (Software)

$85 Dice

Random Numbers in Assembler

Light Counter

CountRB0.asm

Random.asm

Random2.asm

Random3.asm

(note:  Homework #3 pushed back to Feb 6th)

W

Jan 25

Binary Inputs (Hardware)

F

Jan 27

Binary Outputs & Timing

1-Key and 4-Key Piano

Piano0.asm

Piano1.asm (1-note piano)

Piano2.asm (4-note piano)

M

Jan 30

Binary Outputs - LEDs

LED Flashlight

Strobe.asm

RGB.asm

HW #3

Solution #3

W

Feb 1

Binary Outputs – Transistors

 

 

F

Feb 3

AdaFruit:  NeoPixels

NeoPixel Demo

NeoPixel Flashlight

NeoPixel12.asm

NeoPixel750.asm

NeoPixel8x8.asm

M

Feb 6

Review

 

 

W

Feb 8

Career Fair (no class)

 

 

F

Feb 10

Test #1:  Assembler & Digital I/O

 

Stepper.asm

M

Feb 13

C with Mplab8

C with MplabX

C Demo in MPLAB 8.92

C Demo in MPLABX

Count.C

Clock.C

HW #4

Solution 04

W

Feb 15

C vs. Assembler

Binary Clock in MPLABX

Roulette.C

F

Feb 17

Binary Outputs – LCD

LCD Demo in MPLAB 8.92

LCD Demo in MPLABX

LCD_Demo

M

Feb 20

Holiday!

HW #5

W

Feb 22

Keypads

Keypad & RPN Calc

Blinking Lights

RGB Led Driver

Keypad.C

RPN.C

Keypad zip files

F

Feb 24

NeoPixels in C

Neopixel & Keypad

NeoPixel & Keypad v2

Bouncing Lights

NeoPixel0.C

NeoPixel_C.zip

M

Feb 27

Stepper Motors in C

Stepper Motor Tennis Game

Stepper1.C

Stepper.zip

HW #6

Solution #6

W

Mar 1

A/D, D/A Converters

Improved Roulette Wheel

Ohm Meter

F

Mar 3

Instrumentation Amplifiers and Calibration

 

M

Mar 6

Brushless DC Motors

Quad Copter Motor

W

Mar 8

F

Mar 10

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

Statistics Examples

M

Mar 13

Holiday!

W

Mar 15

Holiday!

F

Mar 17

Holiday!

M

Mar 20

More Fun with Statistics and Curve Fitting

Test #2

W

Mar 22

Review

F

Mar 24

Test #2

 

M

Mar 27

Timer 2 Interrupts

Summary of Interrupts

LED Driver

Timer2

HW #7

Solution #7

W

Mar 29

Timer 2 Examples

Count Down Timer

Music Box

Timer2 Piano & Music Box

Timer2 PWM & Rainbow

Stepper2.C

Stepper3.C

Stepper4.C

F

Mar 31

Timer 0/1/2/3 Interrupts

Roulette Wheel

Bass and Melody

Reaction Game

Timer0.C

Timer0.zip

M

Apr 3

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

HW #8

Solution #8

W

Apr 5

INT Interrupts

Angle.C

Reaction Test Game

INT game

F

Apr 7

Timer 1 Capture  

Capture1.C

Capture2.C

Range.C

Jump.C

Capture.zip

M

Apr 10

Timer 1 Compare

Function Generator

Carol of the Bells

Compare1.C

Compare2.C

PWM.C

Compare.zip

HW #9

Solution #9

W

Apr 12

Filters in the s-Plane

SCI Monitor

F

Apr 14

Holiday!

 

M

Apr 17

Holiday!

 

 

W

Apr 19

Filters in the z-Plane

 

F

Apr 21

FIR Filters

StatTrek.com

Thermistor Values

M

Apr 24

SCI Data Communications & Serial Interrupt

SPI with a Neopixel

Keyboard Control Stepper Motor

 

Term Project

Due May 5th

W

Apr 26

Review

 

 

F

Apr 28

Test #3:  Analog I/O

 

 

M

May 1

Noise

 

 

W

May 3

Digital Sensors & GPS

 

 

F

May 5

Review

 

 

M

May 8

Final Exam:  1:00 PM, Room 125

 

 

 

 

 

 

 

 

 

 

 

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

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

Low Power  Operation