
SOFTUNE Workbench Getting Started
FR Family FR81S Series, Emulation System, Doc. No. 002-04887 Rev. *A
32
Example of usage:
As an example let’s suppose we want to execute a procedure file called
mb91570_read_clock_settings.prc
which needs two parameters (p1, p2).
In this case the parameters are the quartz xtals which are connected to the device:
Main xtal clock: 4 MHz, Sub-clock xtal: 32768 Hz
Then the procedure file input parameters are: P0 = 4000000, P1=32768
A maximum of 10 parameters are allowed (P0, …, P9)
This procedure file configures the system clocks and print-out the results in the command window. The clock
settings which are configure with this procedure file are listed below:
CPU frequency to MCLK/2 = 2 MHz
External interface clock TCLK = 1 MHZ
Peripheral clocks PCLK PCLK2 = 500 KHz
To execute an existing procedure file follow these steps:
1. Open a debug session:
Debug-> Start Debug
2. Open a Command Window:
View-> Command
3. For executing the procedure files, two options are possible: