Sign In
Upload
Manuals
Brands
Renesas Manuals
Software
70
Renesas 70 Manuals
Manuals and User Guides for Renesas 70. We have
1
Renesas 70 manual available for free PDF download: User Manual
Renesas 70 User Manual (162 pages)
Real-time OS for M16C/70,80,M32C/80 Series
Brand:
Renesas
| Category:
Software
| Size: 0 MB
Table of Contents
Document List
3
Table of Contents
5
Chapter 1 User's Manual Organization
11
Chapter 2 General Information
13
Objective of MR308 Development
14
Relationship between TRON Specification and MR308
16
MR308 Features
17
Chapter 3 Introduction to MR308
19
Why Real-Time os Is Necessary
20
Concept of Real-Time os
20
Figure 3.1 Relationship between Program Size and Development Period
20
Figure 3.2 Microcomputer-Based System Example(Audio Equipment)
21
Figure 3.3 Example System Configuration with Real-Time os(Audio Equipment)
22
Operating Principles of Real-Time os
23
Figure 3.4 Time-Division Task Operation
23
Figure 3.5 Task Execution Interruption and Resumption
23
Figure 3.6 Task Switching
24
Figure 3.7 Task Register Area
25
Figure 3.8 Actual Register and Stack Area Management
25
Service Call
26
Service Call Processing
27
Figure 3.10 Service Call Processing Flowchart
27
Task Designation in Service Call
28
Figure 3.11 Task Identification
28
Task
29
Figure 3.12 Task Status
29
Figure 3.13 MR308 Task Status Transition
30
Task Priority and Ready Queue
33
Figure 3.14 Ready Queue (Execution Queue)
33
Task Priority and Waiting Queue
34
Figure 3.15 Waiting Queue of the TA_TPRI Attribute
34
Figure 3.16 Waiting Queue of the TA_TFIFO Attribute
34
Task Control Block(TCB)
35
Figure 3.17 Task Control Block
36
Table 3-1 Task Context and Non-Task Context
37
System States
37
Task Context and Non-Task Context
37
Dispatch Enabled/Disabled States
38
Timer Interrupt
38
Figure 3.18 Cyclic Handler/Alarm Handler Activation
38
Table 3-3 CPU Locked and Dispatch Disabled State Transitions Relating to Dis_Dsp and Loc_Cpu
39
Dispatch Disabled and CPU Locked States
39
CPU Locked/Unlocked States
39
MR308 Kernel Structure
40
Module Structure
40
Figure 3.19 MR308 Structure
40
Module Overview
41
Task Management Function
42
Figure 3.20 Task Resetting
42
Figure 3.21 Alteration of Task Priority
43
Figure 3.22 Task Rearrangement in a Waiting Queue
43
Synchronization Functions Attached to Task
44
Figure 3.23 Wakeup Request Storage
44
Figure 3.24 Wakeup Request Cancellation
44
Figure 3.25 Forcible Wait of a Task and Resume
45
Figure 3.26 Forcible Wait of a Task and Forcible Resume
45
Figure 3.27 Dly_Tsk Service Call
46
Synchronization and Communication Function (Semaphore)
47
Figure 3.28 Exclusive Control by Semaphore
47
Figure 3.29 Semaphore Counter
48
Figure 3.30 Task Execution Control by Semaphore
48
Synchronization and Communication Function (Eventflag)
49
Figure 3.31 Task Execution Control by the Eventflag
50
Synchronization and Communication Function (Data Queue)
51
Figure 3.32 Data Queue
51
Synchronization and Communication Function (Mailbox)
52
Figure 3.33 Mailbox
52
Figure 3.34 Message Queue
53
Fixed-Size Memory Pool Management Function
54
Figure 3.35 Memory Pool Management
54
Variable-Size Memory Pool Management Function
55
Figure 3.36 Pget_Mpl Processing
56
Figure 3.37 Rel_Mpl Processing
56
Time Management Function
57
Figure 3.38 Timeout Processing
57
Cyclic Handler Function
59
Figure 3.39 Cyclic Handler Operation in Cases Where the Activation Phase Is Saved
59
Figure 3.40 Cyclic Handler Operation in Cases Where the Activation Phase Is Not Saved
59
Alarm Handler Function
60
Figure 3.41 Typical Operation of the Alarm Handler
60
System Status Management Function
61
Figure 3.42 Ready Queue Management by Rot_Rdq System Call
61
Interrupt Management Function
62
Figure 3.43 Interrupt Process Flow
62
System Configuration Management Function
63
Extended Function (Short Data Queue)
63
Extended Function (Reset Function)
64
Table 3.4 List of the Service Call Can be Issued from the Task and Handler
65
Service Calls that Can be Issued from Task and Handler
65
Chapter 4 Applications Development Procedure Overview
69
Overview
70
Creating a Configuration File
70
Figure 4.1 MR308 System Generation Detail Flowchart
71
Development Procedure Example
72
Applications Program Coding
72
Figure 4.2 Program Example
73
Configuration File Preparation
74
Figure 4.3 Configuration File Example
74
Writing ROM
75
Figure 4.4 Configurator Execution
75
Figure 4.5 System Generation
75
Chapter 5 Detailed Applications
77
Program Coding Procedure in C Language
78
Task Description Procedure
78
Figure 5.1 Example Infinite Loop Task Described in C Language
78
Figure 5.2 Example Task Terminating with Ext_Tsk() Described in C Language
78
Table 5.1 C Language Variable Treatment
79
Writing a Kernel (os Dependent) Interrupt Handler
80
Figure 5.3 Example of Kernel(OS-Dependent) Interrupt Handler
80
Writing Non-Kernel (OS-Independent ) Interrupt Handler
81
Figure 5.4 Example of Non-Kernel(OS-Independent) Interrupt Handler
81
Writing Cyclic Handler/Alarm Handler
82
Figure 5.5 Example Cyclic Handler Written in C Language
82
Program Coding Procedure in Assembly Language
83
Writing Task
83
Figure 5.6 Example Infinite Loop Task Described in Assembly Language
83
Figure 5.7 Example Task Terminating with Ext_Tsk Described in Assembly Language
83
Writing Kernel(OS-Dependent) Interrupt Handler
85
Figure 5.8 Example of Kernel(OS-Depend) Interrupt Handler
85
Writing Non-Kernel(OS-Independent) Interrupt Handler
86
Figure 5.9 Example of Non-Kernel(OS-Independent) Interrupt Handler of Specific Level
86
Writing Cyclic Handler/Alarm Handler
87
Figure 5.10 Example Handler Written in Assembly Language
87
The Use of Registers of Bank
88
The Use of INT Instruction
88
The Use of Non-Maskable Interrupt
89
Types of Interrupt Handlers
89
Regarding Interrupts
89
Figure 5.11 Interrupt Handler Ipls
89
Controlling Interrupts
90
Figure 5.12 Interrupt Control in a System Call that Can be Issued from Only a Task
90
Figure 3.9 Service Call
91
Figure 5.13 Interrupt Control in a System Call that Can be Issued from a Task-Independent
91
Regarding Delay Dispatching
92
Regarding Initially Activated Task
93
Modifying MR308 Startup Program
94
Figure 5.14 C Language Startup Program (Crt0Mr.a30)
95
Memory Allocation
100
Section Allocation of Start.a30
101
Section Allocation of Crt0Mr.a30
102
Figure 5.15 Selection Allocation in C Language Startup Program
103
Using in M16C/70 Series
104
Chapter 6 Using Configurator
105
Table 6.1 Numerical Value Entry Examples
106
Configuration File Creation Procedure
106
Configuration File Data Entry Format
106
Operator
107
Direction of Computation
107
Function Name
107
Configuration File Definition Items
109
System Definition Procedure )]
109
System Clock Definition Procedure )]
111
Definition Respective Maximum Numbers of Items )]
112
Task Definition )]
114
Eventflag Definition )]
116
Semaphore Definition )]
117
Data Queue Definition )]
118
Short Data Queue Definition )]
119
Mailbox Definition )]
120
Fixed-Size Memory Pool Definition )]
121
Variable-Size Memory Pool Definition )]
122
Cyclic Handler Definition )]
123
Alarm Handler Definition )]
125
Interrupt Vector Definition )]
126
Table 6.3 Interrupt Causes and Vector Numbers
128
Configuration File Example
129
Configurator Execution Procedures
133
Configurator Overview
133
Figure 6.1 the Operation of the Configurator
134
Setting Configurator Environment
135
Configurator Start Procedure
136
Command Options
136
Makefile Generate Function
137
Precautions on Executing Configurator
138
Configurator Error Indications and Remedies
139
Error Messages
139
Warning Messages
141
Other Messages
141
Editing Makefile
142
About an Error When You Execute Make
143
Chapter 7 Application Creation Guide
145
Processing Procedures for System Calls from Handlers
146
System Calls from a Handler that Caused an Interrupt During Task Execution
147
Figure 7.1 Processing Procedure for a System Call a Handler that Caused an Interrupt During Task Execution
147
System Calls from a Handler that Caused an Interrupt During System Call Processing
148
Figure 7.2 Processing Procedure for a System Call from a Handler that Caused an Interrupt During System Call Processing
148
System Calls from a Handler that Caused an Interrupt During Handler Execution
149
Figure 7.3 Processing Procedure for a Service Call from a Multiplex Interrupt Handler
149
Stacks
150
Figure 7.4 System Stack and User Stack
150
Chapter 8 Sample Program Description
151
Table 8.1 Functions in the Sample Program
152
Overview of Sample Program
152
Program Source Listing
153
Configuration File
154
Chapter 9 Separate Roms
155
How to Form Separate Roms
156
Figure 9.1 ROM Separate
157
Figure 9.2 Memory Map
158
Advertisement
Advertisement
Related Products
Renesas 7542
Renesas 740 Family
Renesas 7700 FAMILY
Renesas 7751 SERIES
Renesas 78K0/FY2-L
Renesas 78K0/F 2 Series
Renesas 78K0/FE2
Renesas 78K0/FF2
Renesas 78K0/KB2-A
Renesas 78K0/KC2-A
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