ECE 341 - Microcontrollers Lab (Spring 2015)
The laboratory exercises are closely coordinated with the lectures presented
in ECE 340. Successive assignments build on previous lab experiences. Most
labs have a pre-lab assignment that must be submitted before the
start of the lab period. The pre-lab assignments are
designed to encourage you to have a development plan or strategy thought out
before you begin software development. This allows the most efficient use
of the time spent with the instructors in the lab. Attendance is
mandatory for the entire lab period or until a fully
functional program is demonstrated to the instructor or Lab TA. Labs must
be completed in sequence and no lab can be started until all previous labs
have been completed. Students must work
independently. Assignments submitted are to
be the work of each individual student. Any student who participates in
plagiarism will receive a zero for the entire assignment and be
reported to the Dean of Students . Acts of plagiarism will be promptly
report to the Dean of Students.
Please read these additional guidelines for information on the lab report content, submitssion procedures, and other important information!!!
Lab 0 - Introduction to MPLAB and the Cerebot
MX7ck (required files). In-lab questions collected in lab. Lab report questions are due in class on Mon, Jan 26.
Lab 1 - Digital Input and Output with
the Cerebot MX7ck (required files). See page 1 of General Lab Policies and Procedures for deadlines for this and all future labs.
Lab 2 - Software Time Delay. Lab report questions
- Lab 3 - Software-based Finite State Machines. Lab report questions
- Lab 4 - Timers and Multi-Rate Processing. Lab report questions
- Lab 5 - Process Speed Control using Interrupts. Lab report questions
- Lab 6 - Handshaking and LCD Control. Lab report questions. Demo by Mar 13 and report due Mar 23.
- Lab 7 - Asynchronous Serial Communications. Lab report questions. Lab source code: comm.h and comm.c
- Lab 8 - I2C Serial Communications. Demo single byte write/read/verify by 3 pm on Fri, Apr 3 (no prelab, but follow these demo requirements). Bring two
screen captures using I2C triggering
to class on Mon, Apr 6. Demo block write/read/verify by 3 pm on Fri,
Apr 10 (prelab due by 8 am on Apr 7, demo requirements). Submit report electronically by 5 pm on Mon, Apr 13.
- Lab 9 - Pulse Width Modulation using Output Compare. Lab report questions. (another two week lab!) Demo by Friday, April 24, and report on Monday, April 27.
- Lab 10 - Frequency Measurement using Input Capture. Lab report questions. Demo by Friday, May 1 (Expo!), and report on Monday, May 4.
MPLAB and PIC32 Resources
(single zip archive)