ECE4723 Embedded Systems
From Ece
Lab - Previous PIC18F2420-based website
Professor J. W. Bruce
Prerequisites: ECE 3724 (Microprocessors) with a grade of C or better
Corequisites: ECE 3424 (Intermediate Electronic Circuits)
Required Textbook: Reese/Bruce/Jones, Microcontrollers: From Assembly to C Using the PIC24 Family, ISBN: 1584503834
Recommended Textbook: J. Ganssle, The Art of Designing Embedded Systems 2/e, Newnes, 2008. ISBN: 0750686448
Meeting times: TR 11-12:15
Lab: weekly in Simrall 329
ECE4723 Embedded Systems is an undergraduate course in Electrical and Computer Engineering at Mississippi State University.
Contents |
Embedded Systems Operating System (ESOS)
- Multithreaded (Protothreads) Operating System for the PIC24H
- PIC24 Libraries including ESOS
- ESOS Documentation
- ESOS PowerPoint Slide 1
- ESOS PowerPoint Slide 2
Lab
- Lab Manual
- Lab Syllabus
- Lab Schedule
- Team Evaluation Form
- Recommended Textbook: M. Lutz, Programming Python 3/e, O’Reilly Media, 2006. ISBN: 0596009259
Build Environments
- Scons
- Ant
- Makefile
- Microchip MPLAB: Download MPLAB IDE v8.10 Full Release Zipped Installation under the Downloads section
Compilers
- MPLAB C Compiler for PIC24 MCUs: Download MPLAB C Compiler for PIC24 v3.11(b) Student Edition from the Downloads section at the bottom.
- C30 User Guide
Getting Started with ESOS (MPLAB)
- Install the MPLAB IDE and the C30 compiler using the links in the paragraph above. Be sure to install the compiler after installing the IDE. Install all the software in its default location; the rest of these instructions depends on using the default installation paths.
- Unzip the MSU PIC24H Library. Follow the one-time setup instructions for MPLAB.
- Read MPLAB User Manual includes a detailed guide to setting up MPLAB.
- Setup MPLAB
- Create a new project. (Project -> New Project)
- Select Device, PIC24HJ32GP202, (Configure->Select Device)
- Select MPLAB C30 C Compiler Toolsuite (Project -> Select Language Toolsuite).
- Set Include Paths (Project -> Build Options ->Project; Directories Tab; Select Include Search Path) :
- ESOS
- PIC24 Library includes
- User include
- Set Build Macros (Project -> Build Options ->Project; MPLAB C30; MACRO Definition -> Add)
- BUILT_ON_ESOS
- _NOASSERT
- Add ESOS files
- esos.c
- esos_comm.c
- esos_pic24_irq.c
- esos_pic24_rs232.c
- esos_pic24_tick.c
- Add PIC24 Library files
- pic24_clockfreq.c
- Add linker file
- p24HJ32GP202_bootldr.gld
- Program the PIC with the
bootloader_xxxx.hex(where xxxx = the particular chip you're using) from thebindirectory in the MSU PIC24H Library using the programmer in the micro lab, a Pickit2, or an ICD2. - Program the PIC with the
winbootldrfound in thebinof the MSU PIC24H Library




