System clock definition procedure ) – Renesas Emulator System M3T-MR100 User Manual

Page 247

Advertising
background image

231

[( System Clock Definition Procedure )]

<< Format >>

// System Clock Definition
clock{

timer_clock

=

MPU clock

;

timer

=

Timers used for system clock

;

IPL

=

System clock interrupt priority level

;

};

<< Content >>

1. MPU

clock

[( Definition format)]

Frequency(in MHz)

[( Definition range )]

None

[( Default value )]

15MHz

Define the MPU operating clock frequency of the microcomputer in MHz units.

2. Timers used for system clock

[( Definition format )]

Symbol

[( Definition range )]

A0, A1, A2, A3, A4, A5,A6,A7,B0, B1, B2, B3, B4, B5, OTHER, NOTIMER

[( Default value )]

NOTIMER

The frequency of the circumference functional clock supplied to a system timer is defined per MHz. With this
product, f1 or f8 is chosen as count sauce, and a value is set as a timer Ai register and a timer Bi register. There-
fore, overflow may occur depending on the value of timer_clock, and the value of tick_nume of a system defini-
tion. In this case, OTHER must be set as the timer used for a system clock, and a system timer must be initial-
ized by the user side.

If you do not use a system clock, define "NOTIMER."

3. System clock interrupt priority level

[( Definition format )]

Numeric

value

[( Definition range )]

1 to Kernel mask level in system definition

[( Default value )]

4

Define the priority level of the system clock timer interrupt. The value set here must be smaller than the kernel
interrupt mask level.

Interrupts whose priority levels are below the interrupt level defined here are not accepted during system clock
interrupt handler processing.

Advertising