< Return to Bison Academy

ECE 376 – Embedded Systems

Design of Microcontroller-Based Circuits

Spring 2018

 

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  11AM – noon                               

 

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:  Mousam Hossain

·         Tu: Babak Hamidi

·         W: Mousam Hossain

·         Th: Babak Hamidi

 

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 8

Holiday!

Photo of EVB

Another photo

Bare Bones PIC Board

Download Matlab (link here)

Download SciLab (link here)

 

HW #1

W

Jan 10

 Syllabus

Soldering you PCB

MPLAB 8.92 Download

C Compiler (run after installing MPLAB)

F

Jan 12

John Deere Presentation

 

M

Jan 15

Holiday!

 

 

HW #2

 

Finish soldering your PIC board

W

Jan 17

Architecture and Boolean Math

Assembler Demo

F

Jan 19

PIC Assembler

List of Assembler Commands

Count.asm demo

CountC.asm

CountABCD.asm

CountABCDv2.asm

CountABCDv3.asm

M

Jan 22

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)

 

W

Jan 24

Binary Inputs (Hardware)

Light Counter

CountRB0.asm

Random.asm

Random2.asm

Random3.asm

F

Jan 26

Binary Outputs - LEDs

LED Flashlight

Flashlight

Flashlight2

Flashlight3

Flashlight4

M

Jan 29

Binary Outputs & Timing

1-Key and 4-Key Piano

Piano0.asm

Piano1.asm (1-note piano)

Piano2.asm (4-note piano)

 

W

Jan 31

Binary Outputs – Transistors

F

Feb 2

AdaFruit:  NeoPixels

NeoPixel Demo

NeoPixel Flashlight

NeoPixel12.asm

NeoPixel750.asm

NeoPixel8x8.asm

M

Feb 5

Review

 

 

 

W

Feb 7

Career Fair (no class)

 

 

F

Feb 9

Test #1:  Assembler & Digital I/O

 

Stepper.asm

M

Feb 12

C with Mplab8

C with MplabX

C Demo in MPLAB 8.92

C Demo in MPLABX

Count.C

Clock.C

 

W

Feb 14

C vs. Assembler

Binary Clock in MPLABX

Roulette.C

F

Feb 16

Binary Outputs – LCD

LCD Demo in MPLAB 8.92

LCD Demo in MPLABX

LCD_Demo

M

Feb 19

Holiday!  President Trump Day

 

 

 

W

Feb 21

Keypads in C

Keypad & RPN Calc

Blinking Lights

RGB Led Driver

Keypad.C

RPN.C

Keypad zip files

F

Feb 23

NeoPixels in C

Neopixel & Keypad

NeoPixel & Keypad v2

Bouncing Lights

NeoPixel0.C

NeoPixel1.C

NeoPixel2.C

NeoPixel_C.zip

M

Feb 26

Stepper Motors in C

Stepper Motor Tennis Game

Stepper1.C

Stepper.zip

 

W

Feb 28

A/D, D/A Converters

Improved Roulette Wheel

Stepper Motor Angle Control

Ohm Meter

F

Mar 1

More fun with Analog Inputs

Trombone.C

Neopixel Flashlight ver 1

Neopixel Flashlight ver 2

Multi Meter

M

Mar 5

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

StatTrek

Data Logger

 

W

Mar 7

More Fun with Statistics and Curve Fitting

Statistics Examples

Thermistor Values

Transistor Gains

Temp Deviation

Loaded  Die.C

F

Mar 9

Instrumentation Amplifiers and Calibration

M

Mar 12

 

 

 

 

W

Mar 14

 

 

 

F

Mar 16

 

 

 

M

Mar 19

D/A Converters and Analog Outputs

Carol of the Bells

 

 

W

Mar 21

Review

 

 

F

Mar 23

Test #2: C Programming

 

 

M

Mar 26

Timer 2 Interrupts

Summary of Interrupts

LED Driver

Timer2

 

W

Mar 28

Timer 2 Examples

Count Down Timer

Music Box

Timer2 Piano & Music Box

Timer2 PWM & Rainbow

Stepper2.C

Stepper3.C

Stepper4.C

F

Mar 30

 

 

 

M

Apr 2

 

 

 

 

W

Apr 4

Timer 0/1/2/3 Interrupts

Roulette Wheel

Bass and Melody

Reaction Game

Timer0.C

Timer0.zip

F

Apr 6

Fun with Timer 0/1/2/3 Interrupts

Chord.C Demo

Quad.C Demo

Freq.C Demo

Tach.C Demo

PWM.C Demo

Scooby Doo with Interrupts

Quad Copter Motor

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)

 

M

Apr 9

INT Interrupts

Angle.C

Reaction Test Game

 

 

W

Apr 11

Timer 1 Capture  

 

Capture1.C

Capture2.C

Range.C

Jump.C

Capture.zip

F

Apr 13

Timer 1 Compare

Function Generator

Carol of the Bells

Compare1.C

Compare2.C

PWM.C

Compare.zip

M

Apr 16

Filters in the s-Plane

 

 

 

W

Apr 18

Filters in the z-Plane

 

 

F

Apr 20

FIR Filters

 

 

M

Apr 23

Review

 

 

 

W

Apr 25

Test #3:  Interrupts

 

 

F

Apr 27

Placing a PIC in stand-alone mode

Low-Power Operation

 

 

M

Apr 30

Measuring Position:  GPS

 

 

W

May 2

SCI Data Communications & Serial Interrupt

SPI with a Neopixel

Keyboard Control Stepper Motor

SCI Monitor

F

May 4

Review

 

 

 

 

Final Exam: 

 

 

 

 

 

Other Topics Not Covered This Semester:

Brushless DC Motors

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