Renesas 70 Bedienungsanleitung

Stöbern Sie online oder laden Sie Bedienungsanleitung nach Software Renesas 70 herunter. Renesas 70 User's Manual Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 162
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen

Inhaltsverzeichnis

Seite 1 - M3T-MR308/4 V.4.00

M3T-MR308/4 V.4.00User’s ManualREJ10J1025-0200Z Real-time OS for M16C/70,80,M32C/80 Series Rev.2.00 Nov 1, 2005

Seite 2

vi List of Tables Table 3-1 Task Context and Non-task Context ...- 27 - Table 3-2

Seite 3 - • Users Manual (PDF file)

Chapter 5 Detailed Applications - 90 - 5.9 Memory Allocation This section describes how memory is allocated for the application program data. Use th

Seite 4

Chapter 5 Detailed Applications - 91 - 5.9.1 Section Allocation of start.a30 The section allocation of the sample startup program for the assembly

Seite 5 - Contents

Chapter 5 Detailed Applications - 92 - 5.9.2 Section Allocation of crt0mr.a30 The section allocation of the sample startup program for the C langua

Seite 6

Chapter 5 Detailed Applications - 93 - 0FFFFDCH0FFFE00H0FFFD00H0FF0000H000400H000000Hrom_FErom_FOdata_SEIdata_SOIdata_NEIdata_NOIdata_FEIdata_FOISec

Seite 7

Chapter 5 Detailed Applications - 94 - 5.10 Using in M16C/70 Series When you use M16C/70 series, please be sure to set up the following options.

Seite 8 - List of Figures

Chapter 6 Using Configurator

Seite 9

Chapter 6 Using Configurator - 96 - 6.1 Configuration File Creation Procedure When applications program coding and startup program modification are

Seite 10 - List of Tables

Chapter 6 Using Configurator - 97 - Table 6.2 Operators Operator Priority Direction of computation () High From left to right - (Unary_minus)

Seite 11

Chapter 6 Using Configurator - 98 - • 10ms • 10.5ms It is also well to remember that the time must not begin with . (period).

Seite 12

Chapter 6 Using Configurator - 99 - 6.1.2 Configuration File Definition Items The following definitions 58 are to be formulated in the configuratio

Seite 13

Chapter 1 User’s Manual Organization

Seite 14 - OS:Operating System

Chapter 6 Using Configurator - 100 - 2. Maximum value of priority (value of lowest priority) [( Definition format )] Numeric value [( Definition ra

Seite 15

Chapter 6 Using Configurator - 101 - 8. Maximum message priority value [( Definition format )] Numeric value [( Definition range )] 1 to 255 [( De

Seite 16

Chapter 6 Using Configurator - 102 - [( Definition respective maximum numbers of items )] This definition is to be given only in forming the separat

Seite 17 - 2.3 MR308 Features

Chapter 6 Using Configurator - 103 - 5. The maximum number of semaphores defined [( Definition format )] Numeric value [( Definition range )] 1 to

Seite 18

Chapter 6 Using Configurator - 104 - [( Task definition )] << Format >> // Tasks Definition task[ ID No. ]{ name = ID name

Seite 19

Chapter 6 Using Configurator - 105 - 3. User stack size of task [( Definition format )] Numeric value [( Definition range )] 12 or more [( Defau

Seite 20 - 3.1 Concept of Real-time OS

Chapter 6 Using Configurator - 106 - The task startup code of the initial startup task is 0. 8. Extended information [( Definition format )] Numeric

Seite 21

Chapter 6 Using Configurator - 107 - 3. Initial value of the event flag [( Definition format )] Numeric value [( Definition range )] 0 to 0xFFFF

Seite 22 - Key input

Chapter 6 Using Configurator - 108 - 2. Selecting a semaphore waiting queue [( Definition format )] Symbol [( Definition range )] TA_TFIFO or TA_T

Seite 23

Chapter 6 Using Configurator - 109 - 2. Number of data [( Definition format )] Numeric Value [( Definition range )] 0 to 0x1FFF [( Default value )

Seite 24 - Real-time OS

Chapter 1 User’s Manual Organization - 2 - The MR308 User’s Manual consists of nine chapters and thee appendix. • Chapter 2 General Information Ou

Seite 25 - Register not stored

Chapter 6 Using Configurator - 110 - 3. Selecting a data queue waiting queue [( Definition format )] Symbol [( Definition range )] TA_TFIFO or TA_T

Seite 26 - 3.2 Service Call

Chapter 6 Using Configurator - 111 - 4. Maximum message priority [( Definition format )] Numeric Value [( Definition range )] 1 to "maximum

Seite 27

Chapter 6 Using Configurator - 112 - 4. Size (in bytes) [( Definition format )] Numeric value [( Definition range )] 4 to 65,535 [( Default value

Seite 28 - ID number

Chapter 6 Using Configurator - 113 - 3. Section name [( Definition format )] Symbol [( Definition range )] None [( Default value )] MR_HEAP Define

Seite 29 - 3.3 Task

Chapter 6 Using Configurator - 114 - << Content >> Define the following for each cyclic handler ID number. 1. ID name [( Definition form

Seite 30 - SUSPENDED

Chapter 6 Using Configurator - 115 - 7. Extended information [( Definition format )] Numeric value [( Definition range )] 1 to 0xFFFFFFFF [( Defaul

Seite 31

Chapter 6 Using Configurator - 116 - [( Interrupt vector definition )] This definition is necessary to use Interrupt function. << Format >

Seite 32

Chapter 6 Using Configurator - 117 - specified at the same time. [Precautions] 1. Regarding the method for specifying a register bank A kernel (OS

Seite 33 - Priority

Chapter 6 Using Configurator - 118 - Table 6.3 Interrupt Causes and Vector Numbers Interrupt cause Interrupt vector number Section Name DMA0 8 INT

Seite 34

Chapter 6 Using Configurator - 119 - 6.1.3 Configuration File Example The following is the configuration file example. 1 /////////////////////////

Seite 35 - Called the task context

Chapter 2 General Information

Seite 36 - Flag wait pattern

Chapter 6 Using Configurator - 120 - 75 wait_queue = TA_TFIFO; 76 clear_attribute = NO; 77 wait_multi = TA_WMUL; 78 }; 79 flag[2]{ 80 name =

Seite 37 - 3. Alarm Handler

Chapter 6 Using Configurator - 121 - 155 name = ID_mpf1; 156 wait_queue = TA_TFIFO; 157 section = MR_RAM; 158 siz_block = 16; 159 num_block =

Seite 38

Chapter 6 Using Configurator - 122 - 235 entry_address = alm2; 236 name = ID_alm2; 237 exinf = 0x12345678; 238 }; 239 240 241 // 242 // End

Seite 39

Chapter 6 Using Configurator - 123 - 6.2 Configurator Execution Procedures 6.2.1 Configurator Overview The configurator is a tool that converts the

Seite 40 - 3.5.1 Module Structure

Chapter 6 Using Configurator - 124 - Configuration File xxx.cfg Default Configuration File default.cfg makefile Template File makefile.dos makefile

Seite 41 - 3.5.2 Module Overview

Chapter 6 Using Configurator - 125 - 6.2.2 Setting Configurator Environment Before executing the configurator, check to see if the environment varia

Seite 42 - Startup request count > 0

Chapter 6 Using Configurator - 126 - 6.2.3 Configurator Start Procedure Start the configurator as indicated below. A> cfg308 [-vmV] Conf

Seite 43

Chapter 6 Using Configurator - 127 - 6.2.4 makefile generate Function The configurator follows the procedure below to generate makefile. 1. Examin

Seite 44 - 0 0 1 2 1

Chapter 6 Using Configurator - 128 - 6.2.5 Precautions on Executing Configurator The following lists the precautions to be observed when executing

Seite 45 - Number of

Chapter 6 Using Configurator - 129 - 6.2.6 Configurator Error Indications and Remedies If any of the following messages is displayed, the configurat

Seite 46 - • Delay task (dly_tsk)

Chapter 2 General Information - 4 - 2.1 Objective of MR308 Development In line with recent rapid technological advances in microcomputers, the func

Seite 47 - Returned after use

Chapter 6 Using Configurator - 130 - service call of system definition item. cfg308 Error : system timer's vector <x>conflict near line x

Seite 48 - WAIT state

Chapter 6 Using Configurator - 131 - Warning messages The following message are a warning. A warning can be ignored providing that its content is u

Seite 49

Chapter 6 Using Configurator - 132 - 6.3 Editing makefile Here you edit makefile the configurator generated, and set compilation options, libraries,

Seite 50

Chapter 6 Using Configurator - 133 - 6.4 About an error when you execute make The following warning message of mr308tbl is displayed when you execu

Seite 52 - Message Message

Chapter 7 Application Creation Guide

Seite 53 - Message

Chapter 7 Application Creation Guide - 136 - 7.1 Processing Procedures for System Calls from Handlers When a service call is issued from a handler,

Seite 54

Chapter 7 Application Creation Guide - 137 - 7.1.1 System Calls from a Handler That Caused an Interrupt during Task Execution Scheduling (task swit

Seite 55

Chapter 7 Application Creation Guide - 138 - 7.1.2 System Calls from a Handler That Caused an Interrupt during System Call Processing Scheduling (t

Seite 56

Chapter 7 Application Creation Guide - 139 - 7.1.3 System Calls from a Handler That Caused an Interrupt during Handler Execution Let us think of a

Seite 57 - set_tim service call

Chapter 2 General Information - 5 - 7. Timer control is made easier. To perform processing at 10 ms intervals, the microcomputer timer function was

Seite 58 - • Set System Time (set_tim)

Chapter 7 Application Creation Guide - 140 - 7.2 Stacks 7.2.1 System Stack and User Stack The MR308 provides two types of stacks: system stack and

Seite 59

Chapter 8 Sample Program Description

Seite 60

Chapter 8 Sample Program Description - 142 - 8.1 Overview of Sample Program As an example application of MR308, the following shows a program that

Seite 61 - Move the end of the queue

Chapter 8 Sample Program Description - 143 - 8.2 Program Source Listing 1 /***********************************************************************

Seite 62 - Task Selection

Chapter 8 Sample Program Description - 144 - 8.3 Configuration File 1 //************************************************************************* 2

Seite 63

Chapter 9 Separate ROMs

Seite 64

Chapter 9 Separate ROMs - 146 - 9.1 How to Form Separate ROMs This chapter describes how to form the MR308's kernel and application programs i

Seite 65

Chapter 9 Separate ROMs - 147 - App_progMR_CIFMR_ROMprogramMR_KERNELkernel ROM(Internal ROM)Application ROM1App_progMR_CIFMR_ROMStartupProgramMR308

Seite 66

Chapter 9 Separate ROMs - 148 - Here you change the section files (c_sec.inc, asm_sec.inc), and set addresses of programs you locate in the applicat

Seite 67

Chapter 9 Separate ROMs - 149 - e.g. mr308tbl \product\app1 \product\app2 8. Generating a system You execute the make command to genera

Seite 68

Chapter 2 General Information - 6 - 2.2 Relationship between TRON Specification and MR308 The TRON Specification is an abbreviation for The Real-ti

Seite 70

Real-time OS for M16C/70,80,M32C/80 Series M3T-MR308/4 User's Manual Publication Date: Nov. 1, 2

Seite 71 - Configuration file

M3T-MR308/4 User's Manual

Seite 72

Chapter 2 General Information - 7 - 2.3 MR308 Features The MR308 offers the following features. 1. Real-time operating system conforming to the µI

Seite 74

Chapter 3 Introduction to MR308

Seite 75 - 4.2.5 Writing ROM

Active X, Microsoft, MS-DOS, Visual Basic, Visual C++, Windows and Windows NT are either registered trademarks or trademarks of Microsoft Corporatio

Seite 76

Chapter 3 Introduction to MR308 - 10 - 3.1 Concept of Real-time OS This section explains the basic concept of real-time OS. 3.1.1 Why Real-time O

Seite 77

Chapter 3 Introduction to MR308 - 11 - Key inputmicrocomputerRemote controlmicrocomputerLED illuminationmicrocomputerArbitermicrocomputerVolume cont

Seite 78

Chapter 3 Introduction to MR308 - 12 - Key inputTaskRemote controlTaskLED illuminationTaskreal-timeOSVolume controlTaskMonitorTaskMechanicalcontrolT

Seite 79

Chapter 3 Introduction to MR308 - 13 - 3.1.2 Operating Principles of Real-time OS The real-time OS is the software that makes a one-microcomputer sy

Seite 80

Chapter 3 Introduction to MR308 - 14 - In the state shown in Figure 3.5, it appears to the programmer that the key input task or its microcomputer i

Seite 81

Chapter 3 Introduction to MR308 - 15 - R0PCSPRegisterKey inputTaskRemote controlTaskMemory mapStacksectionSFRR0PCSPR0PCSPSPLED illuminationTaskReal-

Seite 82

Chapter 3 Introduction to MR308 - 16 - 3.2 Service Call How does the programmer use the real-time OS in a program? First, it is necessary to call

Seite 83 - 5.2.1 Writing Task

Chapter 3 Introduction to MR308 - 17 - 3.2.1 Service Call Processing When a service call is issued, processing takes place in the following sequenc

Seite 84

Chapter 3 Introduction to MR308 - 18 - 3.2.2 Task Designation in Service call Each task is identified by the ID number internally in MR308. For exa

Seite 85

Chapter 3 Introduction to MR308 - 19 - 3.3 Task This section describes how tasks are managed by MR308. 3.3.1 Task Status The real-time OS monitors t

Seite 86

Preface The M3T-MR308/4(abbreviated as MR308) is a real-time operating system1 for the M16C/70,80, M

Seite 87

Chapter 3 Introduction to MR308 - 20 - Forced termination request from other task SUSPENDED state clearrequest from other task SUSPEND requestfrom o

Seite 88

Chapter 3 Introduction to MR308 - 21 - to the ready queue 13 is placed in the RUNNING state. ♦ A currently executed task has normally terminated i

Seite 89 - 5.5 Regarding Interrupts

Chapter 3 Introduction to MR308 - 22 - 4. SUSPENDED state When the sus_tsk system call is issued from a task in the RUNNING state or the isus_tsk sy

Seite 90 - 5.5.3 Controlling Interrupts

Chapter 3 Introduction to MR308 - 23 - 3.3.2 Task Priority and Ready Queue In the real-time OS, several tasks may simultaneously request to be exec

Seite 91

Chapter 3 Introduction to MR308 - 24 - 3.3.3 Task Priority and Waiting Queue In The standard profiles in µITRON 4.0 Specification support two waiti

Seite 92 - 4. Precautions

Chapter 3 Introduction to MR308 - 25 - 3.3.4 Task Control Block(TCB) The task control block (TCB) refers to the data block that the real-time OS us

Seite 93

Chapter 3 Introduction to MR308 - 26 - TCBTCBTCBTask Connection pointerStatusPriorityWake-up counterFlag wait modeFlag wait patternTime-out countero

Seite 94

Chapter 3 Introduction to MR308 - 27 - 3.4 System States 3.4.1 Task Context and Non-task Context The system runs in either context state, "tas

Seite 95

Chapter 3 Introduction to MR308 - 28 - Subroutine callTimer interruptRTSCyclic handlerAlarm handlerSystem clockinterrupt handlerTask Figure 3.18 Cyc

Seite 96

Chapter 3 Introduction to MR308 - 29 - 3.4.3 CPU Locked/Unlocked States The system assumes either a CPU locked state or a CPU unlocked state. In a

Seite 98

Chapter 3 Introduction to MR308 - 30 - 3.5 MR308 Kernel Structure 3.5.1 Module Structure The MR308 kernel consists of the modules shown in Figure

Seite 99

Chapter 3 Introduction to MR308 - 31 - 3.5.2 Module Overview The MR308 kernel modules are outlined below. • Scheduler Forms a task processing queue

Seite 100 - • c_sec.inc

Chapter 3 Introduction to MR308 - 32 - 3.5.3 Task Management Function The task management function is used to perform task operations such as task

Seite 101

Chapter 3 Introduction to MR308 - 33 - 1 Task APriority 2 Task CTask FTask ETask D 3 n Task BTask BWhen the priority of task B has been changed fro

Seite 102

Chapter 3 Introduction to MR308 - 34 - 3.5.4 Synchronization functions attached to task The task-dependent synchronization functions attached to ta

Seite 103

Chapter 3 Introduction to MR308 - 35 - only one forcible wait request to be nested, if sus_tsk is issued to a task in a forcible wait state, the err

Seite 104

Chapter 3 Introduction to MR308 - 36 - ♦ Timeout wait state ♦ Wait state entered by slp_tsk service call (+ timeout included) ♦ Event flag (+ tim

Seite 105

Chapter 3 Introduction to MR308 - 37 - 3.5.5 Synchronization and Communication Function (Semaphore) The semaphore is a function executed to coordin

Seite 106

Chapter 3 Introduction to MR308 - 38 - • Reference Semaphore Status (ref_sem, iref_sem) Refers the status of the target semaphore. Checks the count

Seite 107 - Symbol

Chapter 3 Introduction to MR308 - 39 - 3.5.6 Synchronization and Communication Function (Eventflag) The eventflag is an internal facility of MR308

Seite 108 - • 10.5ms

i Contents Chapter 1 User’s Manual Organization ...

Seite 109

Chapter 3 Introduction to MR308 - 40 - TaskF TaskD TaskB Flag pattern 0x0F Flag pattern 0 Flag queue TaskA TaskB TaskCTaskDTaskE TaskF0xFF AND 0

Seite 110

Chapter 3 Introduction to MR308 - 41 - 3.5.7 Synchronization and Communication Function (Data Queue) The data queue is a mechanism to perform data

Seite 111 - MPU clock

Chapter 3 Introduction to MR308 - 42 - 3.5.8 Synchronization and Communication Function (Mailbox) The mailbox is a mechanism to perform data commun

Seite 112

Chapter 3 Introduction to MR308 - 43 - T_MSG header T_MSG header T_MSG header Message queue Message A Message B Message C Figure 3.34 Message qu

Seite 113

Chapter 3 Introduction to MR308 - 44 - 3.5.9 Memory pool Management Function The memorypool management function provides system memory space (RAM s

Seite 114

Chapter 3 Introduction to MR308 - 45 - Variable-size Memory Pool Management Function The technique that allows you to arbitrary define the size of m

Seite 115

Chapter 3 Introduction to MR308 - 46 - 200 bytes224 bytesRoundingMemorypoolTaskApget_blk200 bytes Figure 3.36 pget_mpl processing • Release Acquire

Seite 116

Chapter 3 Introduction to MR308 - 47 - 3.5.10 Time Management Function The time management function provides system time management, time reading36

Seite 117 - ID name

Chapter 3 Introduction to MR308 - 48 - at the fifth occurrence of the time tick. • Set System Time (set_tim) • Reference System Time (get_tim) The

Seite 118 - Number of data queues

Chapter 3 Introduction to MR308 - 49 - 3.5.11 Cyclic Handler Function The cyclic handler is a time event handler that is started every startup cycl

Seite 119

ii 4.2 Development Procedure Example... - 62 - 4.2

Seite 120 - Maximum message priority

Chapter 3 Introduction to MR308 - 50 - 3.5.12 Alarm Handler Function The alarm handler is a time event handler that is started only once at a speci

Seite 121

Chapter 3 Introduction to MR308 - 51 - 3.5.13 System Status Management Function • Rotate Task Precedence (rot_rdq, irot_rdq) This service call est

Seite 122 - Memory pool size

Chapter 3 Introduction to MR308 - 52 - 3.5.14 Interrupt Management Function The interrupt management function provides a function to process request

Seite 123

Chapter 3 Introduction to MR308 - 53 - 3.5.15 System Configuration Management Function This function inspects the version information of MR308. •

Seite 124

Chapter 3 Introduction to MR308 - 54 - 3.5.17 Extended Function (Reset Function) The reset function is a function outside the scope of µITRON 4.

Seite 125 - Extended information

Chapter 3 Introduction to MR308 - 55 - 3.5.18 Service calls That Can Be Issued from Task and Handler Some service calls can be issued from a task,

Seite 126 - Vector No

Chapter 3 Introduction to MR308 - 56 - Service Call Task Context Non-task Context sig_sem o x isig_sem x o wai_sem o x twai_sem o x pol_sem o x

Seite 127

Chapter 3 Introduction to MR308 - 57 - Service Call Task Context Non-task Context get_mpf o x tget_mpf o x pget_mpf o x rel_mpf o x irel_mpf x o

Seite 128

Chapter 3 Introduction to MR308 - 58 - Service Call Task Context Non-task Context ref_ver o x iref_ver x o vsnd_dtq o x vtsnd_dtq o x vpsnd_dtq o

Seite 129 - - 119

Chapter 4 Applications Development Procedure Overview

Seite 130 - - 120

iii Warning messages ...

Seite 131 - - 121

Chapter 4 Applications Development Procedure Overview - 60 - 4.1 Overview Application programs for MR308 should generally be developed following t

Seite 132 - - 122

Chapter 4 Applications Development Procedure Overview - 61 - MR308 include filekernel.h Configuratorcfg308 Application object ROM write formatApp

Seite 133 - 6.2.1 Configurator Overview

Chapter 4 Applications Development Procedure Overview - 62 - 4.2 Development Procedure Example This chapter outlines the development procedures o

Seite 134

Chapter 4 Applications Development Procedure Overview - 63 - #include <itron.h> #include <kernel.h> #include "kernel_id.h"

Seite 135

Chapter 4 Applications Development Procedure Overview - 64 - 4.2.2 Configuration File Preparation Create a configuration file which has defined i

Seite 136 - -m Option

Chapter 4 Applications Development Procedure Overview - 65 - 4.2.3 Configurator Execution When using HEW, select "Build all," which enab

Seite 138

Chapter 5 Detailed Applications

Seite 139 - Error messages

Chapter 5 Detailed Applications - 68 - 5.1 Program Coding Procedure in C Language 5.1.1 Task Description Procedure 1. Describe the task as a fun

Seite 140

Chapter 5 Detailed Applications - 69 - 7. To specify a task, use the string written in the task definition item “name” of the configura-tion file.4

Seite 141 - Other messages

iv List of Figures Figure 3.1 Relationship between Program Size and Development Period...- 10 - Figure 3.2 Microcomp

Seite 142 - 6.3 Editing makefile

Chapter 5 Detailed Applications - 70 - 5.1.2 Writing a Kernel (OS Dependent) Interrupt Handler When describing the kernel (OS-dependent) interrupt

Seite 143

Chapter 5 Detailed Applications - 71 - 5.1.3 Writing Non-kernel (OS-independent ) Interrupt Handler When describing the non-kernel(OS-independent)

Seite 144

Chapter 5 Detailed Applications - 72 - 5.1.4 Writing Cyclic Handler/Alarm Handler When describing the cyclic or alarm handler in C language, observ

Seite 145

Chapter 5 Detailed Applications - 73 - 5.2 Program Coding Procedure in Assembly Language This section describes how to write an application using th

Seite 146 - OS-independent handler

Chapter 5 Detailed Applications - 74 - 8. Set a task that is activated at MR308 system startup in the configuration file 52

Seite 147

Chapter 5 Detailed Applications - 75 - 5.2.2 Writing Kernel(OS-dependent) Interrupt Handler When describing the kernel(OS-dependent) interrupt hand

Seite 148 - Processing

Chapter 5 Detailed Applications - 76 - 5.2.3 Writing Non-kernel(OS-independent) Interrupt Handler 1. For the symbol indicating the interrupt handle

Seite 149 - Execution

Chapter 5 Detailed Applications - 77 - 5.2.4 Writing Cyclic Handler/Alarm Handler When describing the cyclic or alarm handler in Assembly Language,

Seite 150 - • System Stack

Chapter 5 Detailed Applications - 78 - 5.3 The Use of INT Instruction MR308 has INT instruction interrupt numbers reserved for issuing service call

Seite 151

Chapter 5 Detailed Applications - 79 - 5.5 Regarding Interrupts 5.5.1 Types of Interrupt Handlers MR308's interrupt handlers consist of kernel

Seite 152

v Figure 5.2 Example Task Terminating with ext_tsk() Described in C Language...- 68 - Figure 5.3 Example of Kernel(OS-dependent

Seite 153 - 8.2 Program Source Listing

Chapter 5 Detailed Applications - 80 - 5.5.3 Controlling Interrupts Interrupt enable/disable control in a service call is accomplished by IPL manipu

Seite 154 - 8.3 Configuration File

Chapter 5 Detailed Applications - 81 - When the I flag before issuing a service call is 1 When the I flag before issuing a service call is 0 Service

Seite 155 - Chapter 9 Separate ROMs

Chapter 5 Detailed Applications - 82 - 5.6 Regarding Delay Dispatching MR308 has four service calls related to delay dispatching. • dis_dsp • ena_

Seite 156

Chapter 5 Detailed Applications - 83 - 5.7 Regarding Initially Activated Task MR308 permits the user to specify a task that starts from a READY sta

Seite 157

Chapter 5 Detailed Applications - 84 - 5.8 Modifying MR308 Startup Program MR308 comes with two types of startup programs as described below. • st

Seite 158

Chapter 5 Detailed Applications - 85 - 5.8.1 C Language Startup Program (crt0mr.a30) Figure 5.14 C Language Startup Program (crt0mr.a30) shows th

Seite 159

Chapter 5 Detailed Applications - 86 - 73 74 MOV.L #FROM_,A0 75 MOV.L #TO_,A1 76 MOV.L #(sizeof SECT_ & 0FFFFFFH)

Seite 160

Chapter 5 Detailed Applications - 87 - 153 ;-------------------------------------------------------- 154 BCOPY data_FEI_top,data_FE_top,da

Seite 161

Chapter 5 Detailed Applications - 88 - 233 JSR.W __init_alh 234 .ENDIF 235 236 .IF CYCLIC_HANDLER 237 .GLB __init_cyh

Seite 162 - User's Manual

Chapter 5 Detailed Applications - 89 - The following explains the content of the C language startup program (crt0mr.a30). 1. Incorporate a section

Kommentare zu diesen Handbüchern

Keine Kommentare