Sign In
Upload
Manuals
Brands
Renesas Manuals
Software
Emulator System M3T-MR100
Renesas Emulator System M3T-MR100 Manuals
Manuals and User Guides for Renesas Emulator System M3T-MR100. We have
1
Renesas Emulator System M3T-MR100 manual available for free PDF download: User Manual
Renesas Emulator System M3T-MR100 User Manual (306 pages)
Real-time OS for R32C/100 Series
Brand:
Renesas
| Category:
Software
| Size: 1.32 MB
Table of Contents
Table of Contents
7
List of Tables
15
1 User's Manual Organization
17
2 General Information
19
Objective of MR100 Development
19
Relationship between TRON Specification and MR100
21
MR100 Features
22
3 Introduction to Kernel
23
Concept of Real-Time os
23
Why Real-Time os Is Necessary
23
Figure 3.1 Relationship between Program Size and Development Period
23
Figure 3.2 Microcomputer-Based System Example(Audio Equipment)
24
Figure 3.3 Example System Configuration with Real-Time os(Audio Equipment)
25
Operating Principles of Kernel
26
Figure 3.4 Time-Division Task Operation
26
Figure 3.5 Task Execution Interruption and Resumption
27
Figure 3.6 Task Switching
27
Figure 3.7 Task Register Area
28
Figure 3.8 Actual Register and Stack Area Management
29
Service Call Processing
31
Figure 3.10 Service Call Processing Flowchart
31
Processing Procedures for Service Calls from Handlers
32
Figure 3.11 Processing Procedure for a Service Call a Handler that Caused an Interrupt During Task
33
Figure 3.12 Processing Procedure for a Service Call from a Handler that Caused an Interrupt During Service Call Processing
34
Figure 3.13 Processing Procedure for a Service Call from a Multiplex Interrupt Handler
35
Service Calls from a Handler that Caused an Interrupt During Handler Execution
35
Object
36
The Specification Method of the Object in a Service Call
36
Figure 3.14 Task Identification
36
Task
37
Figure 3.15 Task Status
37
Figure 3.16 MR100 Task Status Transition
38
Figure 3.17 Ready Queue (Execution Queue)
41
Task Priority and Ready Queue
41
Figure 3.18 Waiting Queue of the TA_TPRI Attribute
42
Figure 3.19 Waiting Queue of the TA_TFIFO Attribute
42
Task Priority and Waiting Queue
42
Figure 3.20 Task Control Block
43
System States
44
Table 3.1 Task Context and Non-Task Context
44
Figure 3.21 Cyclic Handler/Alarm Handler Activation
45
CPU Locked/Unlocked States
46
Dispatch Disabled and CPU Locked States
46
Dispatch Enabled/Disabled States
46
Figure 3.9 Service Call
46
Table 3.2 Invocable Service Calls in a CPU Locked State
46
Regarding Interrupts
47
Types of Interrupt Handlers
47
The Use of Non-Maskable Interrupt
47
Figure 3.22 Interrupt Handler Ipls
47
Controlling Interrupts
48
Figure 3.23 Interrupt Control in a Service Call that Can be Issued from Only a Task
48
Figure 3.24 Interrupt Control in a Service Call that Can be Issued from a Task-Independent
49
Stacks
50
Figure 3.25 System Stack and User Stack
50
4 Kernel
51
Module Structure
51
Figure 4.1 MR100 Structure
51
Module Overview
52
Task Management Function
53
Figure 4.2 Task Resetting
53
Figure 4.3 Alteration of Task Priority
54
Figure 4.4 Task Rearrangement in a Waiting Queue
54
Figure 4.5 Wakeup Request Storage
55
Figure 4.6 Wakeup Request Cancellation
55
Synchronization Functions Attached to Task
55
Figure 4.7 Forcible Wait of a Task and Resume
56
Figure 4.8 Forcible Wait of a Task and Forcible Resume
57
Figure 4.9 Dly_Tsk Service Call
58
Figure 4.10 Exclusive Control by Semaphore
59
Synchronization and Communication Function (Semaphore)
59
Figure 4.11 Semaphore Counter
60
Figure 4.12 Task Execution Control by Semaphore
60
Synchronization and Communication Function (Eventflag)
61
Figure 4.13 Task Execution Control by the Eventflag
62
Figure 4.14 Data Queue
63
Synchronization and Communication Function (Data Queue)
63
Figure 4.15 Mailbox
64
Synchronization and Communication Function (Mailbox)
64
Figure 4.16 Message Queue
65
Figure 4.17 Memory Pool Management
66
Memory Pool Management Function(Fixed-Size Memory Pool)
66
Variable-Size Memory Pool Management Function
67
Figure 4.18 Pget_Mpl Processing
68
Figure 4.19 Rel_Mpl Processing
69
Figure 4.20 Timeout Processing
70
Time Management Function
70
Cyclic Handler Function
72
Figure 4.21 Cyclic Handler Operation in Cases Where the Activation Phase Is Saved
72
Figure 4.22 Cyclic Handler Operation in Cases Where the Activation Phase Is Not Saved
72
Alarm Handler Function
73
Figure 4.23 Typical Operation of the Alarm Handler
73
System Status Management Function
74
Figure 4.24 Ready Queue Management by Rot_Rdq Service Call
74
Interrupt Management Function
75
Figure 4.25 Interrupt Process Flow
75
System Configuration Management Function
76
Extended Function (Short Data Queue)
76
Extended Function (Reset Function)
77
5 Service Call Reffernce
79
Table 5.1 Specifications of the Task Management Function
79
Table 5.2 List of Task Management Function Service Call
79
Can_Act Cancel Task Activation Request
83
Get_Pri Reference Task Priority
93
Table 5.3 Specifications of the Task Dependent Synchronization Function
100
Synchronization & Communication Function (Semaphore)
116
Table 5.5 Specifications of the Semaphore Function
116
Table 5.6 List of Semaphore Function Service Call
116
Sig_Sem Release Semaphore Resource
117
Ref_Sem Reference Semaphore Status
122
Synchronization & Communication Function (Eventflag)
124
Table 5.7 Specifications of the Eventflag Function
124
Table 5.8 List of Eventflag Function Service Call
124
Set_Flg Set Eventflag
125
Ref_Flg Reference Eventflag Status
132
Synchronization & Communication Function (Data Queue)
134
Table 5.10 List of Dataqueue Function Service Call
134
Table 5.9 Specifications of the Data Queue Function
134
Ref_Dtq Reference Data Queue Status
141
Synchronization & Communication Function (Mailbox)
143
Table 5.11 Specifications of the Mailbox Function
143
Table 5.12 List of Mailbox Function Service Call
143
Snd_Mbx Send to Mailbox
144
Ref_Mbx Reference Mailbox Status
149
Table 5.4 List of Task Dependent Synchronization Service Call
100
Wup_Tsk Wakeup Task
104
Can_Wup Cancel Wakeup Request
106
Sus_Tsk Suspend Task
110
Rsm_Tsk Resume Suspended Task
112
Table 5.13 Specifications of the Fixed-Size Memory Pool Function
151
Table 5.14 List of Fixed-Size Memory Pool Function Service Call
151
Memory Pool Management Function (Fixed-Size Memory Pool)
151
Get_Mpf Aquire Fixed-Size Memory Block
152
Rel_Mpf Release Fixed-Size Memory Block
155
Table 5.15 Specifications of the Variable-Size Memory Pool Function
159
Table 5.16 List of Variable -Size Memory Pool Function Service Call
159
Memory Pool Management Function (Variable-Size Memory Pool)
159
Ref_Mpl Reference Variable-Size Memory Pool Status
164
Table 5.17 Specifications of the Time Management Function
166
Table 5.18 List of Time Management Function Service Call
166
Set_Tim Set System Time
167
Get_Tim Reference System Time
169
Table 5.19 Specifications of the Cyclic Handler Function
172
Table 5.20 List of Cyclic Handler Function Service Call
172
Time Management Function (Cyclic Handler)
172
Sta_Cyc Start Cyclic Handler Operation
173
Ref_Cyc Reference Cyclic Handler Status
176
Table 5.21 Specifications of the Alarm Handler Function
178
Table 5.22 List of Alarm Handler Function Service Call
178
Time Management Function (Alarm Handler)
178
Sta_Alm Start Alarm Handler Operation
179
Ref_Alm Reference Alarm Handler Status
182
Table 5.23 List of System Status Management Function Service Call
184
Get_Tid Reference Task ID in the RUNNING State
187
Loc_Cpu Lock the CPU
188
Loc_Cpu
189
ER Ercd Terminated Normally (E_OK)
190
Unl_Cpu Unlock the CPU
190
Ena_Dsp Enables Dispatching
193
Sns_Ctx
194
Sns_Loc
195
Sns_Dsp
196
Sns_Dpn
197
Table 5.24 List of Interrupt Management Function Service Call
198
Table 5.25 List of System Configuration Management Function Service Call
200
Extended Function (Short Data Queue)
203
Table 5.26 Specifications of the Short Data Queue Function
203
Table 5.27 List of Long Dataqueue Function Service Call
203
Extended Function (Reset Function)
212
Table 5.28 List of Reset Function Service Call
212
6 Applications Development Procedure Overview
221
Figure 6.1 MR100 System Generation Detail Flowchart
222
Development Procedure Example
223
Applications Program Coding
223
Configuration File Preparation
224
Figure 6.2 Program Example
224
Figure 6.3 Configuration File Example
225
Figure 6.4 Configurator Execution
225
System Generation
225
Figure 6.5 System Generation
226
Writing ROM
226
7 Detailed Applications
227
Program Coding Procedure in C Language
227
Task Description Procedure
227
Figure 7.1 Example Infinite Loop Task Described in C Language
227
Writing a Kernel (os Dependent) Interrupt Handler
228
Figure 7.2 Example Task Terminating with Ext_Tsk() Described in C Language
228
Table 7.1 C Language Variable Treatment
228
Writing Cyclic Handler/Alarm Handler
229
Writing Non-Kernel Interrupt Handler
229
Figure 7.3 Example of Kernel Interrupt Handler
229
Figure 7.4 Example of Non-Kernel Interrupt Handler
229
Figure 7.5 Example Cyclic Handler Written in C Language
230
Program Coding Procedure in Assembly Language
231
Writing Task
231
Figure 7.6 Example Infinite Loop Task Described in Assembly Language
231
Figure 7.7 Example Task Terminating with Ext_Tsk Described in Assembly Language
231
Writing Kernel Interrupt Handler
232
Writing Cyclic Handler/Alarm Handler
232
Figure 7.8 Example of Kernel(OS-Depend) Interrupt Handler
232
Figure 7.9 Example of Non-Kernel Interrupt Handler of Specific Level
232
Figure 7.10 Example Handler Written in Assembly Language
233
Modifying MR100 Startup Program
234
C Language Startup Program (Crt0Mr.a30)
235
Figure 7.11 C Language Startup Program (Crt0Mr.a30)
238
Memory Allocation
240
Section Used by the MR100
241
Table 8.1 Numerical Value Entry Examples
243
8 Using Configurator
243
Configuration File Creation Procedure
243
Configuration File Data Entry Format
243
Direction of Computation
244
Operator
244
Table 8.2 Operators
244
Configuration File Definition Items
245
System Clock Definition Procedure )]
247
Definition Respective Maximum Numbers of Items )]
248
Task Definition )]
250
Eventflag Definition )]
252
Semaphore Definition )]
253
Data Queue Definition )]
254
Short Data Queue Definition )]
255
Mailbox Definition )]
256
Fixed-Size Memory Pool Definition )]
257
Variable-Size Memory Pool Definition )]
258
Cyclic Handler Definition )]
260
Alarm Handler Definition )]
261
Interrupt Vector Definition )]
262
Fixed Interrupt Vector Definition )]
263
Table 8.3 List of Vector Number and Vector Address
264
Configuration File Example
266
Configurator Execution Procedures
270
Configurator Overview
270
Executing the Configurator Requires the Following Input Files
270
When the Configurator Is Executed, the Files Listed below Are Output
270
Setting Configurator Environment
271
Figure 8.1 the Operation of the Configurator
271
Configurator Start Procedure
272
Precautions on Executing Configurator
272
Configurator Error Indications and Remedies
273
Error Messages
273
Warning Messages
275
Table 9.1 Functions in the Sample Program
276
9 Sample Program Description
276
Overview of Sample Program
276
Program Source Listing
277
Configuration File
278
10 Stack Size Calculation Method
280
Stack Size Calculation Method
280
User Stack Calculation Method
282
System Stack Calculation Method
284
Table 10.1 Stack Sizes Used by Service Calls Issued from Tasks (in Bytes)
288
Necessary Stack Size
288
Table 10.2 Stack Sizes Used by Service Calls Issued from Handlers (in Bytes)
289
Table 10.3 Stack Sizes Used by Service Calls Issued from Tasks and Handlers (in Bytes)
289
Table 11.1 Interrupt Number Assignment
291
11 Note
291
The Use of INT Instruction
291
The Use of Registers of Bank
291
Regarding Delay Dispatching
292
Regarding Initially Activated Task
293
12 Appendix
295
Data Type
295
Common Constants and Packet Format of Structure
296
Assembly Language Interface
298
Advertisement
Advertisement
Related Products
Renesas M3T-MR308/4 V.4.00
Renesas M3T-MR100/4 V.1.00
Renesas M3T-ICC740
Renesas M3T-SRA74
Renesas M38B59EFFS
Renesas Emulation Pod M306H7T3-RPD-E
Renesas M30870T2-CPE
Renesas M30291FCHP
Renesas M30290T2-CPE
Renesas M30240M6-FP Series
Renesas Categories
Computer Hardware
Motherboard
Microcontrollers
Adapter
Switch
More Renesas Manuals
Login
Sign In
OR
Sign in with Facebook
Sign in with Google
Upload manual
Upload from disk
Upload from URL