lab2
This is an old revision of the document!
Table of Contents
Lab 2
Evaluation
μC/OS-II source code is divided into platform dependent and platform independent files. Platform independent files can be found in Micrium/Software/uCOS-II/Source/. Platform independent files can be found in Micrium/Software/uCOS-II/Ports/HCS12/Paged/Metrowerks/SerialMonitor/.
By study the source structure and Micrium/ReadMe/uCOS-II-RefMan.pdf briefly answer the following questions:
- Write a pseudo code using μC/OS-II to create two tasks and protect their critical sections that is accessing a common variable called XYZ.
- In your own words, explain how multitasking is achieved in the μC/OS-II (pay special attention to os_cpu_a.s)?
Prelab studies
- Please make sure to read and understand the license agreements:
- Also read the application note 1456 which provides a general information about Lab 3 stationary project:
Evaluation
Demonstrate the uploaded program to your T.A. Provide brief answers to the following questions:
- What is the process of creating a new task in μC/OS-II? Provide a pseudo sample code by study “KeypadTask” code block used in the lab.
- Explain how OSFlagPend function and how it prevents the “KeypadTask” from accessing the critical LCD resource?
Procedure
- Open the lab stationary using CodeWarrior located in:
LAB03/Micrium/Software/EvalBoards/Freescale/MC9S12DG256B/WytecDragon12/Metrowerks/Paged/ OS-Probe-LCD/OS-Probe-LCD.mcp
- Recompile the project and transfer the binaries to Dragon12 board as explained in Lab 1.
Reference Manuals
Resources
Resources
lab2.1390186786.txt.gz · Last modified: 2014/01/20 02:59 by allison