<html xmlns="http://www.w3.org/1999/xhtml"><head><meta charset="utf-8"><meta name="generator" content="pdf2htmlEX"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><link rel="stylesheet" href="https://csdnimg.cn/release/download_crawler_static/css/base.min.css"><link rel="stylesheet" href="https://csdnimg.cn/release/download_crawler_static/css/fancy.min.css"><link rel="stylesheet" href="https://csdnimg.cn/release/download_crawler_static/5517345/raw.css"><script src="https://csdnimg.cn/release/download_crawler_static/js/compatibility.min.js"></script><script src="https://csdnimg.cn/release/download_crawler_static/js/pdf2htmlEX.min.js"></script><script>try{pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({});}catch(e){}</script><title></title></head><body><div id="sidebar" style="display: none"><div id="outline"></div></div><div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://csdnimg.cn/release/download_crawler_static/5517345/bg1.jpg"><div class="t m0 x1 h2 y1 ff1 fs0 fc0 sc0 ls0 ws0">Micriµm, Inc. </div><div class="t m0 x2 h3 y2 ff2 fs1 fc0 sc1 ls1 ws1">© Copyright 2002, Micriµm, Inc. </div><div class="t m0 x3 h4 y3 ff3 fs2 fc0 sc1 ls2 ws2">All Rights reserved </div><div class="t m0 x4 h5 y4 ff2 fs3 fc0 sc1 ls3 ws0"> </div><div class="t m0 x4 h5 y5 ff2 fs3 fc0 sc1 ls3 ws0"> </div><div class="t m0 x4 h6 y6 ff2 fs2 fc0 sc1 ls3 ws0"> </div><div class="t m0 x4 h6 y7 ff2 fs2 fc0 sc1 ls3 ws0"> </div><div class="t m0 x4 h6 y8 ff2 fs2 fc0 sc1 ls3 ws0"> </div><div class="t m0 x4 h6 y9 ff2 fs2 fc0 sc1 ls3 ws0"> </div><div class="t m0 x4 h6 ya ff2 fs2 fc0 sc1 ls3 ws0"> </div><div class="t m0 x4 h6 yb ff2 fs2 fc0 sc1 ls3 ws0"> </div><div class="t m0 x4 h6 yc ff2 fs2 fc0 sc1 ls3 ws0"> </div><div class="t m0 x4 h5 yd ff2 fs3 fc0 sc1 ls3 ws0"> </div><div class="t m0 x5 h2 ye ff1 fs0 fc0 sc0 ls4 ws0">µC/OS-View </div><div class="t m0 x6 h3 yf ff2 fs1 fc0 sc1 ls5 ws0">V1.10 </div><div class="t m0 x4 h3 y10 ff2 fs1 fc0 sc1 ls3 ws0"> </div><div class="t m0 x7 h7 y11 ff2 fs4 fc0 sc1 ls6 ws3">User’s Manual </div><div class="t m0 x8 h7 y12 ff2 fs4 fc0 sc1 ls7 ws0"> </div><div class="t m0 x4 h4 y13 ff3 fs2 fc0 sc1 ls3 ws0"> </div><div class="t m0 x8 h4 y14 ff3 fs2 fc0 sc1 ls3 ws0"> </div><div class="t m0 x8 h4 y15 ff3 fs2 fc0 sc1 ls3 ws0"> </div><div class="t m0 x4 h6 y16 ff2 fs2 fc0 sc1 ls3 ws0"> </div><div class="t m0 x4 h6 y17 ff2 fs2 fc0 sc1 ls3 ws0"> </div><div class="t m0 x4 h6 y18 ff2 fs2 fc0 sc1 ls3 ws0"> </div><div class="t m0 x4 h6 y19 ff2 fs2 fc0 sc1 ls3 ws0"> </div><div class="t m0 x4 h6 y1a ff2 fs2 fc0 sc1 ls3 ws0"> </div><div class="t m0 x4 h6 y1b ff2 fs2 fc0 sc1 ls3 ws0"> </div><div class="t m0 x4 h6 y1c ff2 fs2 fc0 sc1 ls3 ws0"> </div><div class="t m0 x4 h6 y1d ff2 fs2 fc0 sc1 ls3 ws0"> </div><div class="t m0 x9 h4 y1e ff3 fs2 fc1 sc1 ls8 ws0">www.Micrium.com</div><div class="t m0 xa h4 y1f ff3 fs2 fc0 sc1 ls3 ws0"> </div><div class="t m0 x4 h4 y20 ff3 fs2 fc0 sc1 ls3 ws0"> </div><a class="l" rel='nofollow' onclick='return false;'><div class="d m1"></div></a></div><div class="pi" data-data='{"ctm":[1.568627,0.000000,0.000000,1.568627,0.000000,0.000000]}'></div></div></body></html>
<div id="pf2" class="pf w0 h0" data-page-no="2"><div class="pc pc2 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://csdnimg.cn/release/download_crawler_static/5517345/bg2.jpg"><div class="t m0 x8 h4 y21 ff2 fs5 fc0 sc1 ls9 ws4"> <span class="_ _0"></span>µC/OS-View<span class="_ _1"></span><span class="ff3 fs2 ls3 ws0"> </span></div><div class="t m0 x8 h8 y22 ff3 fs5 fc0 sc1 ls3 ws0"> </div><div class="t m0 x8 h3 y23 ff2 fs1 fc0 sc1 lsa ws5">1.00 Introduction </div><div class="t m0 x8 h9 y24 ff2 fs5 fc0 sc1 ls9 ws0">µC/OS-View<span class="_ _1"></span><span class="ff3 lsb ws6"> is a combination of a Microsoft Windows applic<span class="lsc ws7">ation program and code that resides in your </span></span></div><div class="t m0 x8 h8 y25 ff3 fs5 fc0 sc1 lsd ws8">target system (i.e. your product). The Windows app<span class="ws9">lication connects with your system via an RS-232C </span></div><div class="t m0 x8 h8 y26 ff3 fs5 fc0 sc1 lse wsa">serial port as shown in Figure 1-1. The Windows applicat<span class="lsf wsb">ion allows you to ‘View’ <span class="lsb wsc">the status of your tasks </span></span></div><div class="t m0 x8 h8 y27 ff3 fs5 fc0 sc1 ls3 wsd">which are managed by µC/OS-II. </div><div class="t m0 x8 h8 y28 ff3 fs5 fc0 sc1 ls3 ws0"> </div><div class="t m0 xb h8 y29 ff3 fs5 fc0 sc1 ls3 ws0"> </div><div class="t m0 x8 h8 y2a ff3 fs5 fc0 sc1 ls3 ws0"> </div><div class="t m0 xc h6 y2b ff2 fs2 fc0 sc1 ls10 wse">Figure 1-1, PC to target system via an RS-232C serial port. </div><div class="t m0 xd h4 y2c ff3 fs2 fc0 sc1 ls11 ws0">2 </div></div><div class="pi" data-data='{"ctm":[1.568627,0.000000,0.000000,1.568627,0.000000,0.000000]}'></div></div>
<div id="pf3" class="pf w0 h0" data-page-no="3"><div class="pc pc3 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://csdnimg.cn/release/download_crawler_static/5517345/bg3.jpg"><div class="t m0 xe h4 y21 ff2 fs5 fc0 sc1 ls9 ws0">µC/OS-View<span class="_ _1"></span><span class="ff3 fs2 ls3"> </span></div><div class="t m0 x8 h8 y22 ff3 fs5 fc0 sc1 ls3 ws0"> </div><div class="t m0 x8 h9 y2d ff2 fs5 fc0 sc1 ls9 ws0">µC/OS-View<span class="_ _1"></span><span class="ff3 ls12 wsf"> allows you to view the following in<span class="ls3 wsd">formation from a µC/OS-II based product: </span></span></div><div class="t m0 x8 h8 y2e ff3 fs5 fc0 sc1 ls3 ws0"> </div><div class="t m0 xf h8 y2f ff4 fs5 fc0 sc1 ls3 ws0">•<span class="ff3 lsb ws10"> <span class="_ _2"> </span>The address of the TCB of each task </span></div><div class="t m0 xf h8 y30 ff4 fs5 fc0 sc1 ls3 ws0">•<span class="ff3 lsc ws11"> <span class="_ _2"> </span>The name of each task </span></div><div class="t m0 xf h8 y31 ff4 fs5 fc0 sc1 ls3 ws0">•<span class="ff3 ls13 ws12"> <span class="_ _2"> </span>The status (Ready, delayed, <span class="lsb ws10">waiting on event) of each task </span></span></div><div class="t m0 xf h8 y32 ff4 fs5 fc0 sc1 ls3 ws0">•<span class="ff3 lsf ws13"> <span class="_ _2"> </span>The number of ticks remaining for a timeout or if a task is delayed </span></div><div class="t m0 xf h8 y33 ff4 fs5 fc0 sc1 ls3 ws0">•<span class="ff3 lsc ws11"> <span class="_ _2"> </span>The amount of stack space used and left for each task </span></div><div class="t m0 xf h8 y34 ff4 fs5 fc0 sc1 ls3 ws0">•<span class="ff3 lsd ws14"> <span class="_ _2"> </span>The percentage of CPU time each task relative to all the tasks </span></div><div class="t m0 xf h8 y35 ff4 fs5 fc0 sc1 ls3 ws0">•<span class="ff3 lsc ws11"> <span class="_ _2"> </span>The number of times each task has been ‘switched-in’ </span></div><div class="t m0 xf h8 y36 ff4 fs5 fc0 sc1 ls3 ws0">•<span class="ff3 lsd ws14"> <span class="_ _2"> </span>The execution profile of each task </span></div><div class="t m0 xf h8 y37 ff4 fs5 fc0 sc1 ls3 ws0">•<span class="ff3 ls14 ws15"> More. </span></div><div class="t m0 x8 h8 y38 ff3 fs5 fc0 sc1 ls3 ws0"> </div><div class="t m0 x8 h8 y39 ff3 fs5 fc0 sc1 ls3 ws0"> </div><div class="t m0 x8 h9 y3a ff2 fs5 fc0 sc1 ls9 ws0">µC/OS-View<span class="_ _1"></span><span class="ff3 ws16"> V1.10 also allows you to: </span></div><div class="t m0 x8 h8 y3b ff3 fs5 fc0 sc1 ls3 ws0"> </div><div class="t m0 xf h8 y3c ff4 fs5 fc0 sc1 ls3 ws0">•<span class="ff3 lsb ws17"> <span class="_ _2"> </span>‘Suspend’ the tick interrupt from decrementing <span class="ls15 ws18">delays and timeouts of tasks.<span class="ls16 ws19"> However, you can </span></span></span></div><div class="t m0 x10 h8 y3d ff3 fs5 fc0 sc1 ls17 ws1a">‘step’ on tick at a time by pressing the <span class="ff5 ls13 ws0">F8</span><span class="lsd ws1b"> key from the Windows application. The <span class="ff5 ls13 ws0">F6</span><span class="ls18 ws1c"> key </span></span></div><div class="t m0 x10 h8 y3e ff3 fs5 fc0 sc1 lsc ws1d">cancels this mode, the <span class="ff5 ls13 ws0">F7</span><span class="lsd ws1e"> key enables this mode and the <span class="ff5 ls13 ws0">F8</span><span class="lsb ws1f"> key enables one tick to be </span></span></div><div class="t m0 x10 h8 y3f ff3 fs5 fc0 sc1 ls19 ws0">processed. </div><div class="t m0 xf h8 y40 ff4 fs5 fc0 sc1 ls3 ws0">•<span class="ff3 ls17 ws20"> <span class="_ _3"> </span>Pass keystrokes to you application from the ‘Terminal’ window. In other words, you can now </span></div><div class="t m0 x10 h8 y41 ff3 fs5 fc0 sc1 lsb ws21">send commands to your product from the Wi<span class="ls17 ws22">ndows application. You determine the command </span></div><div class="t m0 x10 h8 y42 ff3 fs5 fc0 sc1 ls18 ws0">structure. </div><div class="t m0 xf h8 y43 ff4 fs5 fc0 sc1 ls3 ws0">•<span class="ff3 ls12 ws23"> <span class="_ _3"> </span>Output ASCII strings from the target to the <span class="lsf ws24">‘Terminal’ window. These ASCII strings are target </span></span></div><div class="t m0 x10 h8 y44 ff3 fs5 fc0 sc1 lsd ws14">specific and thus you can define <span class="ls1a ws25">those specific to your product. </span></div><div class="t m0 x8 h4 y2c ff3 fs2 fc0 sc1 ls11 ws26"> 3 </div></div><div class="pi" data-data='{"ctm":[1.568627,0.000000,0.000000,1.568627,0.000000,0.000000]}'></div></div>
<div id="pf4" class="pf w0 h0" data-page-no="4"><div class="pc pc4 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://csdnimg.cn/release/download_crawler_static/5517345/bg4.jpg"><div class="t m0 x8 h4 y21 ff2 fs5 fc0 sc1 ls9 ws4"> <span class="_ _0"></span>µC/OS-View<span class="_ _1"></span><span class="ff3 fs2 ls3 ws0"> </span></div><div class="t m0 x8 h8 y22 ff3 fs5 fc0 sc1 ls3 ws0"> </div><div class="t m0 x8 h3 y23 ff2 fs1 fc0 sc1 ls1b ws27">1.01 Revision <span class="_ _4"></span>History </div><div class="t m0 x8 h6 y45 ff2 fs2 fc0 sc1 ls1c ws28">1.01.01 µC/OS-View <span class="_ _5"></span>V1.10 </div><div class="t m0 x8 h9 y46 ff2 fs5 fc0 sc1 ls3 ws0"> </div><div class="t m0 x8 h9 y47 ff2 fs5 fc0 sc1 ls9 ws0">µC/OS-View<span class="_ _1"></span><span class="ff3 lsb ws29"> (V1.00) has been revised to support new f<span class="lsf ws2a">eatures introduced in µC/OS-II V2.61 (and </span></span></div><div class="t m0 x8 h8 y48 ff3 fs5 fc0 sc1 ls14 ws16">higher). Specifically: </div><div class="t m0 x8 h8 y49 ff3 fs5 fc0 sc1 ls3 ws0"> </div><div class="t m0 xf h9 y4a ff4 fs5 fc0 sc1 ls3 ws0">•<span class="ff3"> <span class="_ _2"> </span><span class="ff2 ls9">µC/OS-View<span class="_ _1"></span></span><span class="lsf ws2b"> now support the stepping feature of the view<span class="lsb ws2c">er. In other words, pressing the F7 </span></span></span></div><div class="t m0 x10 h8 y4b ff3 fs5 fc0 sc1 ls1a ws2d">key on the viewer pauses the µC/OS-II ticker. <span class="lsb ws2e"> Pressing the F8 key allows one tick to be </span></div><div class="t m0 x10 h8 y4c ff3 fs5 fc0 sc1 lsc ws2f">executed and pressing the F6 key resumes norma<span class="ls1a ws30">l operation of the ticker. Note that </span></div><div class="t m0 x10 h8 y4d ff6 fs5 fc0 sc1 ls1d ws0">OSTimeTickHook()<span class="ff3 lsb ws31"> is still called at the tick rate in ca<span class="ls17 ws32">se your application has time critical </span></span></div><div class="t m0 x10 h8 y4e ff3 fs5 fc0 sc1 ls1a ws0">needs. </div><div class="t m0 xf h9 y4f ff4 fs5 fc0 sc1 ls3 ws0">•<span class="ff3"> <span class="_ _2"> </span><span class="ff2 ls9">µC/OS-View<span class="_ _1"></span></span><span class="lse ws33"> no longer needs to use </span><span class="ff6 ls1d">OSTCBExtPtr</span><span class="ls1e ws34">, µC/OS-II’s </span><span class="ff6 ls1d">OS_TCB</span><span class="ls13 ws35"> extension pointer. <span class="_ _6"></span> </span></span></div><div class="t m0 x10 h8 y50 ff3 fs5 fc0 sc1 ls3 wsd">This allows you to extend an <span class="ff6 ls1d ws0">OS_TCB</span><span class="lsd ws14"> for your own use. </span></div><div class="t m0 xf h8 y51 ff4 fs5 fc0 sc1 ls3 ws0">•<span class="ff3 lsf ws2b"> <span class="_ _3"> </span>µC/OS-II V2.61 now allows you to assign a nam<span class="ls17 ws22">e to a <span class="_ _1"></span>task and thus, this feature is no longer </span></span></div><div class="t m0 x10 h9 y52 ff3 fs5 fc0 sc1 ls9 ws36">part of <span class="ff2 ws0">µC/OS-View<span class="_ _1"></span><span class="ff3 ls1f">. </span></span></div><div class="t m0 xf h9 y53 ff4 fs5 fc0 sc1 ls3 ws0">•<span class="ff3 lse ws37"> <span class="_ _7"> </span>There is no need for a </span><span class="ff2 ls9">µC/OS-View<span class="_ _1"></span><span class="ff3 ls16 ws38"> task anymore since stack usage statistics are now </span></span></div><div class="t m0 x10 h9 y54 ff3 fs5 fc0 sc1 ls13 ws39">determined by µC/OS-II’s statisti<span class="lsc ws3a">c task. This means that <span class="ff2 ls9 ws0">µC/OS-View<span class="_ _1"></span></span><span class="ls17 ws3b"> doesn’t ‘eat up’ a task </span></span></div><div class="t m0 x10 h9 y55 ff3 fs5 fc0 sc1 ls17 ws3c">and stack space. Also, statis<span class="lsc ws3d">tics (variables) allocated by <span class="ff2 ls9 ws0">µC/OS-View<span class="_ _1"></span></span><span class="lse ws3e"> are no longer needed </span></span></div><div class="t m0 x10 h8 y56 ff3 fs5 fc0 sc1 ls17 ws3f">since those have been placed in µC/OS-II’s <span class="ff6 ls1d ws0">OS_TCB<span class="ff3 ls1f">. </span></span></div><div class="t m0 xd h4 y2c ff3 fs2 fc0 sc1 ls11 ws0">4 </div></div><div class="pi" data-data='{"ctm":[1.568627,0.000000,0.000000,1.568627,0.000000,0.000000]}'></div></div>
<div id="pf5" class="pf w0 h0" data-page-no="5"><div class="pc pc5 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://csdnimg.cn/release/download_crawler_static/5517345/bg5.jpg"><div class="t m0 xe h4 y21 ff2 fs5 fc0 sc1 ls9 ws0">µC/OS-View<span class="_ _1"></span><span class="ff3 fs2 ls3"> </span></div><div class="t m0 x8 h8 y22 ff3 fs5 fc0 sc1 ls3 ws0"> </div><div class="t m0 x8 h8 y57 ff3 fs5 fc0 sc1 ls3 ws0"> </div><div class="t m0 x8 h8 y58 ff3 fs5 fc0 sc1 ls3 ws0"> </div><div class="t m0 x8 h3 y59 ff2 fs1 fc0 sc1 ls20 ws40">2.00 <span class="_ _8"> </span>µC/OS-View Windows Application </div><div class="t m0 x8 h9 y5a ff3 fs5 fc0 sc1 ls21 ws41">Figure 2-1 shows <span class="ff2 ls9 ws0">µC/OS-View<span class="_ _1"></span></span><span class="lsd ws14">’s four main display areas which are described next: </span></div><div class="t m0 x8 h8 y5b ff3 fs5 fc0 sc1 ls3 ws0"> </div><div class="t m0 x11 h8 y5c ff3 fs5 fc0 sc1 ls22 ws42">1. Task <span class="_ _9"></span>List </div><div class="t m0 x11 h8 y5d ff3 fs5 fc0 sc1 ls12 ws43">2. System <span class="_ _9"></span>Variables </div><div class="t m0 x11 h8 y5e ff3 fs5 fc0 sc1 lsd ws44">3. Terminal <span class="_ _9"></span>Window </div><div class="t m0 x11 h8 y5f ff3 fs5 fc0 sc1 ls1a ws25">4. <span class="_ _a"> </span>CPU load vs Time </div><div class="t m0 x8 h8 y60 ff3 fs5 fc0 sc1 ls3 ws0"> </div><div class="t m0 x8 h8 y61 ff3 fs5 fc0 sc1 ls3 ws0"> </div><div class="t m0 x8 h8 y62 ff3 fs5 fc0 sc1 ls3 ws0"> </div><div class="t m0 x12 h8 y63 ff3 fs5 fc0 sc1 ls3 ws0"> </div><div class="t m0 x13 h6 y64 ff2 fs2 fc0 sc1 ls23 ws45">Systems Variables </div><div class="t m0 x13 h4 y65 ff3 fs2 fc0 sc1 ls2 ws2">Display Area </div><div class="t m0 x13 h4 y66 ff3 fs2 fc0 sc1 ls24 ws46">(See section 2.02) </div><div class="t m0 x14 h6 y67 ff2 fs2 fc0 sc1 ls25 ws47">Task List<span class="ff3 ls26 ws0"> </span></div><div class="t m0 x14 h4 y68 ff3 fs2 fc0 sc1 ls2 ws2">Display Area </div><div class="t m0 x14 h4 y69 ff3 fs2 fc0 sc1 ls1c ws48">(See section 2.01) </div><div class="t m0 x15 h6 y6a ff2 fs2 fc0 sc1 ls27 ws49">Terminal Window<span class="ff3 ls3 ws0"> </span></div><div class="t m0 x15 h4 y6b ff3 fs2 fc0 sc1 ls1c ws48">(See section 2.03) </div><div class="t m0 x16 h6 y6c ff2 fs2 fc0 sc1 ls28 ws4a">CPU Load vs Time<span class="ff3 ls3 ws0"> </span></div><div class="t m0 x16 h4 y6d ff3 fs2 fc0 sc1 ls2 ws2">Display Area </div><div class="t m0 x16 h4 y6e ff3 fs2 fc0 sc1 ls1c ws48">(See section 2.04) </div><div class="t m0 x8 h9 y6f ff2 fs5 fc0 sc1 ls12 wsf">Figure 2-1, Window<span class="_ _1"></span>s application view. </div><div class="t m0 x8 h4 y2c ff3 fs2 fc0 sc1 ls11 ws26"> 5 </div></div><div class="pi" data-data='{"ctm":[1.568627,0.000000,0.000000,1.568627,0.000000,0.000000]}'></div></div>