CECS 262

CECS 262 – Introduction to Embedded System Programming

Final – 5/12/2021, Wednesday 2:45PM to 4:45PM

Syllabus

Syllabus_CECS262_Sec_5_6_MW_3PM_Spring_2021

Lecture Videos

CECS 262 Lecture and Tutorial Videos Page

Resources

Setting up the Dev Environment and Programming Test Code

EFM8BB1_MCU_Datasheet

Development_Board_efm8bb1lck_User_Guide

Development_Board_efm8bb1lck_Schematic

8051 Instruction_Set_and_Memory_Organization_Reference

Intro Slides (I only use slides for the 1st lectures)

Inside a Computing System and 8051 MCU (slides.pdf)

8051 Program Execution (Slides.pdf)

hyperterminal

262 Review Materials

262_Sample_Midterm_with_Solutions


Labs

Lab 1 – Simulating the 8051 Output Port

Due: x/x – Start of Lect – BB Dropbox

Lab 1 – Simulating the 8051 Output Port.docx

Lab 2 – LED Scrolling Pattern with Input

Due: 3/3 – Start of Lect – BB Dropbox

Lab_2_-_LED_Scrolling_Pattern_with_Input

Lab 3 – LED Scrolling Pattern with Timer

Due: 3/17 – Start of Lect – BB Dropbox

Lab_3_-_LED_Scrolling_Pattern_with_Timer

Lab 3 – Stepper Motor

Due: x/x – Start of Lect – BB Dropbox

Lab_3_-_Stepper_Motor

Stepper Datasheet 28BYJ-48

Stepper_Motor_-_Bit_Sequences

uln2003a_Datasheet

Book_Resource-Stepper_Motor

Lab 4 – Timer Interrupts and Servo Motor

Due: 4/14 – Start of Lect – BB Dropbox

Lab_4_-_Timers_Interrupts_and_Servos

The Above Lab document is not applicable, please follow the video instructions below.

Lab Help – Servo Lab Supplement Video

Important: Please change the following code from InitDevice() from:

//Setup Defaults for P1
P1MDOUT = P1MDOUT_B0__OPEN_DRAIN | P1MDOUT_B1__OPEN_DRAIN | P1MDOUT_B2__OPEN_DRAIN | P1MDOUT_B3__OPEN_DRAIN | P1MDOUT_B4__PUSH_PULL | P1MDOUT_B5__OPEN_DRAIN | P1MDOUT_B6__OPEN_DRAIN | P1MDOUT_B7__OPEN_DRAIN;

to:

//Setup Defaults for P1
P1MDOUT = P1MDOUT_B0__PUSH_PULL | P1MDOUT_B1__PUSH_PULL | P1MDOUT_B2__PUSH_PULL | P1MDOUT_B3__PUSH_PULL | P1MDOUT_B4__PUSH_PULL | P1MDOUT_B5__PUSH_PULL | P1MDOUT_B6__PUSH_PULL | P1MDOUT_B7__PUSH_PULL;

Lab 5 – Adding an LCD Interface to previous Servo Lab

Due: 5/3 – Start of Lect – BB Dropbox

Lab_5_-_LCD_Parallel_Interfacing

If connecting the Servo Signal to the P0 port, then make sure to add this block to the InitDevice() function:

//Setup Defaults for P0
P0MDOUT = P0MDOUT_B0__PUSH_PULL | P0MDOUT_B1__PUSH_PULL
| P0MDOUT_B2__PUSH_PULL | P0MDOUT_B3__PUSH_PULL
| P0MDOUT_B4__PUSH_PULL | P0MDOUT_B5__PUSH_PULL
| P0MDOUT_B6__PUSH_PULL | P0MDOUT_B7__PUSH_PULL;

 


Supplies

Development Board – From Digikey or Mouser – approx $7

Digikey_EFM8BB1LCK or Mouser_EFM8BB1LCK 

Parts Kit – From Amazon – approx $35

Amazon_Embedded_Systems_Starter_Kit

Miscellaneous Other Basic Electronics Supplies as Needed

For this class, currently to the best of my knowledge, only the development board and the Embedded Systems Starter Kit are all that is absolutely necessary to complete all the labs for this course. There is a lot in that $35 package, however in general as a student you will want to be acquiring some basic electronics prototyping supplies as you progress through your degree. These are basic items like a Multimeter,  Breadboard, Wires, Wire Cutters and Wire Strippers, Resistors, Capacitors, Transistors, and other basic components. There is a high likely hood that these types of items are damaged through incorrect usage and handling, for this reason the department does not supply these items to the student as managing these parts would take a lot of people a lot of time effort to make sure components still work and that all items are there. On other pages on this site I make some recommendations that are affordable and of decent quality. For example super cheap multimeters in the $5 to $20 range is sometimes just wasted money in the grand scheme due to poor accuracy of measurement and ease of damage, it would be better to spend $25 on a known good brand of multimeters like an Extech or Amprobe Brand. On my dedicated general supplies page I make suggestions on what I would purchase for myself given a very tight and frugal budget. Some of these items like the breadboard and wires are already in the listed amazon parts kit but you may find yourself in a situation where things have broken or you need more of a particular item. Since this is a very hands-on major we do a lot of other prototyping and labs in future classes, I have a dedicated general supplies page with discussion of many of these low cost tools and components.

General Electronics Supplies Page