User Tools

Site Tools


lab2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
lab2 [2014/01/20 03:32] allisonlab2 [2014/01/21 05:07] (current) allison
Line 1: Line 1:
 ====== Lab 2 ====== ====== Lab 2 ======
 +
 +
 +==== Background ====
  
 [[ucos background|Background Information]] [[ucos background|Background Information]]
Line 40: Line 43:
 By studying the source structure and Micrium/ReadMe/uCOS-II-RefMan.pdf briefly answer the following questions: By studying the source structure and Micrium/ReadMe/uCOS-II-RefMan.pdf briefly answer the following questions:
   * What is the process of creating a new task in μC/OS-II? Provide sample pseudo code by studying the “KeypadTask” code block used in the lab.   * What is the process of creating a new task in μC/OS-II? Provide sample pseudo code by studying the “KeypadTask” code block used in the lab.
-  * Explain how OSFlagPend function and how it prevents the “KeypadTask” from accessing the critical LCD resource.+  * Explain how OSFlagPend function works and how it prevents the “KeypadTask” from accessing the critical LCD resource.
   * Prepare a version of the demo program that guards the LCD resource using semaphores instead of OSFlag (see {{:an1005_inter-process_communication_.pdf}})   * Prepare a version of the demo program that guards the LCD resource using semaphores instead of OSFlag (see {{:an1005_inter-process_communication_.pdf}})
  
Line 47: Line 50:
   * Open the lab stationary using CodeWarrior located in:   * Open the lab stationary using CodeWarrior located in:
 <code>LAB03/Micrium/Software/EvalBoards/Freescale/MC9S12DG256B/WytecDragon12/Metrowerks/Paged/OS-Probe-LCD/OS-Probe-LCD.mcp</code> <code>LAB03/Micrium/Software/EvalBoards/Freescale/MC9S12DG256B/WytecDragon12/Metrowerks/Paged/OS-Probe-LCD/OS-Probe-LCD.mcp</code>
-  * Recompile the project and transfer the binaries to Dragon12 board as explained in [[lab1|Lab 1]]. {{:icon3.jpg}}+  * Recompile the project and transfer the binaries to Dragon12 board as explained in [[lab1|Lab 1]]. Try the program and ensure you know how it works {{:icon3.jpg?30}}
   * Do the same for the program you developed in the prelab to use semaphores to protect the critical code segments in the LCD access. Test and debug.    * Do the same for the program you developed in the prelab to use semaphores to protect the critical code segments in the LCD access. Test and debug. 
   * Demonstrate the working program to your T.A.   * Demonstrate the working program to your T.A.
Line 57: Line 60:
  
 ==== Resources ===== ==== Resources =====
-  * {{:lab2.zip}}+  * {{:lab02.zip}}
   * {{:serialmonitor.zip}}   * {{:serialmonitor.zip}}
lab2.1390188754.txt.gz · Last modified: 2014/01/20 03:32 by allison

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki