Fujitsu FR81S Benutzerhandbuch
CHAPTER 37: BUS PERFORMANCE COUNTERS
5. Operation
FUJITSU SEMICONDUCTOR LIMITED
CHAPTER
: BUS PERFORMANCE COUNTERS
FUJITSU SEMICONDUCTOR CONFIDENTIAL
19
5.4. Measurement and Result Processing
This section explains the measurement and result processing.
The use of BPC is anticipated for when ICE is connected or when using a monitor debugger. The configuring
of measurements and reading of results are performed in debug mode while the user program execution is
halted.
Examples of measurements are as follows.
⋅
Measure between two points in a program
⋅
Measure a reference time base
These are explained below.
⋅
Measuring between two points in a program
During this measurement, the measurement starting point and measurement ending point in the user
program are configured as follows.
⋅
Measurement starting point: Starting point of the user program execution
⋅
Measurement ending point: Breakpoint in the user program
The measurement sequence is as follows.
1. Configure the measurement and initialize the counter in debug mode
2. Start executing the user program from the measurement starting point
3. Break on the measurement ending point and stop executing the user program
4. Switch to debug mode and read the measurement results
⋅
Measuring the reference time base
During this measurement, switch to debug mode at each reference time, read out the measurement
results and initialize the counters.
The following two methods are available for switching to debug mode at each reference time.
⋅
Assert a tool break from the ICE at each reference time to switch to debug mode (when connected to
ICE)
⋅
Set the interval time of a built-in timer to the reference time, and execute the INTE instruction in the
timer interrupt routine to switch to debug mode
The measurement sequence is as follows.
1. Configure the measurement and initialize the counter in debug mode
2. Begin executing the measurement target user program
3. Tool break by reference time, or execute the INTE instruction by built-in timer interrupt routine
4. Switch to debug mode and read the measurement results
5. Initialize the measurement counter
6. Repeat steps 2 to 5
MB91520 Series
MN705-00010-1v0-E
1268